[thelist] xml in javascript ie does show it

Jeff Howden jeff at jeffhowden.com
Sat Oct 22 23:17:01 CDT 2005


Hi,

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.

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

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

Sorry, without actually comparative code samples I'm having difficulty
seeing the parallel.

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

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

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > > [...] 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".

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

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > 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 you're still struggling with this, put something
> > online and shoot thelist a message with a link to it
> 
> The prob is solved now by an A Element which calls the 
> function in another frame.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

It may be "solved", but an A element shouldn't be used just to call a
function in another frame.  An A element should only be used to link to
another document (ideally).

 [>] Jeff Howden
     jeff at jeffhowden.com
     http://jeffhowden.com/




More information about the thelist mailing list