Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] innerHTML
- From: javascript@xxxxxxxxxx (Lau)
- Subject: [Javascript] innerHTML
- Date: Thu, 23 Aug 2001 15:42:31 +1000
This is a multi-part message in MIME format. ------=_NextPart_000_0015_01C12BEA.385F5D00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable innerHTMLIts DHTML http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/inne= rHTML.asp?frame=3Dtrue it allows you to change your html code after it has been loaded using = javascript. e.g. you can change the text displayed on your page when the = user onmouseovers a link.... very cool. If you want to get really fancy you can write very complicated = functionality using innerHTML.... I've just written something that = behaves just like Windows Explorer with expanding folders etc. have fun with it Lau ----- Original Message -----=20 From: hormuz maloo=20 To: 'javascript@xxxxxxxxxx'=20 Sent: Thursday, August 23, 2001 2:41 PM Subject: [Javascript] innerHTML Can somebody please elaborate a little on "innerHTML". I have heard it = mentioned at various places. What does it do exactly? Is it part of = JavaScript, CSS, or what? Will appreciate a short summary or some good = links on the topic. Thanks in advance,=20 Hormuz=20 Date: Mon, 20 Aug 2001 08:44:36 -0700=20 Subject: Re: [Javascript] getting text from another page=20 From: Ben Curtis <Quixote@xxxxxxxxxxxx>=20 To: <javascript@xxxxxxxxxx>=20 Reply-To: javascript@xxxxxxxxxx=20 > I need to grab some text from one HTML page and put it on another.=20 >=20 > The text conveniently sits inbetween some tags called <!--=20 > lymmtemp --> <!-- lymmtempend -->=20 >=20 > How do I go about getting this text on another html page?=20 >I would suggest going server-side with this; PHP, Perl, ASP, or = ColdFusion=20 >would do nicely. If, for some reason, you *need* to do this = clientside, then=20 >you will need to make sure the two pages are in the same domain. With = IE or=20 >N6 you can then get the innerHTML of the page, and use a regular = expression=20 >to find the relevant string. Could be a lot of work or piece of cake. = Good=20 >luck.=20 >--=20 >+Ben Curtis=20 >"One of the symptoms of an approaching nervous breakdown=20 >is the belief that one's work is terribly important."=20 >- Bertrand Russell (1872-1970)=20 ------=_NextPart_000_0015_01C12BEA.385F5D00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>innerHTML</TITLE> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Its DHTML</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2><A=20 href=3D"http://msdn.microsoft.com/workshop/author/dhtml/reference/propert= ies/innerHTML.asp?frame=3Dtrue">http://msdn.microsoft.com/workshop/author= /dhtml/reference/properties/innerHTML.asp?frame=3Dtrue</A></FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>it allows you to change your html code = after it has=20 been loaded using javascript. e.g. you can change the text displayed on = your=20 page when the user onmouseovers a link.... very cool.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>If you want to get really fancy you can = write very=20 complicated functionality using innerHTML.... I've just written = something that=20 behaves just like Windows Explorer with expanding folders = etc.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>have fun with it</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Lau</FONT></DIV> <BLOCKQUOTE=20 style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: = 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> <DIV=20 style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = black"><B>From:</B>=20 <A href=3D"mailto:hormuz.maloo@xxxxxxxxx" = title=3Dhormuz.maloo@xxxxxxxxx>hormuz=20 maloo</A> </DIV> <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20 href=3D"mailto:'javascript@xxxxxxxxxx'"=20 title=3Djavascript@xxxxxxxxxx>'javascript@xxxxxxxxxx'</A> </DIV> <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, August 23, 2001 = 2:41=20 PM</DIV> <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Javascript] = innerHTML</DIV> <DIV><BR></DIV><BR> <P><FONT size=3D2>Can somebody please elaborate a little on = "innerHTML". I have=20 heard it mentioned at various places. What does it do exactly? Is it = part of=20 JavaScript, CSS, or what? Will appreciate a short summary or some good = links=20 on the topic.</FONT></P> <P><FONT size=3D2>Thanks in advance,</FONT> <BR><FONT = size=3D2>Hormuz</FONT> </P> <P><FONT size=3D2>Date: Mon, 20 Aug 2001 08:44:36 -0700</FONT> = <BR><FONT=20 size=3D2>Subject: Re: [Javascript] getting text from another = page</FONT>=20 <BR><FONT size=3D2>From: Ben Curtis = <Quixote@xxxxxxxxxxxx></FONT>=20 <BR><FONT size=3D2>To: <javascript@xxxxxxxxxx></FONT> <BR><FONT=20 size=3D2>Reply-To: javascript@xxxxxxxxxx</FONT> </P><BR> <P><FONT size=3D2>> I need to grab some text from one HTML page and = put it on=20 another.</FONT> <BR><FONT size=3D2>> </FONT><BR><FONT size=3D2>> = The text=20 conveniently sits inbetween some tags called <!--</FONT> <BR><FONT=20 size=3D2>> lymmtemp --> <!-- lymmtempend --></FONT> = <BR><FONT=20 size=3D2>> </FONT><BR><FONT size=3D2>> How do I go about getting = this text=20 on another html page?</FONT> </P><BR> <P><FONT size=3D2>>I would suggest going server-side with this; = PHP, Perl,=20 ASP, or ColdFusion</FONT> <BR><FONT size=3D2>>would do nicely. If, = for some=20 reason, you *need* to do this clientside, then</FONT> <BR><FONT = size=3D2>>you=20 will need to make sure the two pages are in the same domain. With IE = or</FONT>=20 <BR><FONT size=3D2>>N6 you can then get the innerHTML of the page, = and use a=20 regular expression</FONT> <BR><FONT size=3D2>>to find the relevant = string.=20 Could be a lot of work or piece of cake. Good</FONT> <BR><FONT=20 size=3D2>>luck.</FONT> </P> <P><FONT size=3D2>>--</FONT> <BR><FONT size=3D2>>+Ben = Curtis</FONT> </P> <P><FONT size=3D2>>"One of the symptoms of an approaching nervous=20 breakdown</FONT> <BR><FONT size=3D2>>is the belief that one's work = is=20 terribly important."</FONT> <BR><FONT size=3D2>>- Bertrand Russell=20 (1872-1970)</FONT> </P></BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_0015_01C12BEA.385F5D00--
- Follow-Ups:
- References:
- [Javascript] innerHTML
- From: hormuz maloo
- [Javascript] innerHTML
- Prev by Date: [Javascript] innerHTML
- Next by Date: [Javascript] dynamically creating variables using eval()
- Previous by thread: [Javascript] innerHTML
- Next by thread: [Javascript] dynamically creating variables using eval()
- Index(es):