JQuery SimpleModal crashes when closing in w / safari windows

I use SimpleModal on a little work I'm working on to open an iFrame and then close it. Says what is posted here if I have problems, so here I am.

I am having problems with a simple modular plugin for jquery when I go to close the popup, but only on windows with safari. It works in IE / FF / Chrome / Opera in a window and works in FF / Safari on a Mac, and I tested this on several Macs and multiple windows.

after calling "$ .modal.close ()" and entering the close function, it will reach and the moment it fails when it hits ... "Sddata.hide () delete ();". if I remove the .remove () operator by making it "sddata.hide () //. remove ();" it will continue and then crash when it reaches the end of the close function, where there are still three lines with .remove ().

sdcontainer.hide (); .// delete (); sdoverlay.hide (); .// delete (); sdiframe && sdiframe.hide (); .// delete ();

Commenting them out as I did above works fine, but JS is not my strongest language. I am not sure what side effects there are if you do not have removal instructions.

+4
source share
2 answers

I had a similar problem: Only Safari on Windows processes if I try to "hide ()" an element with jQuery. This seems to be a problem between Flashplayer and Safari on Windows. The item I'm trying to hide includes an โ€œUploadify-Pluginโ€ that uses Flash content, you said you were hiding something, including the Flex-App. Both of them use Flashplayer.

Workaround: I found a small workaround that is "good enough" for me: Just don't call hide (), but fadeOut (1). One millisecond is important: when I tried fadeOut (0), it crashed again. Sigh

perhaps this helps.

+2
source

I will need to see a site or some code that reproduces the problem in order to find out what the problem is.

0
source

All Articles