
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???