Page 2 of 2

Posted: Sun Oct 21, 2007 2:02 pm
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.