Hi,
I have another jsp and frame question. This is my frame structrue:
<html>
<head>
</head>
<!-- frames -->
<frameset rows="0,*">
<frame name="hiddenform" src="hiddenform.html" marginwidth="0"
marginheight="0" scrolling="no" frameborder="0">
<frameset rows="28%,*">
<frame name="header" src="header.html" marginwidth="10" marginheight="10"
scrolling="auto" frameborder="1">
<frameset cols="25%, 15%,*">
<frame name="leftnavigation" src="left.html" marginwidth="10"
marginheight="10" scrolling="auto" frameborder="1">
<frame name="middlenavigation" src="middle.html" marginwidth="10"
marginheight="10" scrolling="auto" frameborder="0">
<frame name="rightcontent" src="right.html" marginwidth="10"
marginheight="10" scrolling="auto" frameborder="1">
</frameset>
</frameset>
</frameset>
</html>
in the frame hiddenform, I have a hidden form "hf"that retrieves session
variables from its calling page like this:
<% String test1=((String)session.getValue("test1")).toString();%>
<input type="hidden" name="text1" value="<%=test1%>">
I can use alert or right mouse clik to view source, the page is right,
In the frame header, I need to access text1 field in the header.html This is
what I have done:
// here txt1 fields value should be the value of text1 in hiddenform frame
<input type="text" name="txt1">
<script language="javascript">
document.formname.txt1.value=top.hiddenform.document.hf.text1.value
</script>
I always got javascript error: top.hiddenform.document.hf has no properties.
Can anyone help me solve this problem? Thjank you very much!
Juan
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets