JQuery ajax user to register users. I use the almost exact code below to do similar things throughout my site, but for some reason the code below throws this error in Firebug.
Error:
uncaught exception: [Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js :: add :: line 5437" data: no]
Call:
lzaUserAPI.doAUserSignup(signupUsername, signupPassword, signupEmail, signupFullname, signupCompanyName, signupWebsite, signupPhone, lzaSigninup.onAUserSignedUp);
Ajax Function:
doAUserSignup : function(username, password, email, fullname, companyname, website, phone, callback){ // Add to server var paras = {cmd : 'doAUserSignup', us: username, ps: password, em: email, flnm: fullname, cpnm: companyname, wbst: website, phne: phone}; $.ajax({ url: lzaUserAPI.m_url, dataType: "json", data: paras, success: function(ret){callback(ret)} }); },
Callback:
onAUserSignedUp : function (ret) { alert ('yea!!!');
Any ideas? Thanks in advance!