tags and how to change via code
Message #1 by Martin McIntyre <MartinM@s...> on Fri, 19 Jan 2001 17:09:24 -0000
|
|
Is it possible to change the content of a <DIV> within script.
Say I have
<DIV id=MyDiv>Hello world</DIV>
Can I modify that text (Hello World) from within script without refreshing
the page ?
Thanks
Martin
Message #2 by "Owen Mortensen" <ojm@a...> on Fri, 19 Jan 2001 11:48:26 -0700
|
|
In JavaScript it would look like this:
MyDiv.innerHTML="New Text";
Owen
-----Original Message-----
From: Martin McIntyre [mailto:MartinM@s...]
Sent: Friday, January 19, 2001 10:09 AM
To: ASP Web HowTo
Subject: [asp_web_howto] <DIV> tags and how to change via code
Is it possible to change the content of a <DIV> within script.
Say I have
<DIV id=MyDiv>Hello world</DIV>
Can I modify that text (Hello World) from within script without refreshing
the page ?
Thanks
Martin
Message #3 by "Wally Burfine" <oopconsultant@h...> on Fri, 19 Jan 2001 19:47:43 -0000
|
|
frmMyForm.MyDiv.InnerHTML="GoodBye World"
>From: Martin McIntyre <MartinM@s...>
>Reply-To: "ASP Web HowTo" <asp_web_howto@p...>
>To: "ASP Web HowTo" <asp_web_howto@p...>
>Subject: [asp_web_howto] <DIV> tags and how to change via code
>Date: Fri, 19 Jan 2001 17:09:24 -0000
>
>Is it possible to change the content of a <DIV> within script.
>
>Say I have
>
><DIV id=MyDiv>Hello world</DIV>
>
>Can I modify that text (Hello World) from within script without refreshing
>the page ?
>
>Thanks
>Martin
>
>
Message #4 by "Martin McIntyre" <martin@m...> on Fri, 19 Jan 2001 22:37:46 -0000
|
|
That is what I thought but it ain't changing in IE. Is it IE ?
-----Original Message-----
From: Owen Mortensen [mailto:ojm@a...]
Sent: 19 January 2001 18:48
To: ASP Web HowTo
Subject: [asp_web_howto] RE: <DIV> tags and how to change via code
In JavaScript it would look like this:
MyDiv.innerHTML="New Text";
Owen
-----Original Message-----
From: Martin McIntyre [mailto:MartinM@s...]
Sent: Friday, January 19, 2001 10:09 AM
To: ASP Web HowTo
Subject: [asp_web_howto] <DIV> tags and how to change via code
Is it possible to change the content of a <DIV> within script.
Say I have
<DIV id=MyDiv>Hello world</DIV>
Can I modify that text (Hello World) from within script without refreshing
the page ?
Thanks
Martin
Message #5 by Martin McIntyre <MartinM@s...> on Mon, 22 Jan 2001 13:58:14 -0000
|
|
Got it now, thanks
Damn Javascript, had InnerHTML all in lowercase.
-----Original Message-----
From: Wally Burfine [mailto:oopconsultant@h...]
Sent: 19 January 2001 19:48
To: ASP Web HowTo
Subject: [asp_web_howto] Re: <DIV> tags and how to change via code
frmMyForm.MyDiv.InnerHTML="GoodBye World"
>From: Martin McIntyre <MartinM@s...>
>Reply-To: "ASP Web HowTo" <asp_web_howto@p...>
>To: "ASP Web HowTo" <asp_web_howto@p...>
>Subject: [asp_web_howto] <DIV> tags and how to change via code
>Date: Fri, 19 Jan 2001 17:09:24 -0000
>
>Is it possible to change the content of a <DIV> within script.
>
>Say I have
>
><DIV id=MyDiv>Hello world</DIV>
>
>Can I modify that text (Hello World) from within script without refreshing
>the page ?
>
>Thanks
>Martin
>
>