Not according to your posted code.  Your result event just assigns:
customerData=poster_srv.result

Instead, call a handler function and do this assignment there.  You can
also call popCustomer from there.  You can also inspect the contents of
the result object, which is often not exactly what you expect.

Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Manu Juyal
Sent: Tuesday, July 05, 2005 3:35 PM
To: [email protected]
Subject: Re: [flexcoders] XML, PHP and Flex

yes it is called in "result" event handler 

On 7/4/05, Manish Jethani <[EMAIL PROTECTED]> wrote:
> On 7/2/05, juyalmanu <[EMAIL PROTECTED]> wrote:
> 
> >  <mx:HTTPService id="poster_srv"
> > url="http://localhost:8080/islab/poster.php";
> >   fault="faultHandler(event.fault.faultstring,
> > event.fault.faultcode)"
> >   result="customerData=poster_srv.result"
> >   method="POST" showBusyCursor="true" useProxy="false" />
> 
> > 
> > after the data is retrieved it was to supposed to be displayed in
> > another view,(posteradminstack is the name of my ViewStack for the
> > application).
> 
> > function popCustomer(){
> > posteradminstack.selectedChild = posterpanel;
> > custlname.text = customerData.customer.customerfname;
> > custlname.text = customerData.customer.customerlname;
> > orderdate.text = customerData.customer.orderdate;}
> > 
> > It is not populating the boxes. Everything on php side is fine.
> > given below is code snippet
> 
> When is popCustomer called?  It should be called _after_ the data has
> been retreived (perhaps in the "result" event handler itself).
> 
> 
> --
> 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 
> 
>  Visit your group "flexcoders" on the web.
>   
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> ________________________________
>


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



 






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