Forum Moderators: open

Message Too Old, No Replies

Animated GIF's

Stop flashing when another instance of the browser is opened

         

Alternative Future

9:50 am on Sep 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello all,

I am sure this question has been covered before, but for the life of me I cannot find the thread, so any pointers is appreciated or even better an answer.
Using IE for our app. We have a search results page which shows flashing icons (images) of a certificate in an overdue state. When the user clicks on an external reference which opens in a new instance of IE and then closes this instance the first instance with the results and flashing icons no longer flash, is this a known IE bug or is there a workaround?

TIA,

-George

Alternative Future

10:19 am on Sep 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ok the problem is related to the fact we call our javascript window open from the href tag. If this is moved to an onClick event returning false the problem should be fixed.

-George

moltar

10:56 am on Sep 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I know you could use window.stop() command, but that only works on Netscape/Mozilla/Firefox based browsers.

Alternative Future

10:59 am on Sep 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks moltar,

This particular app is used only by IE so using window.stop wouldnt work :( If it were to have been of use how would one place that in the page? and wouldnt that also just stop the GIF's from animating?

-george

Robin_reala

12:18 pm on Sep 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Make a non-animated gif of the end state and use the javascript to swap out the animated one for the non-animated one when you open the new window?

Alternative Future

12:23 pm on Sep 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks Robin_reala,

I have fixed the problem with message two, where I replaced the href with an onclick event handler that returned false. So the anchor tag now looks something like this:
<a href="#" onClick="myJavaScript();return false;">external ref</a>

-george