jQuery post redirect browser to a different URL
I have a jQuery post to a method in '.asmx' file. It was working well in Firefox 3.5开发者_C百科 but not in 4.0. When post happens it redirect to a URL something like 'www.5_124.com'. Don't know what's happening . And this is happening for only one method in the 'asmx' file. Others are working correct.
In firebug it says the POST is aborted.
I found the answer. Need to have return false at the end of the drag and drop event. If not it the event will propagate to the browser. Don't know why ff 3.5 having no issue with it :).
function dragDrop(ev) {
//....
return false;
}
精彩评论