Well, I believe the syntax is correct, at least!
The warnings are telling you something, in a way, which is that unless your 
objects properties are bindable flex won't be able to detect changes in them at 
runtime.
Hence it won't work if as you might expect you want to specify the request in 
mxml like that. 
It's just the way flex works, I found it a little hard to get used to at first.
You might have better results if you call an actionscript function to set the 
request object instead.


-----Original Message-----
From: [email protected] on behalf of fprihoda
Sent: Sun 01/03/2009 12:51
To: [email protected]
Subject: [flexcoders] Re: Sending POST requests to php script??Help
 
This doe not work, as I am not trying to make the object bindable.  I
am simply trying to reference the object values and pass them as part
of the HTTPService request.

--- In [email protected], "Jim Hayes" <j...@...> wrote:
>
> I'm making a wild guess here, but does this work?
> 
> <mx:request xmlns="">
> <first>{modelName.name.first}</first>
> <last>{modelName.name.last}</last>
> <email>{modelName.email}</email>
> </mx:request>
> 
> Apologies if not, I've not made any attempt to see if it does so it
could be utter rubbish.
> 
> 
> -----Original Message-----
> From: [email protected] on behalf of fprihoda
> Sent: Sat 28/02/2009 19:09
> To: [email protected]
> Subject: [flexcoders] Sending POST requests to php script??Help
>  
> 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?
> 
> 
> 
> ______________________________________________________________________
> This communication is from Primal Pictures Ltd., a company
registered in England and Wales with registration No. 02622298 and
registered office: 4th Floor, Tennyson House, 159-165 Great Portland
Street, London, W1W 5PA, UK. VAT registration No. 648874577.
> 
> This e-mail is confidential and may be privileged. It may be read,
copied and used only by the intended recipient. If you have received
it in error, please contact the sender immediately by return e-mail or
by telephoning +44(0)20 7637 1010. Please then delete the e-mail and
do not disclose its contents to any person.
> This email has been scanned for Primal Pictures by the MessageLabs
Email Security System.
> ______________________________________________________________________
>




______________________________________________________________________
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
______________________________________________________________________

<<winmail.dat>>

Reply via email to