[thelist] xml in javascript ie does show it

gruppenfreizeit postmeister at gruppenfreizeit.com
Tue Oct 25 19:47:45 CDT 2005


Hi,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: gruppenfreizeit
>
> > Just because it allows you to do it does *not* mean
> > it's correct.  If you want to refer to the cells in a
> > table, you *must* go through either thead, tbody, or
> > tfoot and then that element's tr.  The fact that
> > Mozilla doesn't require this is an egregious flaw.
>
> That's excatly what you called "ie forgives"!
> Mozilla doesn't need a reference to the cell.
> When you want to change the node inside a td
> it enough to change the child node element of the td
> like happily IE supports, too.
>
> print 'var td=x.getElementById("td'.$o.'");';
> print 'td.lastChild.nodeValue="another text";';
>
> Now I've to create and delete a useless TBODY only to
> keep IE away from creating one automatically, which
> shuffles my whole dom tree.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

The TBODY element is *not* a useless element.  It has semantic significance.
Whether or not you like the extra step isn't important.  What matters is
that IE gets this correct and Mozilla does not.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

That's not true. It's a fact: Mozilla is that gratefull and supports both.
And I tried the tbody elment to style another table.
It's really useless.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > Sorry, without actually comparative code samples I'm
> > having difficulty seeing the parallel.
>
> el.setAttribute("style","color:black;paddingRight:5px;...")
>
> instead of
>
> el.style.color="black"
> el.style.paddingRight="5px"
> .
> .
> .
> you see?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

Yes, I see.  However, I personally prefer the second method as it's much
more clear what's going on.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

I don't get it. It's a lot more typing and the first method is clear.
But as I've written above:
It's a fact: Mozilla is that gratefull and supports both.


><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> Last example was the dependency of windows.
> Specially for IE I had to write a loop which is
> searching and closing each single dependend subwindow,
> cause IE ignores this argument.  Mozilla closes all
> dependend subwindows automatically, when you close
> the upper window.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

As you didn't provide a code sample, it's difficult to say how exactly
you're creating dependant child windows.  If so, you're using a browser
specific feature that's *not* a part of ECMAScript.  If so, then it's no
wonder it's not supported by IE.  However, that's not to say there isn't an
IE-specific way to accomplish something like that, like a modeless dialog.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

var win=window.open(url,"win"+x, "dependent=yes,...
That's truely enough for Mozilla.

Next is the

x.createElement("INPUT");
x.setAttribute("TYPE","checkbox");

It's simple and intuitiv to programm with Mozilla.
IE returns a text input.

In my opion Mozilla is real better for programming.
If they would present a better 3d design, everyone will change.
That's the big advantage of IE.



><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> The information is lost inside the inserted document.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

Perhaps what you're inserting into the other document is overwriting the
function you're calling.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

Yes, that's how it looks like.
However, the script doesn't touch the inserted elements again, except
deleting them.
As long as they're alive, they should keep the function.
I try later to call the function inside the other page as you described in
your last mail.


Cheers

Tummel




More information about the thelist mailing list