![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 |
|
Expert Programmer
|
Just wondering, why is using a server side script to display different layouts for different browsers a bad thing? When I heard him say it, I though "wow why hadn't I thought of that before". I know what you mean about writing code for standards compliant browsers and hacking for others, because thats how I've always done it.
The only downside to the server side script thing IMO, is that you'd have to maintain more than one script.
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#22 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Exactly.
Quote:
Example: if ($firstSub)
{
$outfile [] = '<ul class="';
if ($thisUn || ($browser == "IE")) $outfile [] = 'open';
$outfile [] = 'sub" id="sub">'."\n";
}
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers Last edited by DaWei; Sep 30th, 2006 at 3:46 AM. |
|
|
|
|
|
|
#23 |
|
Expert Programmer
|
Ok I see, so the browser can request a page without supplying the user-agent part of the header.
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#24 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Yeah. It's why people use client-side sniffing if they have client-side script to use. You could send things to the server with your own standalone program (see some recent questions on the forum) and tell it about anything you wanted to, so long as the request conformed to the RFC.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Does someone have a site for me? | nnxion | PHP | 18 | Jan 4th, 2006 5:17 PM |
| Site works in Firefox but not IE | smoked_out_haze | HTML / XHTML / CSS | 8 | Oct 27th, 2005 3:51 AM |
| Rereouting site through php. | ghost_stalker | PHP | 28 | Sep 20th, 2005 2:20 PM |
| extracting info from a remote site. | scorpiosage | PHP | 1 | Jul 8th, 2005 4:41 AM |