Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

innerText = unknown to NN4.7 ?!!!!!???

Status
Not open for further replies.

IonelBurtan

Programmer
May 25, 2001
601
RO
That is another one guys.
Yes, the same problem. Works in IE5 but no way in NN4.7. I had made all possible changes I had in mind to the following code, no positive outcome.
(does this NNx knows DHTML - I'm beggining to wonder)

{never mind the romanian text and var names}

//this is inside a function
.....
case 0:
{
alert("I am in");
Descrierea.innerText="Sonar Web Server 1.2.0 - Web Server bazat pe tehnologia Windows Socket"
AppId=0;
break;
.....

where Descrierea is a <TD> declared like this in the body:

<TABLE ROWSPAN=2>
<TR><TD width = 170>&nbsp</TD>
<FONT face=cursive color=#ffdead>
<TD name=&quot;Descrierea&quot; id=&quot;Descrierea&quot;>{Selecteaza o aplicatie pentru a vedea descrierea ei}</TD>
</FONT>
</TR>

The bolded line, where I have the problem works just fine in IE5, but in nn4.6 it tells me either that &quot;Descrierea is not defined&quot; or that &quot;Descrierea has no properties&quot; in javascript error console.

I know that NN does not have a document.all so how can I solve the problem and change the innnerText of my <TD> from inside the function.

Thanks in advance, s-)

Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...
 
Netscape 4.x does not give you access to the innerText or InnerHTML properties of an HTML element. In fact, Netscape 4.x doesn't really allow for a true &quot;object oriented&quot; way of working with HTML, so it will not offer many of the same things that you can do on IE 4+, or Netscape 6, or mozilla, etc... All of these browsers conform at least partially to the Document Object Model specifications of the World Wide Web Consortium (
So Netscape 4.x is not capable of giving you complete programming control over the HTML that is rendered to the browser. There are workarounds to get 90% of that functionality, but they can be a pain to figure out. There is a good attempt to do this with the &quot;Cross-Browser Dynamic API&quot;, at
I recommend you check out the link above, and see how to use it's methods to get similar functionality in Netscape 4.x.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top