View Single Post
Old 12-20-2006, 07:28 AM  
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
Use a server side script to write the .js include:

if($_SERVER["HTTP_USER_AGENT"] == "so and so")
echo "this.js";
else
echo "that.js";

Or, have your .js file alias to a server side script that does the same thing internally.

Otherwise, I tend to agree with Calvilnguy, that's it'd be better to just write cross-platform JS scripts.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote