UPDATE:
The issue is that I am using a lot of Javascript & CSS3 enabled modules which also contain a lot of heavy javascript and images. If it is IE6 to 8 and in some cases even 9, I dont want to display those modules or display them using someother method. Using CSS property display:none or conditional stylesheets using Conditional Comments is not solving my problem as the page still remains heavy loading all the javascript and images.
Hiding them is not the resolution.
Hence I want to load a very diferrent layout with a very diferrent <div> and module position structure.
and that is why I want to load all together a diferrent page.
Kindly help with some code snippets.
I am a newbie at programming and need help. The issue is like this:
I have developed a template for my site and I am using many jQuery and CSS3 functions in it.
Obviously I am having challenges specially with IE. Hence I am seeking help in serving a browser specific page. What I want to do is:
-
Identify the browser and IF it is IE then it loads a variable page called ie.php similarly for iphone, chrome, safari, firefox and so on.
-
It will be great if you cansuggest me a php solution, However i am also using jQuery hence if there is a simpler and shoter method in jQuery even that is fine.
PLEASE NOTE : I am a very novice at programming, hence please help explaining a bit about the functions.
If you want to load different css/js files if the browser you can put something like this in the
<head>to only pull in the desired css/jsalternatively you can look at the $_SERVER[‘HTTP_USER_AGENT’] in PHP and see what comes through for the various browsers.
hope this helps