Passing variables between IE windows 
Author Message
 Passing variables between IE windows

Passing variables between IE windowsYou can't access the DOM of anything from a different domain (in this case, anything that isn't local file system HTML or written on the fly into the document from the calling script).

--
Michael Harris
MVP Scripting

Someone please help....

I have the following:

<SCRIPT LANGUAGE="VBScript"
<!--
Sub C104()
                Dim gblCube
                gblCube= "104"
                Set IE = CreateObject("InternetExplorer.Application")
                IE.left= 100             ' window position
                IE.top = 100           ' and other properties
                IE.height = 380
                IE.width = 380
                IE.menubar = 0         ' no menu
                IE.toolbar = 0
                IE.statusbar = 0
                ' commented out, because it causes a corrupted window  
                IE.resizable = 0      ' disable resizing
                IE.navigate "http://usaamoweb/support/empdata.asp"  ' Form
                IE.visible = 1         ' keep visible

                ' Important: wait till MSIE is ready
                Do While (IE.Busy)      
                Loop

End Sub
-->
</SCRIPT>

This function is fired when i click on a link. what i want it to do is pass the gblCube variable to the window that this code opens.  that new window i want to be modal, and simply display the value of the gblCube variable on the screen.

any takers???



Mon, 16 Sep 2002 03:00:00 GMT  
 Passing variables between IE windows

Passing variables between IE windowsI take that back...  I've had limited success in accessing the document content of a site displayed via an IE app object.  If page uses a frameset you're out of luck.  You can't access elements of the frames collection, whether it's a bug or by design.  If it's a unframed page then maybe...

In any case, you need to access the IE.document object.  From there it's normal access to the DHTML DOM.  But I'm not clear on what exactly you are after with the gblCube variable.  Where on this page (or the real page since the URL you posted isn't real) do you want to display it?  In a form field?  The window opened isn't going to be modal either...

--
Michael Harris
MVP Scripting

You can't access the DOM of anything from a different domain (in this case, anything that isn't local file system HTML or written on the fly into the document from the calling script).

--
Michael Harris
MVP Scripting

Someone please help....

I have the following:

<SCRIPT LANGUAGE="VBScript"
<!--
Sub C104()
                Dim gblCube
                gblCube= "104"
                Set IE = CreateObject("InternetExplorer.Application")
                IE.left= 100             ' window position
                IE.top = 100           ' and other properties
                IE.height = 380
                IE.width = 380
                IE.menubar = 0         ' no menu
                IE.toolbar = 0
                IE.statusbar = 0
                ' commented out, because it causes a corrupted window  
                IE.resizable = 0      ' disable resizing
                IE.navigate "http://usaamoweb/support/empdata.asp"  ' Form
                IE.visible = 1         ' keep visible

                ' Important: wait till MSIE is ready
                Do While (IE.Busy)      
                Loop

End Sub
-->
</SCRIPT>

This function is fired when i click on a link. what i want it to do is pass the gblCube variable to the window that this code opens.  that new window i want to be modal, and simply display the value of the gblCube variable on the screen.

any takers???



Mon, 16 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. passing variables with window.open

2. Passing variables into another window

3. Passing of variables between windows

4. Passing Session Variable to a new windows

5. JS: Passing Variables between open windows?

6. Passing data to window.Opener variables

7. Passing Variables between Windows problem?

8. Passing variables to new window

9. Passing Session variables between open windows...

10. Firing events on a parent IE window from a child IE window

11. passing javascript variable into asp variable using vbscript

12. Pass client script variable to server script variable

 

 
Powered by phpBB® Forum Software