PDA

View Full Version : Working around IE7 issue...



Head In A Pan
March 22nd, 2007, 03:44 AM
This is related to my last post but on a different track - maybe this is a better approach...

I'm trying to adapt an old piece of javascript to allow it to work with IE7 (which it wont... yet)

At the start of my js there is a line of code:

var ns = (navigator.appName.indexOf("Netscape") != -1);
which detects if netscape & makes some sort of rule (I am new at this - bear with me)

And in my searches for a IE7 equivalent I have found:
ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;

If this is the same sort of thing, how do I adapt it to my code?

Any suggestions?

ramie
March 22nd, 2007, 04:35 AM
http://www.quirksmode.org/js/support.html

Head In A Pan
March 22nd, 2007, 04:47 AM
Thanks...
It's looking pretty dire right now -
I will learn js along the way... but I am still trying to concentrate on actionscript.
So many languages to learn! I feel like I have just joined the UN.

This little floating layer is the last thing I NEED to solve before I can invoice this guy - and I am totally lost because IE7 is such a horrible bully! ;P

The worst part of the scenario is that I can't test any changes I make because I work on a mac, at home, alone. No IE7.

I have to make a changes then get on msn (begrudgingly) messenger and ask my friends to test on their IE7 (which they don't use as a rule - only to test my bodgey novice coding!!)

But anyway,
Thanks... ok.. time for some wine... oh yeah, I've just been whining for the last paragraph or two!






http://www.quirksmode.org/js/support.html