Are you calling listCities.send() in some place?



                                                                                
                                            
                                                                                
                                            
             "mc2mac2"                         To: flexcoders@yahoogroups.com   
                                            
             <[EMAIL PROTECTED]>            cc:                                 
                                         
             Sent by:                          Subject:  [flexcoders] 
populating combo box                                  
             flexcoders@yahoogroups.com                                         
                                            
             09/26/2005 08:58 AM                                                
                                            
             Please respond to                                                  
                                            
             flexcoders                                                         
                                            
                                                                                
                                            
                                                                                
                                            




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





--
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











---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/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