On Dec 27, 8:34*pm, Rainmanjam <nject...@gmail.comwrote:
I have a web site that uses MSN Live Maps. It works in Opera if I
change the User Agent to IE. Is there a way to change the User Agent
via Javascript for one page?
Find whatever variable is used to store the user agent (usually
something like var IE = true/false) and just set it to true. But I
expect that will break much more than it fixes.
From the little I have seen of MS Live Maps, I wouldn't use it for a
web site. It uses extensive browser sniffing and requires the
download of a 750kB script file. In another thread, I did a search
for the string "attachEvent" and got 234 hits whereas addEventListener
only rated 11 - seems to me it is deliberately designed to provide
more features for IE than any other browser.
Now that is fine, MS are quite at liberty to create IE-specific web
libraries, but if you want a site that works well in other browsers,
don't use it.
--
Rob