Book Section
-----
TY JavaScript 3rd Ed.
Teach Yourself JS 1.5
Teach Yourself DHTML
Teach Yourself JS 1.3
LLWW: JavaScript

General Section
-----
Discussion Forum
Articles / Tips
JavaScript Links
About the Author
Privacy Policy
Contact Me



Other Sites
-----
Website Workshop
JavaScript Weblog

JavaScript Workshop Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Passing data between frames on embedded webserver

 
Post new topic   Reply to topic    JSWorkshop Forum Index -> Server-Side Languages
View previous topic :: View next topic  
Author Message
jay-young
New member
New member


Joined: 17 Jul 2005
Posts: 1

PostPosted: Sun Jul 17, 2005 8:37 pm    Post subject: Passing data between frames on embedded webserver Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    JSWorkshop Forum Index -> Server-Side Languages All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
(c) 1997-2002 Starling Technologies and Michael Moncur. Portions (c) Sams Publishing.