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

How to see the textbox with the show-hide function

Status
Not open for further replies.
Oct 11, 2006
300
US
Hi,

I am trying to grab the querystring of the link. In order to do that, I submit my form so that the textbox can have the value of the querystring.

But why does the textbox dissapear on submit of the form even I can see it momentarily?

My HTML code with the Javascript code is:

Code:
<HTML>
<HEAD>
<style type="text/css">
a.a_style:link {color:#0000ff; text-decoration:none;}
a.a_style:visited {color:#0000ff; text-decoration:none;}
a.a_style:hover {color:#ff0000; text-decoration:underline;}
a.a_style:hover {color:#ff0000; text-decoration:underline;}

</style>
<script type="text/javascript">
function s_Hide(el){
	objID = 'UI_'+el
	obj = document.getElementById(objID).style;
	(obj.display == 'none')? obj.display = 'block' : obj.display = 'none';

	document.form.submit();
}

</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>Organization</TITLE>
</HEAD>
<BODY>



<form name="commissionReports" method=post>


	<input type="radio" checked name="empid" id="empid" value="22979" onClick="showReports(this.value)">
	<a href="Organization_QS.asp?ID=1472" class="a_style" onclick="s_Hide('1472'); return false;">Reinhard Nagel</a><font size=1>(22979)</font><br>
	<span id="UI_1472" style="display: none">
	<input type="text" name="ID" id="ID_1472" value=1472>
	
	</span>
	

</form>


</body>
</html>

Any ideas how to submit the URL's querystring so that my textbox would grab it(which it is), but not dissapear from our view?

Thanks.
 
Ok. The issue here is I am building a org tree which is built on demand. The top person has a URl with his ID attached as a querystring. Now what I want to do is to pass the querystring to the back end VBscript which will build the 2nd level of subordinates. That part works. However, when I click on the top level manager, I would like to see the people below him and then leave it. Only when I click on the top manager again, then I would like to collapse it.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top