| | |
|
|
|
browser detect |
| message from two can's on 23 Jul 2004 |
has any one a snippet that would browser detect the following.
IE5.5 or greater go to inin.asp
any other browser go to
stayout.asp
regards
twocan's
|
| two can's replied to darrel on 23 Jul 2004 |
I know google will turn up a lot, I have tried a few and couldnt get them to
work that is why I asked for a snippet from some one here who has tried and
tested it themselves.
twocan's
"darrel" <notreal@hotmail.com> wrote in message
news:cdr798$ddr$1@forums.macromedia.com...
|
| darrel replied to two can's on 23 Jul 2004 |
Well, that's a problem with browser detecting. They can become outdated
fairly quickly, and most can be spoofed to get around them.
I'd suggest that you just serve up a page saying 'this site requires IE/5.5
on the Microsoft WIndows Platform' to enter. You could also possible wrap
the 'enter' link inside of IE conditional tags so that it only appears in
IE.
-Darrel
|
| Michael Fesser replied to two can's on 23 Jul 2004 |
.oO(two can's)
Why do you wanna do that?
Micha
|
| two can's replied to Michael Fesser on 23 Jul 2004 |
I am using the free HTML editor from http://www.interactivetools.com it
only works on PC 5.5 upwards. I needed this to keep my cleint happy, my
client has a pc at work and a mac at home. I really needed it for
presentation in case he tried to use it at home. and it too me ages.
I do have the html editor from http://www.dmxzone.com but I have had so many
problems with it thaat I desided not to use it any more. the free one from
interactivetools works a treat. I needed to have a table inside my textarea
with a lay out of prices that need to be up dated from time to time. and it
worked first go. the only issue is that it only works with IE 5.5 and above
on PC. if i did not have the redirect browser code then when a user would
try and view he would only see html in the textarea of my form, and it was
quiet intraget so if they deleted the html in there it would have been a
little bother. any way
regards
twocan's
"Michael Fesser" <netizen@gmx.net> wrote in message
news:nge2g0dg9630duf03nia7r7i8s3k6g6ng8@4ax.com...
|
| Thierry Koblentz replied to two can's on 23 Jul 2004 |
<!--[if gte IE 5.500]>
Your link to the HTML editor goes here
<![endif]-->
Only IE5.5 (and above) users will see that link.
"gte" stands for "greater than or equal to"
HTH,
Thierry
"two can's" <GuinnessDrinker@thebar.com> wrote in message
news:cdriqr$shp$1@forums.macromedia.com...
|
| two can's replied to Thierry Koblentz on 23 Jul 2004 |
Thanks for the tip Terry.
have a great weekend.
regards
towcan's
"Thierry Koblentz" <thierry@212Utah.invalid> wrote in message
news:cdrjnb$8o$1@forums.macromedia.com...
|
| darrel replied to two can's on 23 Jul 2004 |
Why not switch to a free HTML editor that is cross-browser compatible?
Check out http://www.fckeditor.net/
This is still in beta, but looks promising.
-Darrel
|
| two can's replied to darrel on 23 Jul 2004 |
Hi yea,
interactivetools has a free html editor too, they released updated code
maybe 8 months ago and now it is fairly bug free, I also find it very easy
to manipulate.
I was aware of http://www.fckeditor.net/ but will give it another few months
before I spend any time with it.
have a nice weekend
regards
twocan's
"darrel" <notreal@hotmail.com> wrote in message
news:cdrjnb$8n$1@forums.macromedia.com...
|
| two can's replied to two can's on 23 Jul 2004 |
Hi all thanks for your help,
the snippet below is to detect IE5.5 or above go to url 'photocopyingIN.asp'
else if Netscape or what ever else go to 'tellIE55needed.asp'
I have tested it using IE 5.5, IE 6.0.2 and netscape 7 it works fine.
the code is below
twocan's
<script language="JavaScript">
var agt=navigator.userAgent.toLowerCase();
IE = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
IE3 = (IE && (parseInt(navigator.appVersion) < 4));
IE4 = (IE && (parseInt(navigator.appVersion) == 4) && (agt.indexOf("msie
4")!=-1));
IE5 = (IE && (parseInt(navigator.appVersion) == 4) && (agt.indexOf("msie
5.0")!=-1) );
IE55up = (IE && !(IE3) && !(IE4) && !(IE5));
if (IE55up)
window.location = 'photocopyingIN.asp'
else
window.location = 'tellIE55needed.asp'
</script>
|
| two can's replied to two can's on 23 Jul 2004 |
The code below will redirect if your using a mac / netscape / or < IE5.5
<script language="JavaScript">
var agt=navigator.userAgent.toLowerCase();
var Mac = (agt.indexOf("mac") != -1);
IE = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
IE3 = (IE && (parseInt(navigator.appVersion) < 4));
IE4 = (IE && (parseInt(navigator.appVersion) == 4) && (agt.indexOf("msie
4")!=-1));
IE5 = (IE && (parseInt(navigator.appVersion) == 4) && (agt.indexOf("msie
5.0")!=-1) );
IE55up = (IE && !(IE3) && !(IE4) && !(IE5));
if (!(IE55up) || Mac)
window.location = 'tellIE55neededPage.asp' <!--this is the redirection -->
</script>
regards
twocan's
"two can's" <GuinnessDrinker@thebar.com> wrote in message
news:cdr8na$fhk$1@forums.macromedia.com...
'photocopyingIN.asp'
(agt.indexOf("msie
(agt.indexOf("msie
|
| two can's replied to two can's on 23 Jul 2004 |
has any one got a snippet they have used.
regards
twocan's
"two can's" <GuinnessDrinker@thebar.com> wrote in message
news:cdr6u8$d0j$1@forums.macromedia.com...
|
|
Archived message: browser detect (Macromedia Dreamweaver Web Design)