On 29 oct, 15:31, Alex Rice <[EMAIL PROTECTED]> wrote:
> On Oct 28, 7:52 pm, Thomas Broyer <[EMAIL PROTECTED]> wrote:
>
> > This is mentionned in the Javadoc for the FormPanel() 
> > constructor:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...()
>
> Thanks Thomas, I read the Javadocs but didn't get all the way down to
> the Constructor. That does explain it. RequestBuilder does not have
> the same limitation, does it? I assume it works for responses of
> various different content types .

Yep, RequestBuilder has the Same-Origin Policy limitation (plus you
cannot send files) but you get the response "as is".
FormPanel is the only mean to upload files but the response must be
text/html if you want to be notified when done (note that it can be
JSON actually, sent as text/html, with some limitations re. HTML
special characters: & and <, that you should escape as \u0026 and
\u003C respectively). With FormPanel, contrary to RequestBuilder, you
can't know the HTTP response status or get response headers either,
but you're not constrained by the Same-Origin Policy (as long as you
don't need to know the submission's result: you'll get a
FormSubmitCompleteEvent but its getResults() will be null).
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to