Main Menu

ie6 AND ie7?

Started by Tom, April 26, 2007, 05:08:26 PM

Previous topic - Next topic

Tom

Can you get both installed in some manner on XP? I need to do some testing with both, as well as firefox, and while it (the site) works fine in firefox, theres a Js error somewhere with IE7 (even thought I could swear it was all cross browser compatible).

I've heard from one person saying there is a hacked version of ie6 that can be installed alongside, but some things like conditional CSS statements are missing. I'd prefer to have it work the same as it normally would. And I don't have enough ram to run two vmware XP images simultaneously (at least not with 512MB to each, I'll try less, but It might not be enough to run xp :().
<Zapata Prime> I smell Stanley... And he smells good!!!

Thorin

XP can run with 128MB of RAM - I know because that's all I could squeeze onto the motherboard of my Pentium 166Mhz machine.  It was excuciatingly slow, but that's because it was a *very* old HDD (2.1GB).  IE6 and IE7 do not live side-by-side natively.  IE7 forces itself over IE6.  If you have a hacked IE6 running, you have to ask yourself whether your JS is being interpreted by the IE6 or IE7 engine.

I recommend you run two boxes or two virtual machines.  Since you're only testing web sites, you could easily run each image with only 256MB, or even 192MB.  Now, if you were testing AutoCAD, there's no way I'd recommend you run the virtual machines with under 1.5GB each :P
Prayin' for a 20!

gcc thorin.c -pedantic -o Thorin
compile successful

Tom

Heh. Still, I don't like giving windows less than 512MB ;) Its like a rule or something. The fact that with 512MB ram set, it was using 300MB of Host ram...
<Zapata Prime> I smell Stanley... And he smells good!!!

Mr. Analog

Microsoft has snuck in some updates lately the stop some of the incompatibility issues, however some users of applications I support are having grief which is making it hard for them to work, to that I say...


GET FIREFOX

I guess I should make the menus work in Mozilla-based browsers for the next code release haha :D
By Grabthar's Hammer

Mags

"Bleed all over them, let them know you're there!"

Tom

My primary development system is Linux, (I'm used to having all the tools I need ;)) Having to triple boot to test out every little change in the silly little ajax app would take forever and get quite annoying :(

Using two vmware sessions at once seems to be working ok, but IEs debugging sucks so bad its not funny.
<Zapata Prime> I smell Stanley... And he smells good!!!

Thorin

Prayin' for a 20!

gcc thorin.c -pedantic -o Thorin
compile successful

Tom

Yup. It's much better than the default dialog, though I can't be sure if its even reliable information at all. I get two or three errors from two things:

1. /* multi line comments */
2. <tag onfoo="foo();">

I can only assume the second error is coming from the first one, but does IE not do /* comments */ ?

I haven't been able to find any information on IEs support for that style of js comment.
<Zapata Prime> I smell Stanley... And he smells good!!!

Thorin

Sorry, I meant the Microsoft Script Editor (gotta read the page I'm linking to before posting the link :P).

http://www.jonathanboutelle.com/mt/archives/2006/01/howto_debug_jav.html

I don't recall IE's JScript having a problem with multi-line commenting, and in IE6 it's supposed to support all of ECMA-262.  Can you provide a code snippet in context?
Prayin' for a 20!

gcc thorin.c -pedantic -o Thorin
compile successful

Tom

#9
Sadly you need Office of some sort to have MSE. I don't and I'm not sure my VMs have enough disk space :o

But after taking a close look at the code, it SEEMS that IE just doesn't like the trailing , in:

{
  foo: 123,
  bar: 321,
}


Not even a warning in Firefox. yet it totally kills IE?

And now my other error:

<body onload="onLoad();"> I've also tried "return onLoad();", and "onLoad();return false;", etc. It keeps sayng "Expected identifier, string or number" for the text just after onload=" ..

Colour me confused.

edit: ok, that one too seems to have been a trailing ,...

Now I have an error in the "prototype" javascript library? yeeesh..

edit, yeah, its saying "this.initialize" isn't an object or function.. Not sure why. Seems its supposed to be a JS builtin of some form?
<Zapata Prime> I smell Stanley... And he smells good!!!

Mr. Analog

If you do this:


<html>
<script language="JavaScript">
function foo()
{
     //TODO: ADD CODE HERE
}

function doFoo()
{
     foo();
}
</script>
<body onBar="doFoo()">

     <div>blah</div>

</body>
</html>


will work but...


<html>
<body onBar="doFoo()">

<script language="JavaScript">
     function foo()
     {
          //TODO: ADD CODE HERE
     }

     function doFoo()
     {
          foo();
     }
     </script>

     <div>blah</div>

</body>
</html>


...won't because IE will process script calls and look for script declarations while it is parsing the content mid-stream.
By Grabthar's Hammer

Mr. Analog

Ahh, also;

<body onload="onLoad();">

OnLoad is a pre-existing event handler for the MSIE document object class, try changing the name of your function call.

Look up the Document Object Model on MSDN DHTML Reference:
http://msdn2.microsoft.com/en-us/library/ms533050.aspx
By Grabthar's Hammer

Tom

I'm confused, why would a global onLoad() call resolve to document.onLoad ?
<Zapata Prime> I smell Stanley... And he smells good!!!

Mr. Analog

Quote from: Tom on April 26, 2007, 11:08:05 PM
I'm confused, why would a global onLoad() call resolve to document.onLoad ?

You can override an event handler in IE be redeclaring it, but if you use the HTML adornments for event handling MSIE doesn't play nice.

this.document.body.onload = function () { doFoo(); }
By Grabthar's Hammer

Tom

I really dislike IE :( Oh well. If I cant get it to work, theres a chance I don't get payed. woo.

I have to rework the silly tabview thing I wrote a little anyhow, since its complaining about an issue with that particular class/object.
<Zapata Prime> I smell Stanley... And he smells good!!!