Hello,
I have made a hidden frame. Now I want to write to write and read data from the hidden frame. How To?
HTML code
<frame name="Main" scrolling="NO" src="login.asp?dt=<%=now%>">
<frame name="hiddenframe" frameborder="0" scrolling="No" src="hiddenframe.asp" >
End HTML code
hiddenframe.asp
<html>
<script>
<!--
var numberOfProducts=4;
alert(parent.hiddenframe.numberOfProducts);
alert(window.frames.length)
//-->
</script>
<body>
<INPUT TYPE="TEXT" NAME="myTextField" value"=5" >
</body>
</html>
And now in a different asp file I want to achieve the hiddenframe from the main frame which is filled with from a different asp file TT_Trace.asp file.
.Write "function drawCart()" & vbCrLf
.Write "{" & vbCrLf
.Write " parent.hiddenFrame.myTextField = 10;" & vbCrLf
.Write " alert(parent.hiddenFrame.myTextField);" & vbCrLf
.Write "}" & vbCrLf
Question:
- Must I first define a form on the hiddenframe?
- With the TT_Trace can I write new input text objects?
On this moment this I get the error "parent.hiddenframe is null or not a object"
Can anybody help me?
Thanks in Advance.
Nico
I have made a hidden frame. Now I want to write to write and read data from the hidden frame. How To?
HTML code
<frame name="Main" scrolling="NO" src="login.asp?dt=<%=now%>">
<frame name="hiddenframe" frameborder="0" scrolling="No" src="hiddenframe.asp" >
End HTML code
hiddenframe.asp
<html>
<script>
<!--
var numberOfProducts=4;
alert(parent.hiddenframe.numberOfProducts);
alert(window.frames.length)
//-->
</script>
<body>
<INPUT TYPE="TEXT" NAME="myTextField" value"=5" >
</body>
</html>
And now in a different asp file I want to achieve the hiddenframe from the main frame which is filled with from a different asp file TT_Trace.asp file.
.Write "function drawCart()" & vbCrLf
.Write "{" & vbCrLf
.Write " parent.hiddenFrame.myTextField = 10;" & vbCrLf
.Write " alert(parent.hiddenFrame.myTextField);" & vbCrLf
.Write "}" & vbCrLf
Question:
- Must I first define a form on the hiddenframe?
- With the TT_Trace can I write new input text objects?
On this moment this I get the error "parent.hiddenframe is null or not a object"
Can anybody help me?
Thanks in Advance.
Nico