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

getting textbox value from FRAME+LAYER+FORM in Netscape

Status
Not open for further replies.

garrowsmith

Programmer
Jul 23, 2001
18
GB
Hi Folks,

I'm trying to get the value of a textbox that is sitting within a form within a layer within a frameset. I'm trying to use a layer to hover over an area of the form and a radial button will make the layer+textbox appear.

eg.
layerns.frm2.textbox.value

The frameset for the page is called questions.

I'm thinking it's something like
parent.questions.document.layerns.frm2.textbox.value

I can't seem to reference the value without bugging my whole script so actually debugging this is a nightmare.

eg

(o) today (o) alternative date
[ instert alternate date] <- show/hide

*** please, anyone, help!***
I've spent days trying to track down the code - a solution or NN compatable alternative would be much appreciated.
 
<!-- was that what u need ? -->

<!-- whatever.html -->
<html>
<head>
<title>The frameset</title>
</head>
<frameset cols=&quot;221,*&quot; border=&quot;0&quot; OnLoad=&quot;window.defaultStatus=' was that what u want ?';&quot;>
<frame src=&quot;a.html&quot; name=&quot;navbar&quot; scrolling=&quot;yes&quot; noresize>
<frame src=&quot;b.html&quot; name=&quot;content&quot; scrolling=&quot;yes&quot; noresize>
</frameset>
</html>

<!-- a.html -->
<htlm>
<head>
<script language=&quot;javascript&quot; type=&quot;text/javascript&quot;>
<!--
function the_tester() {
alert(parent.frames[1].formname.inputname.value)
}
//-->
</script>
</head>
<body>
<a href=&quot;javascript:the_tester()&quot;>test me</a>
</body>
</html>

<!-- b.html -->
<htlm>
<head></head>
<body>
<form name=&quot;formname&quot;>
<input type=&quot;text&quot; name=&quot;inputname&quot; value=&quot;somevalue&quot;>
</form>
</body>
</html> ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top