Letractively / juicelib

Automatically exported from code.google.com/p/juicelib
0 stars 0 forks source link

Ajax post form #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
How to post a form using juicelib ?

With textarea, select etc... 

Thanks.

Original issue reported on code.google.com by jairop...@gmail.com on 17 Oct 2007 at 10:42

GoogleCodeExporter commented 8 years ago
You can use the juice.html.submit function. It receives the form object (that 
can be
obtained using getElementById), and a response handler (function that will 
handle the
submission response). This function grabs the form data, build the request 
string and
send it to the server using the action URL and send method defined in the form 
tag.

You can also simply use the get or post functions from juice.rpc. In this case, 
you
will have to build your request string yourself. Please let me know if you have 
any
problems or suggestions. I'm working on a new version and it would be great to 
have
some feedback.

Original comment by mgal...@gmail.com on 23 Oct 2007 at 12:48