Mailing Lists: Apple Mailing Lists

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

Safari, onLoad and Refresh crashes



Since we're talking about crashing Safari, here's my well-tested method:

Put a QT object/embed in a page. Give it a name/id attribute so you can address it through JavaScript. Enable controller.

Add a button to the page that makes these two calls to the QT plugin functions:

MyVar1 = document.MyQTVideo.SetControllerVisible(0)
MyVar2 = document.MyQTVideo.GetRectangle()

Safari 1.3.2 in OS 10.3 and Safari 2.0.3 in OS 10.4 will silently disappear from your screen.

Other browsers in my testing are not crashed by these calls.

What's the relevance of this? I think your timer and these two calls have something in common: Safari has not yet finished reacting to the first call when the next one starts getting processed... and it can't get meaningful results... This is just a guess.

I'm interested in this thread because Safari chokes on my pages with QT clips in other situations that I have not figured out yet.

Slava

At 10:24 AM 3/30/2006, you wrote:
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
References: 
 >Safari, onLoad and Refresh (From: Duncan Heal <email@hidden>)
 >Re: Safari, onLoad and Refresh (From: Errol Sayre <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.