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

DOM

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
When using frames, how would I acces an input item?<br><br>document.form_name.input_name?<br><br>or<br><br>parent.frame_name.form_name.input_name?<br><br>or is there another way? Thanks in advance.<br>
 
<FONT FACE=monospace><br>document.DrvFrm.Path.value = thePath;<br>document.DrvFrm.submit();<br></font><br>short example<br><br>document.FormName.OneOfInputName.value<br>that so far works in both ie and netscape.<br><FONT FACE=monospace><br><b> Form that it calls, using a 'name' for it will work in both IE and NN </b><br>&lt;Form name=&quot;DrvFrm&quot; action=&quot;DriveNav.asp&quot; method=&quot;post&quot; target=&quot;_display&quot;&gt;<br> &lt;input type=&quot;hidden&quot; name=&quot;Path&quot;&gt;<br>&lt;/Form&gt;<br></font><br><br>frames are a little different I think I'll get back with you on that. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
this is a section from out of the javascript forum<br><br><FONT FACE=monospace><br>n = (document.layers) ? 1:0<br>ie = (document.all) ? 1:0<br>function show() {<br>&nbsp;&nbsp;&nbsp;&nbsp;if (n) document.layer1.visibility = &quot;show&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;if (ie) layer1.style.visibility = &quot;visible&quot;<br>}<br>function hide() {<br>&nbsp;&nbsp;&nbsp;&nbsp;if (n) document.layer1.visibility = &quot;hide&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;if (ie) layer1.style.visibility = &quot;hidden&quot;<br>}<br></font><br><br>it was posted asking to comment it, basically in IE you dont need to use the document heading, but has some extra properties, I dont know at the moment what NN and IE difference in calling frames are, perhaps someone here will reply within the next few momments. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
That still doesn't tell me how to acess it. Here, maybe this will help explain it a little more<br><br>To disable the NEW_LOC text item in the SCHEDULE_FORM form, which is in the BODY_FRAME frame on the main page:<br><br>parent.body_frame.schedule_form.new_loc.disabled<br><br>Also, would I just say ~.enabled? Or is there another way to enable a text item?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top