troubleshooting Question

REFRESH IMAGE EVERY 10 SECONDS

Avatar of pvg1975
pvg1975Flag for Argentina asked on
JavaScript
4 Comments1 Solution310 ViewsLast Modified:
Hello Guys,

I have the following script that should refresh an image every 10 seconds:

<a href="javascript:this.newWindow = window.open(https://secure.mywebsite.com/client2/rchat.asp?acct=45545454,'Trilogy','width=600,height=450');this.newWindow.focus()"><img src="https://secure.mywebsite.com/image.asp?acct=45545454" name="Trilogy" border="0" onLoad="setTimeout('document.images.Trilogy.src+=\'#\'+(new Date()).getTime();',10000)"></a>

But for some reason it is not working.

I also tryed it like that:

<a href="javascript:this.newWindow = window.open(https://secure.mywebsite.com/client2/rchat.asp?acct=45545454,'Trilogy','width=600,height=450');this.newWindow.focus()"><img src="https://secure.mywebsite.com/image.asp?acct=45545454" name="Trilogy" border="0" onLoad="setTimeout('document.images.Trilogy.src+=\'#\'+(new Date()).getTime();',10000)" onerror="setTimeout('document.images.Trilogy.src+=\'#\'+(new Date()).getTime();',10000)"></a>

And nothing...

Any suggestions?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros