From: Oliver G. <oli...@we...> - 2001-12-13 21:31:03
|
Hi Hans! Hans Ajiet Holtkamp wrote: > > I noticed the problem this morning. > > I have a solution that will work on all > browsers, but without links. > > The problem is that you can address ID's of > <div> <span> or <p> tags in ie using > > ID.innerHTML = "Text" or > ID.innerText = "Text" > > but this does not work with NS or Opera, although it > is HTML 4 standard! However, it is not incorrect programming. > I'm not so sure about this being part of the HTML specification. I always was under the impression that the scripting languages themselves are proprietary extensions by specific companies. JavaScript was AFAIK invented and first implemented by Netscape, Microsoft implemented their own version of JavaScript with a few additions and alterations and they also came up with VBScript (which nobody understands outside the Windows world). I just had a quick look at the HTML 4.01 specification over at w3c.org and the only thing I found regarding scripting was a definition about the way an (input) event is mapped to a script. There were several examples in JavaScript, VBScript, and Tcl. But the HTML specification does not define the syntax or capabilities of the scripting language itself. In <http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.2.3> I found the following: "Each scripting language has its own conventions for referring to HTML objects from within a script. This specification does not define a standard mechanism for referring to HTML objects." > A Form input tag can be addressed in ie and NS using > > document.form1.scrollField.value = "Text"; > > but cannot contain links. > > If you have any other solutions, please let me know. > I'm afraid I can't be of much help here at the moment, since I haven't really done much with JavaScript since the aforementioned "painful expieriences" ;-), but I'll see if I can play around a bit with it when I find the time (certainly not before Sunday, I'm afraid). Regards, Oliver -- Oliver Goetz, mailto:oli...@we... "I'd rather laugh with the sinners than cry with the saints Sinners are much more fun... And only the good die young" -- Billy Joel |