function changetext(changee,oldText,newText) { //changes text in source element var elementToChange = document.getElementById(changee); elementToChange.innerHTML = (elementToChange.innerHTML == oldText) ? newText : oldText; }
</script> <body>
<div id="<%=prodTree.getKey()%>"><p>I am P1! I go away!</p> Hello I am doing fine</div> <a href="javascript:toggleRows(\""+prodTree.getKey()+"\",'changer','See All Subproducts','Hide All Subproducts');" id='changer'>See All Subproducts</a>
Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extermely hard to read and many people that might be able to help you will just move along. Please read this for more information.
You can go back and change your post to add code tags by clicking the .
When I tried to click on Seeallsubproducts, it not even open the togglerows to debug.so I want to know if the declaration which I have given is correct.
with regards, Bhargavi
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
6
posted
0
View the source of the page and show us what the generated link looks like.
If you are running IE, what is the error message. CLick the error icon in the status bar to get the mesage. If you are running in Firefox, look at the JavaScript console for the error.
Without these details we can not help you out.
Eric
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.