html_code_clinic thread: AW: RE: DOM counterpart to MS's "innerText" pr- operty
As far as I am aware and looking at various postings form alt.html etc,
there is no way of doing this in a non-MS browser. sorry about that.
> -----Original Message-----
> From: Dirk.Neethling2@h... [mailto:Dirk.Neethling2@h...]
> Sent: 21 February 2001 16:59
> To: html=5Fcode=5Fclinic@p...
> Subject: [html=5Fcode=5Fclinic] AW: RE: DOM counterpart to MS's
> "innerText"
> pr operty
>
>
> Hello Gregory,
> Thanks for the answer! So how does one change the "inner
> Text" of a <span>
> controla using the DOM=3F What about:
> var oTextNode =3D document.createTextNode("New Text");
> var oReplaceNode =3D document.getElementsByName("userid").childNodes(0
);
> oReplaceNode.replaceNode(oTextNode);=09
> Thanks,
> Dirk
>
> > -----Urspr=FCngliche Nachricht-----
> > Von: Gregory=5FGriffiths@c...
> [SMTP:Gregory=5FGriffiths@c...]
> > Gesendet am: Mittwoch, 21. Februar 2001 17:42
> > An: HTML Code Clinic
> > Betreff: [html=5Fcode=5Fclinic] RE: DOM counterpart to MS's
> "innerText"
> > property
> >
> > There isn't one, sorry ;-)
> >
> > > -----Original Message-----
> > > From: Dirk.Neethling2@h...
> [mailto:Dirk.Neethling2@h...]
> > > Sent: 21 February 2001 15:04
> > > To: html=5Fcode=5Fclinic@p...
> > > Subject: [html=5Fcode=5Fclinic] DOM counterpart to MS's
> > > "innerText" property
> > >
> > >
> > > Hello,
> > > Anybody know the equivalent DOM counterpart to MS's
> > > "innerText" property=3F
> > > Like:
> > > document.all["userid"].innerText=3D"userid:"=09
> > > in DOM fashion so Netscape can read it.
> > > Thanks, Dirk
> > >
> > > > -----Urspr=FCngliche Nachricht-----
> > > > Von: andy@a...
[SMTP:andy@a...]
> > > > Gesendet am: Montag, 19. Februar 2001 22:02
> > > > An: HTML Code Clinic
> > > > Betreff: [html=5Fcode=5Fclinic] Displaying formatted text
> > > >
> > > > Hi
> > > >
> > > > I have a form with a text area into which text is typed.
> > > The text may be
> > > > formatted with tabs & carrage returns. This is being
> > > written back to an
> > > > access database memo field. When I look at the database the
> > > text is as it
> > > > was entered (formatted). My question is how do I get the
> > > text to display
> > > > on a page when I pull memo field from the database
> including the
> > > > formatting. At the moment it displays but all the
> > > formatting is missing.
> > > >
> > > > Regards
> > > >
> > > > Andy Green
> > >
> > >
> > >
>
> gregory=5Fgriffiths@c...
> leave-html=5Fcode=5Fclinic-34086S@p...
>
>