Tuesday, March 29, 2011

a simple POST with formData

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