| Author |
browser detection alternative?
|
|
|
| Hi,
I'm nearing the completion of a website where I've used css for formatting and
positioning, and have decided not to support browsers below version 5. I'd like
to put a browser detection script on the index page of the site dectecting
browser versions below 5 and redirecting them to a basic page displaying simple
contact info and explaining that that particular browser is not supported. I'm
also considering not supporting IE mac since this browser is now being phased
out.
I've read that browser dection is not reliable, but I was wondering how else I
could go about redirecting viewers to an alternate page? I mean I don't want
them to see broken pages - I just want them to see a simple alternative. Are
there any reliable scripts that will work or another method? The behavious that
come with dreamweaver only work for IE and NN, so how would I detect a mac
browser?
Any help offered would be appreciated.
| |
| Thierry | www.TJKDesign.com 2005-07-29, 11:17 pm |
| gwnh wrote:
> Hi,
> I'm nearing the completion of a website where I've used css for
> formatting and positioning, and have decided not to support browsers
> below version 5. I'd like to put a browser detection script on the
> index page of the site dectecting browser versions below 5 and
> redirecting them to a basic page displaying simple contact info and
> explaining that that particular browser is not supported. I'm also
> considering not supporting IE mac since this browser is now being
> phased out.
I'd use simple CSS branching techniques to serve unstyled documents rather
than a different content.
Thierry | www.TJKDesign.com
| |
| Murray *TMM* 2005-07-29, 11:17 pm |
| In particular, if you @import your stylesheets, you'll bypass NN4x. What
other one is there to worry about of any significance?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"Thierry | www.TJKDesign.com" <thierry@212utah.invalid> wrote in message
news:dcei1h$8i5$1@forums.macromedia.com...
> gwnh wrote:
>
> I'd use simple CSS branching techniques to serve unstyled documents rather
> than a different content.
>
> Thierry | www.TJKDesign.com
>
>
| |
|
| Thanks for the replies,
Yeah I'm aware of the degrade gracefully concept with css but I really think
the site will look too unattractive with all the css positioning removed. The
site is for a menswear company so I really need the best possible look for all
viewers. That said as mentioned in my first post, I was planning on not
supporting Internet Explorer (mac) basically because I thought it was being
phased out, so if I decide on using detection is it possible to detect this mac
browser using dreamweaver in order to feed it a basic one page?
So, with the these points in mind, can you tell me if it's really a bad thing
to use detection? I mean what's the worst thing that could happen?
| |
| Murray *TMM* 2005-07-30, 7:20 pm |
| IE Mac *is* phased out.
> So, with the these points in mind, can you tell me if it's really a bad
> thing
> to use detection? I mean what's the worst thing that could happen?
Yes - it multiplies your maintenance issues when you make different pages
for different browsers, and it fails to properly detect browsers. The worst
that would happen is that browser A will be sent to browser B's page.
But - why not post a link to your page and let the eagle eyes here take a
look at what might be troubling you?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"gwnh" <webforumsuser@macromedia.com> wrote in message
news:dcf2cm$qid$1@forums.macromedia.com...
> Thanks for the replies,
>
> Yeah I'm aware of the degrade gracefully concept with css but I really
> think
> the site will look too unattractive with all the css positioning removed.
> The
> site is for a menswear company so I really need the best possible look for
> all
> viewers. That said as mentioned in my first post, I was planning on not
> supporting Internet Explorer (mac) basically because I thought it was
> being
> phased out, so if I decide on using detection is it possible to detect
> this mac
> browser using dreamweaver in order to feed it a basic one page?
>
> So, with the these points in mind, can you tell me if it's really a bad
> thing
> to use detection? I mean what's the worst thing that could happen?
>
>
| |
|
|
|
|
|
| I just checked and I can't access the first page either on IEmac - not sure
why. But the reason why I used the table on the first page is because it was
the only way I knew how to center everything vertically on the browser window.
Maybe if I fix this the front page will be okay in this browser? But there is
also another major problem as you go into the other pages for IEmac:
http://www.kellycountry.net.au/inprogress/corporate/
...so not sure how to fix that?
If you're able to take a look, would be good.
| |
| Murray *TMM* 2005-07-30, 11:14 pm |
| > But the reason why I used the table on the first page is because it was
> the only way I knew how to center everything vertically on the browser
> window.
Using the table is not the problem. Positioning it with the CSS
position:absolute is. Remove that from the table and see if IE5x/Mac
behaves better.
It's easier to fix such problems by fixing the non-standard usages in your
code (this positioned table could be considered one), than it is to sniff
for browsers.
If you can get me into that first page, then I'll take a look at the others.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"gwnh" <webforumsuser@macromedia.com> wrote in message
news:dch4fd$hm9$1@forums.macromedia.com...
>I just checked and I can't access the first page either on IEmac - not sure
> why. But the reason why I used the table on the first page is because it
> was
> the only way I knew how to center everything vertically on the browser
> window.
> Maybe if I fix this the front page will be okay in this browser? But there
> is
> also another major problem as you go into the other pages for IEmac:
> http://www.kellycountry.net.au/inprogress/corporate/
>
> ...so not sure how to fix that?
>
> If you're able to take a look, would be good.
>
| |
|
|
| Murray *TMM* 2005-07-31, 7:31 pm |
| No, I want to see the first page, first. Did you upload the page with the
position:absolute style removed? It looks the same to me.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"gwnh" <webforumsuser@macromedia.com> wrote in message
news:dcha69$o92$1@forums.macromedia.com...
> I've just taken out the position: absolute but the front page is still not
> viewable in IEmac. If you want the link to get into the other pages it's:
> http://www.kellycountry.net.au/inprogress/corporate/
>
> ...if you want to take a look for me.
>
| |
|
| I thought I uploaded it before but I found there were two index pages on the server, so I've deleted the older one.
Maybe you can take a look now.
| |
| Murray *TMM* 2005-07-31, 7:33 pm |
| You cannot have two pages with the same name in the same folder in any OS I
know of.
LOL - here is your problem in IE5x/Mac. Change this -
border-bottom-color: #D4E3D9;
}
</style>
</head>
to this -
border-bottom-color: #D4E3D9;
}
-->
</style>
</head>
You had an unterminated comment there. Let me know when you have done this,
please.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"gwnh" <webforumsuser@macromedia.com> wrote in message
news:dcik77$ck3$1@forums.macromedia.com...
>I thought I uploaded it before but I found there were two index pages on
>the server, so I've deleted the older one.
>
> Maybe you can take a look now.
| |
|
| Thanks - I've done that and have uploaded the file. Can we continue?
| |
| Murray *TMM* 2005-07-31, 7:34 pm |
| Yep, and as you can see, it does not vertically center in IE5x/Mac. That
being the case, I'd just rip out the incredibly complex markup you have
there and replace it with a simple centering div.
OK - on the Corporate page:
* why is #wrapper relatively positioned?
* why is #innerlayer relatively positioned?
Anyhow, make your cyan stripe a repeating (repeat-x) page background image
rather than a color in a 100% width #background div. Then you can assign an
explicit width to the #innerlayer rather than that auto width (IE5x/Mac is
being confused by the 100% width on the #background div). That should keep
this div from blowing out in IE5x/Mac.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"gwnh" <webforumsuser@macromedia.com> wrote in message
news:dciokp$hub$1@forums.macromedia.com...
> Thanks - I've done that and have uploaded the file. Can we continue?
| |
|
| I think I've followed instructions but it's now worse than before - the image
won't center. But I'll work on this front page a little later maybe. Re the
relative positioning of the divs on the following page - it's because I've used
them as a positioning context for a link on other pages. Are you able to tell
me why the div is so far out on IEmac on the corporate pages?
| |
| Murray *TMM* 2005-07-31, 7:34 pm |
| Yes - I did that in my previous post.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"gwnh" <webforumsuser@macromedia.com> wrote in message
news:dciu3v$oge$1@forums.macromedia.com...
>I think I've followed instructions but it's now worse than before - the
>image
> won't center. But I'll work on this front page a little later maybe. Re
> the
> relative positioning of the divs on the following page - it's because I've
> used
> them as a positioning context for a link on other pages. Are you able to
> tell
> me why the div is so far out on IEmac on the corporate pages?
>
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |