User Agents.

JavaScript and client side scripting.

Moderator: General Moderators

User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

Kieran Huggins wrote:I can't help but feel like you're approaching this from the wrong angle. For the most part the Javascript/CSS will be the same in each browser. In Javascript specifically, you should be testing not for platforms but instead for method availability:

Code: Select all

if(methodname){
   v = methodname(data);
}else{
   v = workaround();
}
jQuery supports cross browser scripting out of the box, as do some other frameworks. Use them!

As for Wii or PSP support: if they're really important target platforms you should consider writing a custom view for each. Take a look at http://iphone.facebook.com for inspiration.
Thanks for the tips. But I'm not really expecting to be using IE specific js files. More css, if not all.
Post Reply