开发者

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;

    }
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜