HTTPRequest is deprecated, you should consider using RequestBuilder
JSON is fine for trusted sources, and the parsing (de-serializing) is
actually pretty instantaneous if you use the JS Overlay techniques
(direct evaluation) available in GWT 1.5.
Of course, if you are getting JSON from a non-trusted source, you'll
want to be considerably more cautious about your parsing.
-jason
On Sep 19, 2008, at 12:27 PM, Amit Dhingra wrote:
> Hi All,
> I am trying to communicate between php and GWT, for which I have
> tried and successfully used JSON, using the following code
> if(!HTTPRequest.asyncGet("http://myurl/index.php", new
> JSONResponseTextHandler())) {
> Window.alert("Error accessing index1.php");
> }
> Now I want to transfer data back to php from GWT. What is the right
> procedure for this?
>
> Further, is JSON a safe and the industry standard method of
> communicating??? Or shall I consider XML or something else...
>
> Thanks in advance... :)
>
> --
> Warm Regards,
> Amit Dhingra
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---