Hey all, ive been banging my head agains the wall for a few days now, and finally decided to ask for help. i have a document that writes the header with all the javascript in it, then modifyes a <div> tag with a button. the button has an onClick event that is supposed to call a javascript function in the header. The whole application works wonderfully in Firefox, however it seems as if IE cannot/willnot call the function. if i put an alert in the onClick event it works, however if i call a function with an alert, it does not work.
JS function im trying to call
-
function login(user, pass){
-
alert('Login Function');
-
//document.getElementById('main').innerHTML = "Processing login...";
-
//makeHttpRequest('validateAdminLogin.php?user='+user+'&pass='+pass);
-
}
HTML that is Writen to a <Div> tag after the page has loaded
- <INPUT NAME=Submit TYPE=submit id="Submit" value="Login" onClick="javascript:login(document.getElementById('userName').value, document.getElementById('passWord').value);">
Again, this works in Firfox, but not in IE
Thankyou in advance for your input.