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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing paragraph text without reload

Status
Not open for further replies.

walbr02

Technical User
May 15, 2002
14
US
Hello,
I'm not sure if this is possible or not. . .

I am calling text in a <p> tag dynamically from a database, and I want to use a js function to change the text based on a flash navigation bar. The problem that I am running into is that I do not want to reload the page, just to change the text. I have independently called all of the dynamic options, so I do not need to reset the server side variables, I just need to know how to write the function to change the text.

Any help would be greatly appreciated!!!
Brian
 
Brian,

in IE, you can assign the <p> an id, and use id.innerText, like:

<p id=&quot;par1&quot;></p>

par1.innerText = &quot;some new text&quot;;

=========================================================
if (!succeed) try();
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top