Welcome Guest, Not a member yet? Register   Sign In
need php ajax framework like this:
#6

[eluser]slowgary[/eluser]
Yes, I understand that. I'm suggesting that instead of using a PHP library to create JavaScript, you should just write some JavaScript that gathers all the data from the form and puts it into an AJAX request. Basically, since the AJAX happens clientside, you should let the clientside deal with the form library. This way, your server side doesn't have to spend time creating code that the client may not take advantage of.

This guy seems to have created a plugin to do just this: http://malsup.com/jquery/form/

It gathers all the 'name' and 'value' attributes and submits them to the form's 'action' attribute. Basically, your server side just produces a normal form and the plugin turns it into ajax. If the user has disabled JavaScript, the form acts like a normal form.


Messages In This Thread
need php ajax framework like this: - by El Forum - 06-16-2009, 04:02 PM
need php ajax framework like this: - by El Forum - 06-16-2009, 07:46 PM
need php ajax framework like this: - by El Forum - 06-16-2009, 08:15 PM
need php ajax framework like this: - by El Forum - 06-16-2009, 08:54 PM
need php ajax framework like this: - by El Forum - 06-16-2009, 09:23 PM
need php ajax framework like this: - by El Forum - 06-16-2009, 09:51 PM
need php ajax framework like this: - by El Forum - 06-16-2009, 09:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB