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

[eluser]FutureKing[/eluser]
[quote author="slowgary" date="1245225281"]Why not just write the javascript to seek out all the form values instead? Then you could just pass the form ID and the server-side URL to the javascript and it could do everything else for you.[/quote]

Yes, Currently I do write js for Ajax. But there are alot of ajax code in my project and it is not easy to mantain that code.

For making ajax request I have to write the following code additionaly


$('document').ready(function(){
name=$('#txt_name').attr('value');
list=$('#dd_list').attr('value');
$.post('process.php',{ name: name, list:list },function(data){

});
});

This code is very small because there are very few form controls.
When form becomes big then A lot of code has to be written.
The situation become more difficult when there are many forms.

The approach I shown above is looks very simple. Is there something like above php code available?
However I have started working on it.


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