jay-young New member

Joined: 17 Jul 2005 Posts: 1
|
Posted: Sun Jul 17, 2005 8:37 pm Post subject: Passing data between frames on embedded webserver |
|
|
I have a question regarding how to pass data between frames when using an embedded webserver.
In the following example, I have a page (index.htm) which has two frames ("Right" and "Left"). The "Left" frame calls up an html page ("Tester.htm") containing an ActiveX strip charting control (control is called "Strip1")
| Code: |
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<FRAMESET rows="80%,20%" border=0>
<FRAME name="Left" src="Tester.htm" marginheight=2 marginwidth=2>
<FRAME name="Right" src="STRIP.cgi" marginheight=2 marginwidth=2>
</FRAMESET>
</HTML>
|
The "Right" frame points to a "Strip.cgi" file that adds additonal data points to the ActiveX control residing in the "Right" frame. I gain access to "Left" control using "Parent.Left.Strip1.AddXY". My CGI code follows:
| Code: |
<html>
<META name=VI60_defaultClientScript content=VBScript>
<META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes"/>
<meta http-equiv="refresh"></meta>
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
Sub window_onload
parent.Left.Strip1.AddXY 1,22,100.99
parent.Left.Strip1.AddXY 1,23,99.99
parent.Left.Strip1.AddXY 1,24,101.99
parent.Left.Strip1.AddXY 1,25,99
End Sub
-->
</SCRIPT>
|
When I execute the code locally, everything works as expected and the CGI script adds the additonal data points to the strip chart. However when I move the files to the embedded webserver, I get a script message from my browser stating "Object does not support this property or method: "parent.Left.Strip1"
Can anyone help me understand why this does not work when I execute it remotely??
Thanks in advance! |
|