When I do so, I get the following warnings in the console display:

warning: unable to bind to property 'email' on class 'Object' (class
is not an IEventDispatcher)
warning: unable to bind to property 'name' on class 'Object' (class is
not an IEventDispatcher)
warning: unable to bind to property 'last' on class 'Object' (class is
not an IEventDispatcher)
warning: unable to bind to property 'first' on class 'Object' (class
is not an IEventDispatcher)

In addition, nothing is passed to my php script.

Frank
--- In flexcoders@yahoogroups.com, Paul Kukiel <pkuk...@...> wrote:
>
> You nee to put { } around the variables ie:
> 
> <mx:request xmlns="">
> <first>{modelName.name.first}</first>
> <last>{modelName.name.last}</last>
> <email>{modelName.email}</email>
> </mx:request>
> 
> 
> 
> Paul
> 
> On 28/02/2009, at 2:09 PM, fprihoda wrote:
> 
> > The following code is not working as I would expect it to.
> >
> > <mx:HTTPService id="srv2" url="http://localhost/flex_web/addform.php";
> > resultFormat="object" showBusyCursor="true"
> > result="resultHandler(event)" method="POST">
> > <mx:request xmlns="">
> > <first>modelName.name.first</first>
> > <last>modelName.name.last</last>
> > <email>modelName.email</email>
> > </mx:request>
> > </mx:HTTPService>
> >
> > modelName is an object. I would like to send the POST variables to the
> > php script using dot notation as shown above. The problem I am having
> > is that it sends the entire string "modelName.xxx.xxx" instead of the
> > actual object field. I think this is a dereferencing issue, but I do
> > not know how to fix it.
> >
> > Can someone help?
> >
> >
>


Reply via email to