开发者

jQuery post redirect browser to a different URL

开发者 https://www.devze.com 2023-03-07 10:16 出处:网络
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

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;

    }
0

精彩评论

暂无评论...
验证码 换一张
取 消