Welcome Guest, Not a member yet? Register   Sign In
Submit form with Javascript
#5

[eluser]CroNiX[/eluser]
Are you using firebug or anything to check to see that the request is going to the correct url and that you are actually receiving data back? Your url in your ajax query is relative, which can be problematic and should be avoided.

Also, your js is wrapped in an anonymous function. Whats the purpose of the $ in front of it? I've never seen that. Usually its
Code:
(function($){})(jQuery);
like they show here so it passes the $ (jquery) to your anonymous function.


Messages In This Thread
Submit form with Javascript - by El Forum - 01-23-2012, 07:55 PM
Submit form with Javascript - by El Forum - 01-23-2012, 08:35 PM
Submit form with Javascript - by El Forum - 01-23-2012, 09:13 PM
Submit form with Javascript - by El Forum - 01-24-2012, 12:21 PM
Submit form with Javascript - by El Forum - 01-24-2012, 12:33 PM
Submit form with Javascript - by El Forum - 01-24-2012, 12:34 PM
Submit form with Javascript - by El Forum - 01-24-2012, 01:02 PM
Submit form with Javascript - by El Forum - 01-24-2012, 01:09 PM
Submit form with Javascript - by El Forum - 01-24-2012, 02:20 PM
Submit form with Javascript - by El Forum - 01-24-2012, 02:59 PM
Submit form with Javascript - by El Forum - 01-24-2012, 04:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB