can you make POST with JsonpRequestBuilder ??

2010-12-20 Thread mightymightyblues
Hi all, I'm making use of this class to make some request with GET, but I need to make log in in a remote server, and I need to make a POST call with the password and user. How can I do such a think? Regards!! -- You received this message because you are subscribed to the Google Groups Google

a simple POST with formData

2011-03-29 Thread mightymightyblues
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:

access a form from a JSNI function in GWT

2011-03-30 Thread mightymightyblues
wohhh what an ugle stage! Hi all, I have a .ui.xml with html code, like this: ... form enctype=multipart/form-data method=post name=fileinfo id=fileinfo input type=file name=file / /form ... Then, I have a realy good code in gwt and one of the functions are a JSNI that try to make the

Re: access a form from a JSNI function in GWT

2011-03-31 Thread mightymightyblues
So, I create a : g:FormPanel enctype=multipart/form-data method=post name=fileinfo ui:field=fileinfo input type=file name=file/ /g:FormPanel use the uiBinde to take te FormPanel, and after that I can to use that FormPanel like a FormData in jsni? Is compatible? On 31 mar, 12:01, Thomas Broyer

Re: access a form from a JSNI function in GWT

2011-03-31 Thread mightymightyblues
Now I have this in JSNI: var formData = new FormData(this.@com.libregeosocial.backend.client.tools.RequestJson::fileinfo); And fileinfo is a FormPanel. But this crash ... any Idea? is not the same a FormData javascript and a FormPanel Java ?! On 31 mar, 13:08, mightymightyblues mightymightybl

RequestBuilder don't store coockies?

2011-03-31 Thread mightymightyblues
Hi, I'm making some test about CORS and trying to make a POST to a server, to make login, and the server send me a message with a 200 state ( the login was correct ) , but the browser don't save the coockies. this is my code: RequestBuilder rb = new

Re: access a form from a JSNI function in GWT

2011-04-13 Thread mightymightyblues
Ok, I do that, and it's work perfect. Thanks ;) Now my problem is that I can't send a good POST method with chrome ... this has no end lol On 31 mar, 15:46, Thomas Broyer t.bro...@gmail.com wrote: On Thursday, March 31, 2011 1:08:26 PM UTC+2, mightymightyblues wrote: So, I create

how to add a server ssl from the sourcecode

2011-04-18 Thread mightymightyblues
Hi, I'm trying to access a https with GWT or with JSNI, and accept the ssl certificated. I have all control of CORS so this is not a problem. Is there an easy way to make it from the source code? I don't want that the user are bored with this task, I control the server and the client, so I can