hello,

this is my very first post about this new, exciting technology  ;)

I am trying to populate a combo box using a HTTPService rather than the well 
documented 
array-object method.

here is the code:

<?xml version="1.0" encoding="utf-8"?>
  <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";>
  <mx:HTTPService id="listCities" url="http://localhost/flex/city.php"/>

    <mx:ComboBox id="cities" dataProvider="{listCities.result.cities.option}"/>

  </mx:Application>

and the city.php file output:

<?xml version="1.0" encoding="utf-8"?>
<cities>
    <option>
    <label>Choose City</label>
    <data>NULL</data>
    </option>

    <option>
    <label>London</label>
    <data>London</data>
    </option>

    <option>
    <label>New York</label>
    <data>New York</data>
    </option>

</cities>

this does not populate the combo box :(

can some body please tell me why?


thanx



Tomek




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to