Ok, so I\'m trying to make a new log in form form my site using jquery and classic ASP. As of right now I have a containing div in my document thats set to hidden, then when the
To stop a form from reloading the page, this is what I use, it's been tested to work in all major browsers:
function doStuff(e){
e.returnValue = e.preventDefault && e.preventDefault() ? false : false;
// handle AJAX here
}
Of course, you'll need to add an onsubmit to the form to call doStuff(event);
.