Reputation: 19505
I got a simple form and it works fine in ie but not working in firefox
onclick="login('loginuser','../private/loginuser.php?username='+email.value+'&pass='+passw.value,'loginresult');"
Any help appreciated.
Upvotes: 0
Views: 854
Reputation: 23512
You should start by putting some alert calls in your login function to make sure that your arguments are getting quoted properly. Something like
function login (username, password, result) {
alert(username);
alert(password);
alert(result);
.... rest of function
}
Upvotes: 1
Reputation: 433
That's not really a form, just an attribute snippet. Install Firebug add-on for Firefox (https://addons.mozilla.org/en-US/firefox/addon/1843/) and eliminate the guesswork by debugging the javascript. You can set a breakpoint in your login() function and see if everything is ok there or if at least if it gets called.
Upvotes: 0