When window. showmodaldialog is used today, it is found that IE reports "insufficient storage space when the modal window is opened, and this operation cannot be completed. "Error.
The tracking found that it was actually a problem with jquery, but it was strange that there was no problem at all in the general window. So Google spent half a day and could not find a solution.
After more than half an hour, I finally found the problem. It turns out that IE cannot access "Navigator. useragent" in the modal window, but jquery uses it.
I cannot give up jquery for such a small task.
Later I checked it and accessed it once. Let me change it to jquery.
In fact, it is very easy to judge whether the current window is a modal window:
FindNavigator. useragent. tolowercase ()
Changed:
(Parseint (self. dialogwidth)> = 0 )? "": Navigator. useragent. tolowercase ())
Generally, a window does not have the dialogwidth attribute. Therefore, it is used to determine whether a window is modal.
This is OK.
After hitting !!