[thelist] xml in javascript ie does show it

gruppenfreizeit postmeister at gruppenfreizeit.com
Sun Oct 23 17:57:34 CDT 2005


Hi,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>from:Jeff Howden
>
>First of all, please fix your address book entry for thelist.  It should be
>thelist at lists.evolt.org and *not* thelist at evolt.org.uk.
>
>Second, show some love for everyone else on thelist, especially those on
>digest by trimming the cruft from your reply.  Since you quoted portions of
>my message, you could have just trimmed it in it's entirety.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

I will.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: gruppenfreizeit
>
> > > Like IE needs the TR element to display the
> > > tablerows.
> > > Mozilla not. [...]
> >
> > Then Mozilla is ignoring the spec because a TR element
> > is a required table element.
>
> It's the same if you're using Mozilla and enter the TR
> or not, like the tbody Element, [...]
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

>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.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> [...] like the setAttribute for css style or
> element.style.anotherstyle,...
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

>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?

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > Actually, I think the opposite is true.  Mozilla is
> > very intolerant of certain invalid markup while IE is
> > very forgiving, often "fixing" the markup prior to
> > rendering it so that it can at least be rendered.
>
> Think twice, you're surely right with javascripts except
> the dom. [...]
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

>Please provide examples of what you're referring to.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
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.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> It's one thing to forgive a forgotten ";" and run the
> code further on [...]
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

The semi-colon is *optional*.  There isn't a single browser out there that
is ECMAScript compliant that will balk at the omission of a semi-colon
(except when required to separate statements, as defined by the language).
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

When you wright js script code in one line, the semicolon is absolutly
necessary!!
Any browser could read it without.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > > [...] el.onclick=function(){do something};
> >
> > I've never experienced any difficult using this
> > approach provided I'm referring to an event handler
> > IE supports for the element I'm working with.
>
> This is good as long as you change the same side. [...]
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

>I'm sorry, but I don't follow you here.  What do you mean by "change the
>same side".
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

I meant the same document. Sorry for this.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> [...] In my opinion it seems to be like the whole
> function informations are gone after a reload of the
> control frame.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

>Perhaps it's not yet available because the reloaded document hasn't fully
>reloaded when the function is called again.

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

good idea, but the reloading script is not a document and finishes it's load
before reloading.
I tried some alerts to look for this.
The information is lost inside the inserted document.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > el.onclick = function()
> > {
> >   myfunction(somevar, somevar2);
> > }
>
> That's not working for me in cross side scripting nor
> in Mozilla neither in IE.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
>
>If you're calling a function in another frame, then you'll have to
reference
>that frame beore you can call the function.
>
>el.onclick = function()
>{
>  parent.frames['myotherframe'].myfunction(somevar, somevar2);
>}
>
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

If IE sets the right parameters, it should work
and my a tag is finally overdone.
Thank you so much for that.




More information about the thelist mailing list