So, here's what's up. I have this function:
As you can see, it calls the pushData function. When fake-stepping through (via alerts), pushdata gets called, and everything *should* be fine. BUT, when the Enter key is pressed, the page reloads. I thought I had taken care of this with the return false (works in IE), but Firefox still reloads the page.
Help?
-------------------------
Call me barely Impressive Captain.
Code:
function keyclick(e, entity) {
var keynum;
if (window.event) { // IE
keynum = e.keyCode; }
else { // Opera, Netscape, Firefox
keynum = e.which; }
if (keynum == 13) {
alert(entity);
pushData(entity);
alert("Pushing Data");
return false;
}
}
Help?
-------------------------
Call me barely Impressive Captain.