IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
2 Pages V  < 1 2  
Reply to this topicStart new topic

Internet Explorer Sucks

, Yeah, I said it.

anachro
no avatar
Member [Level 1]
****
Group: Members
Posts: 68
Joined: 7-January 08
Member No.: 55,865



Post #11 post Jan 21 2008, 04:59 AM
aight! I'll give it a shot biggrin.gif
Go to the top of the page
+Quote Post
usedragon
no avatar
Newbie [Level 2]
**
Group: Members
Posts: 25
Joined: 21-January 08
Member No.: 56,584



Post #12 post Jan 21 2008, 05:14 PM
I find firefox and Internet explorer equal. I happen to use both of them for certain things. Firefox is better than internet explorer on most cases, but internet explorer has better tabbing (My Opinion!) sleep.gif
Go to the top of the page
+Quote Post
KansukeKojima
no avatar
Privileged Member
*********
Group: [HOSTED]
Posts: 525
Joined: 13-October 06
From: Alberta, Canada
Member No.: 31,584



Post #13 post Jan 21 2008, 10:31 PM
Ok, I have replaced the old tutorial on my website with this one... bassically the same... except its about increasing browser compatibility, instead of telling people internet explorer sucks... I think that its a better idea, as its less offensive ( I honestly don't know who would take offense), and has more of a point.
QUOTE

Description
With so many different browsers, people have a long list to choose from. Unfortunately, that is when we run into problems with a website's performance. Since most browsers read HTML, CSS etc. slightly different than the next browser, your website may not look how you wanted. Let's learn to fix this problem.

Try It Out
If we want to make our website compatible with different browsers, we'll have to know which browsers the viewers will be using. We can grab this with the good ol' HTTP_USER_AGENT command.


Code
<?php
$browser = $_SERVER['HTTP_USER_AGENT'];
?>

Alright, good job, young php-learner. As you can probably guess, this does pretty much nothing. So far all we have done is create the $browser variable and given it a value. Now we are ready to make our website more compatible.


Code
<?php
//--------------
//grab user info
//--------------
$browser = $_SERVER['HTTP_USER_AGENT'];

//--------------
//compatible content
//--------------
if(strstr($browser, "MSIE")) {
$compatible = <<<html
Code Compatible for Internet Explorer
html;
} else {
$compatible = <<<html
Code Compatible for Other Browser(s)
html;
}
echo $compatible;
?>

Ok, so bassically, if the value of the $browser variable (which contains the HTTP_USER_AGENT command) has the phrase MSIE (Microsoft Internet Explorer), it shows you whatever you replace "Code Compatible for Internet Explorer" with. If it doesn't contain MSIE then it echoes what ever you replace "Code Compatible for Other Browser(s)" with. Also, you can use this to add special features to your website depending on what browser they are using. Play around with the code, and add your own flavours and ideas to it.


[note=rvalkass]
Even if you copy from your own website, it should really be quoted.
[/note]
Go to the top of the page
+Quote Post
ashxu
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 18
Joined: 2-April 08
From: Nintown
Member No.: 60,276



Post #14 post Jun 28 2008, 01:01 AM
When i changed to FireFox, my internet was wayy faster (my bandwith runs out frequently)
According to my friend, IE takes longer to load up the page (not downloading)
Go to the top of the page
+Quote Post
minimcmonkey
no avatar
Super Member
*********
Group: [HOSTED]
Posts: 305
Joined: 19-June 08
From: United Kingdom - Cornwall!!!!!
Member No.: 63,876
myCENT:42.52



Post #15 post Aug 18 2008, 06:23 PM
Had it not occured to you, that you could use javascript for that?
just create a variable for weather or not it is IE, then a statement for when it is, and an ELSE for if it isnt. Thus, relieveing some strain from your web host, as the server does not have to process it, the clients computer does it itself.
Go to the top of the page
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts 6 holyium 610 12th January 2005 - 05:53 PM
Last post by: krap
No new   25 winflowers 1,235 14th November 2004 - 05:02 PM
Last post by: alperuzi
No New Posts   2 err 464 14th September 2004 - 02:14 AM
Last post by: err
No New Posts   12 zip_mc 721 13th September 2004 - 06:45 AM
Last post by: zip_mc
No new 44 Saint_Michael 3,246 22nd October 2004 - 03:50 PM
Last post by: cbaxter94
No New Posts   8 tricky77puzzle 593 16th June 2008 - 05:14 PM
Last post by: tricky77puzzle
No New Posts   4 cragllo 383 23rd October 2004 - 03:42 AM
Last post by: keifer
No new   26 Saint_Michael 1,856 1st May 2006 - 02:25 PM
Last post by: agentblade
No new   33 sportzdawg 2,923 5th January 2005 - 10:22 PM
Last post by: dexter
No New Posts   2 TCracker 158 23rd October 2008 - 11:34 AM
Last post by: shadowx
No new 61 spawn_syxx9 3,795 11th August 2005 - 09:47 AM
Last post by: patelg
No new   51 X-Master 3,511 12th November 2008 - 05:46 AM
Last post by: iGuest-Natasha
No New Posts   3 jackkkk26 390 11th November 2004 - 04:01 PM
Last post by: vulgarcriminal
No New Posts   2 markian 425 15th November 2004 - 01:34 PM
Last post by: rejected
No New Posts 4 amir691 350 26th June 2006 - 05:46 PM
Last post by: asyn


 



RSS Lo-Fi Version Time is now: 5th December 2008 - 07:34 AM