[thelist] "Unknown Runtime Error" in IE5 for my JS..grrr
Tom Dell'Aringa
pixelmech at yahoo.com
Thu Apr 3 12:27:22 CST 2003
--- Jeff Howden <jeff at jeffhowden.com> wrote:
> where's the language and type attributes?
Not there obviously, adding them didn't change anything.
> where are the opening and closing html comments?
If you are referring to comments within the script tag to hide JS
from older browsers, I never use them. That's wouldn't be the issue
anyway, although I realize you are chiding me for my poorly written
script - it was just a quick test page I whipped up. (Yes I know..I
should still do it right.)
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > window.open("addtest.html","add","resizable=yes,
> > status=yes, width=400, height=300");
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
> the third argument of the open() method must not have spaces in it.
Riiight..forgot about that. The window opens fine, however.
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > <a href="javascript: win()">launch win</a>
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
> naughty, naughty, naughty.
Yes yes yes, Houston, this is a TEST! I won't do it that way in
production. :)
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > var item = 1
> > function addItem()
> > {
> > target = window.opener;
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
> i'd be careful of the word target. you'd be better off doing
> something like oOpener or oTarget.
This is a good point, I'll remember that.
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > body = target.document.getElementById('t1body');
> > body.innerHTML += addHTML;
> > item += 1;
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
> the word body has special meaning to ie. change it to tBody or
> oT1body or something.
I didn't know that, but that didn't fix it. I changed both target and
body to oTarget and oBody. No dice still get the unknown error.
Now, when I change my target to a DIV instead of a table element -
bingo - it works. At this point I'll just use that instead since it
will serve my purposes but I can't imagine what the problem is here.
Thanks
Tom
=====
http://www.pixelmech.com/
var me = tom.pixelmech.webDeveloper();
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]
"That's not art, that's just annoying." -- Squidward
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
More information about the thelist
mailing list