Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari, onLoad and Refresh



I was working with a javascript slideshow of my own just yesterday and noticed that it would work properly unless I happened to click forward or back while it was in the middle of a transition. I think the reason is, is that I use a body onLoad to start the first image, setTimeout to display each successive image, and setInterval to animate the transition. Apparently, only the setTimeout can survive from going forward and back.

I have not had any trouble with it refusing to restart after a refresh though, and the only time it won't continue is if I switch pages while it's in the transition.

Don't know if that is helpful for you, but I just happened to notice it yesterday.

Errol

On Mar 29, 2006, at 11:30 PM, Duncan Heal wrote:

Howdy

Can someone clarify that Safari has issues with using onload events and refresh?!

I know refresh is border-line evil but does it has valid uses. We're putting together a property listing display that cycles through a bunch of detail pages using a refresh to direct it to the next listing. The page has a javascript slideshow feature that requires an onload event.

(The slideshow is based on the script at: http://www.gsgd.co.uk/ xhtml/articles.php)

Annoyingly, and that's me being subdued, the slideshow only works once. On successive reloads of a page the slideshow doesn't work. It only works when loading the page for the first time in a session (ie, not loaded from the cache). It works as expected using other web browsers.

And yes, I've played with no-cache and putting timestamps in the urls and I've fiddled with the js. Upon trawling the net it appears that Safari has issues with onload and refresh. What are other people's experiences?

Regards
Duncan
-----------------------------
Sprocket Web Design
www.sprocket.co.nz
-----------------------------


_______________________________________________ Do not post admin requests to the list. They will be ignored. Web-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Web-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden
References: 
 >Safari, onLoad and Refresh (From: Duncan Heal <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.