[thelist] Safari V2 detect and redirect

Kenneth Smith kennethbsmith at yahoo.com
Wed Jul 9 12:11:15 CDT 2008


Thanks, though I am not sure how to add that to my JS:

<!-- Begin redirect Safari-->
<script type="text/javascript">
if(navigator.userAgent.indexOf("Safari") != -1)
{
   window.location = "http://systemarchitects.net/index_dot.html";
}
else
{
   window.location = "http://systemarchitects.net/index.html";
}
</script>
<!-- End redirect Safari-->

I included the full URL so you can see what I am dealing with.
This is the first redirect I have had to deal with and I am a better  
designer than coder. Any assistance is appreciated.
Ken


On Jul 8, 2008, at 1:00 PM, thelist-request at lists.evolt.org wrote:

> Send thelist mailing list submissions to
> 	thelist at lists.evolt.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.evolt.org/mailman/listinfo/thelist
> or, via email, send a message with subject or body 'help' to
> 	thelist-request at lists.evolt.org
>
> You can reach the person managing the list at
> 	thelist-owner at lists.evolt.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of thelist digest..."
>
>
> Today's Topics:
>
>   1.  browser redirect script for Safari 2 and 1 (Kenneth Smith)
>   2. Re:  browser redirect script for Safari 2 and 1 (Jawad Anwar)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 7 Jul 2008 14:55:31 -0400
> From: Kenneth Smith <kennethbsmith at yahoo.com>
> Subject: [thelist] browser redirect script for Safari 2 and 1
> To: thelist at lists.evolt.org
> Message-ID: <E518CC53-E2AF-4096-8D3A-7951EC9AF971 at yahoo.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> I have a site with SVG in the home page, unfortunately it does not
> work in Safari 2 and earlier. I have a redirect script for Safari that
> works but it does not include the version number. Since my page http://systemarchitects.net/
>  works well in version 3, I only want the redirect script to work on
> Versions 1 and 2.
> Can you help me with a script that only redirects versions 1 and 2?
> kbs
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 7 Jul 2008 15:58:23 -0700 (PDT)
> From: Jawad Anwar <janwar73 at yahoo.com>
> Subject: Re: [thelist] browser redirect script for Safari 2 and 1
> To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
> Message-ID: <625372.94424.qm at web83602.mail.sp1.yahoo.com>
> Content-Type: text/plain; charset=us-ascii
>
> I dont know about Safari v1 but this is how I used for safari 2.0.
>
> var detect = navigator.userAgent.toLowerCase();
> var version= navigator.appVersion.toLowerCase();
> var mac= (navigator.platform.indexOf("Win32") < 0) ? 1 : 0;
> var safari_2_x=(mac && detect.indexOf("safari") >=0 &&  
> detect.indexOf("412") >= 0) ? 1 : 0;   //used to detect safari  
> version 2
>
> Hope it helps.
> Thanks
>
>
> Jawad Anwar
> Canton, Michigan
>
>
> "Shall I not inform you of a better act than fasting?  Making peace  
> with one another, (for) enmity and malice tear up heavenly rewards  
> by the roots"              -- Prophet Muhammad (peace be upon him)
>
>
> "Take benefit of five before five:your youth before your old age,
> your health before your sickness,your wealth before your poverty,
> your free-time before your preoccupation, and your life before your  
> death."                -- Prophet Muhammad (peace be upon him)
>
>
> "I don't measure a man's success by how high he climbs but how high  
> he bounces when he hits bottom" -- General George S. Patton
>
>
> ----- Original Message ----
>> From: Kenneth Smith <kennethbsmith at yahoo.com>
>> To: thelist at lists.evolt.org
>> Sent: Monday, July 7, 2008 2:55:31 PM
>> Subject: [thelist] browser redirect script for Safari 2 and 1
>>
>> I have a site with SVG in the home page, unfortunately it does not
>> work in Safari 2 and earlier. I have a redirect script for Safari  
>> that
>> works but it does not include the version number. Since my page
>> http://systemarchitects.net/
>>  works well in version 3, I only want the redirect script to work on
>> Versions 1 and 2.
>> Can you help me with a script that only redirects versions 1 and 2?
>> kbs
>> -- 
>>
>> * * Please support the community that supports you.  * *
>> http://evolt.org/help_support_evolt/
>>
>> For unsubscribe and other options, including the Tip Harvester
>> and archives of thelist go to: http://lists.evolt.org
>> Workers of the Web, evolt !
>
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Help: http://lists.evolt.org/mailman/listinfo/thelist
>
> Archives: http://lists.evolt.org
>
> End of thelist Digest, Vol 65, Issue 7
> **************************************




More information about the thelist mailing list