gypsyjoe11
Registered User.
- Local time
- Today, 07:56
- Joined
- Feb 19, 2010
- Messages
- 46
Hi Everyone,
I'm trying to automate getting information from inside of IE. I'm making an IE object from an already open browser window. All of the pages on this site are setup with 2 frames on each. The first frame(0) has top navigation links that don't change. The second frame(1) is what changes.
Next I use the second frame to navigate to the appropriate page using:
Next I need to expand the Javascript tree on the left and go to the right page. After expanding the tree and hovering over the correct text it says,
in the hover text.
The results from
Are:
I can't figure out how to activate it though. I've tried all kinds of variations of
and
If anyone can help I'd greatly appreciate it. I'm stuck.
Joe
I'm trying to automate getting information from inside of IE. I'm making an IE object from an already open browser window. All of the pages on this site are setup with 2 frames on each. The first frame(0) has top navigation links that don't change. The second frame(1) is what changes.
Next I use the second frame to navigate to the appropriate page using:
Code:
Do: Loop Until Not IEwindow.Busy 'wait until IE is finished loading
SubFrame1.URL = "[URL]https://hr.xxx.us/servlets/iclientservlet/xxxx/?ICType=Nav[/URL]"
Next I need to expand the Javascript tree on the left and go to the right page. After expanding the tree and hovering over the correct text it says,
Code:
javascript:parent.treeControl.SelectNode("View Course Profile",15)
in the hover text.
The results from
Code:
Debug.Print IEwindow.document.frames(1).document.all.item(0).innerHTML
Are:
Code:
<HEAD>
<SCRIPT language=JavaScript src="/xxxx/xx/xxx/xx/PT_NAVMAIN_SCRIPT_ENG_ICNav_1.js"></SCRIPT>
<SCRIPT language=JavaScript src="/xxxx/xx/xxx/xx/PT_NAVTREE_ENG_ICNav_1.js"></SCRIPT>
<SCRIPT language=javascript src="/xxxx/xx/xxx/xx/PT_SAVEWARNINGSCRIPT_ENG_ICNav_1.js">
</SCRIPT>
<SCRIPT language=javascript src="/xxxx/xx/xxx/xx/PT_ISCROSSDOMAIN_ENG_ICNav_1.js">
</SCRIPT>
<SCRIPT language=JavaScript>
var targetURL='/xx/xxxxx/xx/';
var imageURL='';
var P=window;
var styleSheetURL='/xxxx/xx/xxx/xx/PSSTYLEDEF_ENG_1.css';
var iconBP = '/xxxx/xx/xxx/xx/PT_WF_BUSPROC_ENG_1.gif';
var iconAC = '/xxxx/xx/xxx/xx/PT_WF_ACTIVITY_ENG_1.gif';
var iconST = '/xxxx/xx/xxx/xx/PT_WF_STEP_ENG_1.gif';
var iconTNMN = '/xxxx/xx/xxx/xx/PT_TREENODE_MINUS_ENG_1.gif';
var iconTNPL = '/xxxx/xx/xxx/xx/PT_TREENODE_PLUS_ENG_1.gif';
var elmNum='0';
var selectedNodeType='B';
var selectedNodeName="xx_xxx_xxx_xxx";
P.Position("B","xx_xxx_xxx_xxx","/xx/xx/xxx/xxx/xxxx==_207.JPG","xxx Admin System - xxx Process Map");
P.Child("B","xxxx","xxx",127,267,157,297);
</SCRIPT>
<SCRIPT language=JavaScript>
LoadMain();
</SCRIPT>
</HEAD><FRAMESET rows=20,*><FRAME title="Menu Navigation" border=0 name=bread marginWidth=0 marginHeight=0 src="JavaScript:void(parent.LoadBread(parent.treeControl.GetRootNode()))" frameBorder=no scrolling=no><FRAMESET cols=210,*><FRAME title="Tree Navigation" border=0 name=leftF marginWidth=0 marginHeight=0 src="JavaScript:void(parent.LoadLeft(true))" frameBorder=no><FRAME title="Main Content" border=0 name=rightF marginWidth=0 marginHeight=0 src="JavaScript:void(parent.LoadImage())" frameBorder=no></FRAMESET></FRAMESET>
<BODY></BODY>
I can't figure out how to activate it though. I've tried all kinds of variations of
Code:
Call SubFrame1.parentWindow.execScript("parent.treeControl.SelectNode('View Course Profile',15)", "JavaScript")
and
Code:
Call SubFrame1.parentWindow.execScript("void(parent.LoadBread(parent.treeControl.GetRootNode()))", "JavaScript")
If anyone can help I'd greatly appreciate it. I'm stuck.
Joe