Welcome Guest, Not a member yet? Register   Sign In
method without parameters in ajax call
#1

[eluser]a77icu5[/eluser]
I had a method in my controller that return an html form so..I made the next code to display it.

$('#addForm').click(function(){
$('body').load('/controller/method');
return false;
});

The problem is...when I check it with firebug, the result is a 404 error page because load() makes a GET call by default, I tried setting the second param to NULL in load function but didn't work.


Someone help me !!!


Messages In This Thread
method without parameters in ajax call - by El Forum - 12-26-2009, 03:11 AM
method without parameters in ajax call - by El Forum - 12-26-2009, 03:15 AM
method without parameters in ajax call - by El Forum - 12-26-2009, 03:17 AM
method without parameters in ajax call - by El Forum - 12-26-2009, 03:34 AM
method without parameters in ajax call - by El Forum - 12-26-2009, 04:38 AM
method without parameters in ajax call - by El Forum - 12-26-2009, 05:03 AM
method without parameters in ajax call - by El Forum - 12-26-2009, 06:59 PM
method without parameters in ajax call - by El Forum - 01-14-2010, 03:51 AM
method without parameters in ajax call - by El Forum - 01-14-2010, 04:44 AM
method without parameters in ajax call - by El Forum - 01-14-2010, 07:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB