insertAdjacentText not supported by netscape?

D

Dan

Hi,

Is the method 'insertAdjacentText' supported by netscape? I 'm afraid of
not. Does anyone know the equivalent method?
By the way, does it exist something like a equivalence tabel between IE and
Netscape? It would be very handy.

Thanks in advance
Dan
 
D

DU

Dan said:
Hi,

Is the method 'insertAdjacentText' supported by netscape? I 'm afraid of
not. Does anyone know the equivalent method?
By the way, does it exist something like a equivalence tabel between IE and
Netscape? It would be very handy.

Thanks in advance
Dan

object.insertAdjacentText(sWhere, sText)
(...)specifies where to insert the text(...)
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/insertadjacenttext.asp

CharacterDataNode.insertData(offset, arg in DOMString)
Parameters:
offset of type unsigned long
The character offset at which to insert.
arg of type DOMString
The DOMString to insert.
http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-3EDB695F

Just by using DOM properties and methods, people always end up
supporting more browsers, more web-aware applications, more devices,
more media than any proprietary DOM (like MSIE's one).

DOM 2 CharacterData interface methods and properties are all completely,
entirely supported by all recent browsers (Opera 7, MSIE 6, MSIE 5.x for
Mac, NS 6.2+, 17 different Mozilla-based browsers, Konqueror 3+, Safari,
Ice-Storm, etc,etc..). So, insertData() calls will be supported while
insertAdjacentText will not in all browsers, web-aware applcations, et.c.

Interactive DOM level 2 CharacterData Interface attributes and methods
tests:
http://www10.brinkster.com/doctorunclear/HTMLJavascriptCSS/DOM2CharacterData.html

Using W3C web standards HTML markup code, CSS code and DOM code is in
the best interests of web designers and their website visitors, customers.

DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunclear/Netscape7/Netscape7Section.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,077
Messages
2,570,569
Members
47,205
Latest member
KelleM857

Latest Threads

Top