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: Redirect / Refresh



Thanks, Lucas.

I like the javascript solution. I did this...

<body onload=setTimeout("location.href='catalog.html'",10000)>

for a ten second delay. It works but I would like to hear from a 
javascript expert whether this is good code.

John

On Jun 18, 2004, at 9:18 AM, Lucas Holt wrote:

> The only other way to do it is with javascript.  You can create a 
> timer that starts onload and then have it fire a 
> window.location.href='newurlhere';
>
> You can't do that server side.  The client must be involved either via 
> javascript or the meta refresh tag.  Applications that show progress 
> bars, etc actually post back using one of the above methods or don't 
> drop the connection and continuously feed the client data.
>
> On Jun 18, 2004, at 11:33 AM, John Crockford wrote:
>
>> I would like to open a web site with a page that views for about 10 
>> seconds and then redirects to another page. How can I do this with 
>> using the meta "refresh" tag. I can set the server to redirect one 
>> page to another but without a time delay. Does anyone know how to do 
>> this? Thanks.
>>
>> John Crockford
>> _______________________________________________
>> web-development mailing list | email@hidden
>> Help/Unsubscribe/Archives: 
>> http://www.lists.apple.com/mailman/listinfo/web-development
>> Do not post admin requests to the list. They will be ignored.
>>
>>
>
> Lucas Holt
> email@hidden
> ________________________________________________________
> FoolishGames.com  (Jewel Fan Site)
> JustJournal.com (Free blogging)
> _______________________________________________
> web-development mailing list | email@hidden
> Help/Unsubscribe/Archives: 
> http://www.lists.apple.com/mailman/listinfo/web-development
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.


References: 
 >Redirect / Refresh (From: John Crockford <email@hidden>)
 >Re: Redirect / Refresh (From: Lucas Holt <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.