Hi,
I want to send current date with URL in flex from client side and want to get it on the server. I am using MXML and ActonScript.
Please help me.
Hi,
I want to send current date with URL in flex from client side and want to get it on the server. I am using MXML and ActonScript.
Please help me.
you may have a look at
http://livedocs.adobe.com/flex/3/html/help.html?content=Part4_data_access_1.html
and read from there to see, what you need for your kinf od request (HTML, XML).
in short, you have to have some dataservice (f.e. mx:HTTPService) and appropriate methods (send) and connect them with your controls
EDIT: system time: http://livedocs.adobe.com/flex/3/html/help.html?content=08_Dates_and_times_3.html
Thanks for your reply. I have done what u r saying. Have a look.
<mx:request xmlns="">
<sysdatetime>{sysdatetime}</sysdatetime>
</mx:request>
AT the server,
echo "GET: ".$_GET['sysdatetime'];
I have called it like, creationComplete="test.send();"
sysdatetime gives me current date time of client system. But at the server, i am not getting it.
Here's an example of how to pass an object using the HTTPService
's send()
method. Just wrap your Date
object and pass it via a send()
call.