Tuesday, March 29, 2011

Re: a simple POST with formData

Ups, my doom ass, I was making this run on a not new browser, so don't know what to do with the FormData, now in chrome it's works.

Thanks, now I gonna make some test using this on a servert ( and take a look the CORS compatibility )

Sorry for the mess!

On Tue, Mar 29, 2011 at 2:25 PM, mightymightyblues <mightymightyblues@gmail.com> wrote:
Hi, I have this code:

public native void callServer() /*-{
               var fd = new FormData();
               fd.append("fileField", "hola");
               var xhr = new XMLHttpRequest();
               xhr.open("POST", "file_handler.php");
               xhr.send(fd);
}-*/;

But the debug say:
....:FormData is not defined

I can't do this with GWT ??!! I really don't understand why not found
a javascript funcion ...

thanks for all.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment