jquery ajax prompt aborted by user
Some old application that working good in IE8. But in Firefox application tab/window simply closed. "PROMPT ABORTED BY USER" exception appears in Firebug console.
I have some page that have <button> on it that run ajax request. I expect that some content will be added to page as response to ajax. But in real window simply closed.
As usual problem was solved with help of Stackoverflow.
gave me a hint. It has the similar problem and solution is to make form onsubmit="return false;".
So i understood that unexpected submit happens when i run ajax request.
So the problem is : Firefox and Chrome use default type="submit" for <button> tag, but IE type="button". This causes different behavior.
Solution: explicitly specify type="button".
Like this post? Subscribe to my RSS feed and get loads more!