[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

VB to automate entry into Javascript Web Page

Asked by greep in Visual Basic Programming, Microsoft Access Database, JavaScript

Tags: Microsoft, MS Access / VB, 2006

Hi,
I am trying to automate entry into a web page from data stored in an Access 2003 database.
I've had some limited success with the following Code
=============================================
   Set ie = New InternetExplorer
    ie.Navigate "http://edauat.company.net/system/"
    Do Until ie.ReadyState = READYSTATE_COMPLETE
        DoEvents
    Loop
    ie.Visible = True
     ie.Document.ALL("USERNAME").Value = userid
     ie.Document.ALL("PASSWORD").Value = password
     ie.Navigate "javascript:submitForm();"
    Do Until ie.ReadyState = READYSTATE_COMPLETE
        DoEvents
    Loop
    ie.Document.selectRole.role.Value = 1000004
    ie.Navigate "javascript:selectRole();"
    Do Until ie.ReadyState = READYSTATE_COMPLETE
        DoEvents
    Loop
    ie.Document.ALL("quickJump").Value = "GLTR"
    ie.Navigate "javascript:SubmitQuickJump();"
=============================================
using .Vlaue to populate the screen objects(text boxes / combo-boxes) works fine
as does .Navigate to 'click' the buttons that trigger the Javascript functions.

My problem is the final javascript function SubmitQuickJump()  populates a fame with new input fields which vary depending on the earlier inputs. I think this is a Child Form (my knowledge of Javascript is very limited)
The Source code for the page does not change  (it's in the Code Snippet below)

How can I interact with these new fields and buttons?  
I need to populate a text box, click a button and retreive the text from a label.

Grateful for any suggestions.
Regards
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
467:
468:
469:
470:
471:
472:
473:
474:
475:
476:
477:
478:
479:
480:
481:
482:
483:
484:
485:
486:
487:
488:
489:
490:
491:
492:
493:
494:
495:
496:
497:
498:
499:
500:
501:
502:
503:
504:
505:
506:
507:
508:
509:
510:
511:
512:
513:
514:
515:
516:
517:
518:
519:
520:
521:
522:
523:
524:
525:
526:
527:
528:
529:
530:
531:
532:
533:
534:
535:
536:
537:
538:
539:
540:
541:
542:
543:
544:
545:
546:
547:
548:
549:
550:
551:
552:
553:
554:
555:
556:
557:
558:
559:
560:
561:
562:
563:
564:
565:
566:
567:
568:
569:
570:
571:
572:
573:
574:
575:
576:
577:
578:
579:
580:
581:
582:
583:
584:
585:
586:
587:
588:
589:
590:
591:
592:
593:
594:
595:
596:
597:
598:
599:
600:
601:
602:
603:
604:
605:
606:
607:
608:
609:
610:
611:
612:
613:
614:
615:
616:
617:
618:
619:
620:
621:
622:
623:
624:
625:
626:
627:
628:
629:
630:
631:
632:
633:
634:
635:
636:
637:
638:
639:
640:
641:
642:
643:
644:
645:
646:
647:
648:
649:
650:
651:
652:
653:
654:
655:
656:
657:
658:
659:
660:
661:
662:
663:
664:
665:
666:
667:
668:
669:
670:
671:
672:
673:
674:
675:
676:
677:
678:
679:
680:
681:
682:
683:
684:
685:
686:
687:
688:
689:
690:
691:
692:
693:
694:
695:
696:
697:
698:
699:
700:
701:
702:
703:
704:
705:
706:
707:
708:
709:
710:
711:
712:
713:
714:
715:
716:
717:
718:
719:
720:
721:
722:
723:
724:
725:
726:
727:
728:
729:
730:
731:
732:
733:
734:
735:
736:
737:
738:
739:
740:
741:
742:
743:
744:
745:
746:
747:
748:
749:
750:
751:
752:
753:
754:
755:
756:
757:
758:
759:
760:
761:
762:
763:
764:
765:
766:
767:
768:
769:
770:
771:
772:
773:
774:
775:
776:
777:
778:
779:
780:
781:
782:
783:
784:
785:
786:
787:
788:
789:
790:
791:
792:
793:
794:
795:
796:
797:
798:
799:
800:
801:
802:
803:
804:
805:
806:
807:
808:
809:
810:
811:
812:
813:
814:
815:
816:
817:
818:
819:
820:
821:
822:
823:
824:
825:
826:
827:
828:
829:
830:
831:
832:
833:
834:
835:
836:
837:
838:
839:
840:
841:
842:
843:
844:
845:
846:
847:
848:
849:
850:
851:
<?xml version="1.0" encoding="utf-8"?>
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<HEAD>
<title>Enterprise</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<link href="/Apollo/Mercury.css" rel="stylesheet" type="text/css">
 
  <style>
    .header-div {
      top:0px;
      left:0px;
      height:93px;
      width:1020px;
    }
 
    .content-div {
      position:absolute;
      top:94px;
      bottom:0px;
      overflow:hidden;
      left:0px;
      width:100%;
      z-index:-1;
    }
  
  * html .content-div {
      top:0px;
      height:100%;
      border-top:94px solid #ecf4ff;
  }  
    
  </style>
  
<SCRIPT src="mercuryui.js" type=text/javascript></SCRIPT>
<script src='Includes/dojo.js' type='text/javascript'></script>
 
 
 
<script>
    function showAsyncEngineAuthenticationResponse(result) {
      if ( ! result.match(/success\s*/)) {
        if (result.match(/\/.*/)) {
          location.href = result.substring(1);
        } else {
          alert(result);
        }
      }
    }
    
    function showAsyncEngineAuthenticationnError() {
      alert('Error occurred while testing for Engine connectivity.');
    }
   
    function runAsyncEngineAuthentication() {
      if ('true' == 'true') { 
        dojo.io.bind({
          url: 'asyncEngineAuthentication.do',
          load: function(type, data, evt) { showAsyncEngineAuthenticationResponse(data); },
          error: function(type, data, evt) { showAsyncEngineAuthenticationnError(); },
          mimetype: 'text/plain'
        });
      }
    }
</script>
 
<script language="javascript">
 
	function changeContentSrc(url) {
	var loadNextUrl = true;
		// Content jsp of Iframe contains callback method
		if(window.frames.length > 0 && window.frames.ContentIframe && window.frames.ContentIframe.callback){
			//Callback Found 
			loadNextUrl = window.frames.ContentIframe.callback(url);
		}
		//alert("loadNextUrl::" + loadNextUrl);	
		if(loadNextUrl){
			document.getElementById("ContentIframe").src=url;
			closeAllMenus();
		
		}
	}
</script>
</HEAD>
 
<body link="#000099" leftmargin="0" topmargin="0" onkeydown="checkEnter(event);" scroll="no" onLoad="runAsyncEngineAuthentication()">
<script>
document.body.style.cursor="wait";
</script>
 
<div id=divLayout width="1020px" height="632px">
<div class="header-div">
<table width="1020px" height="100%" border="0" cellpadding="0" cellspacing="0" id=tblLayout>
 
	<tr>
		<td>
	
 
 
 
 
 
<title>Enterprise</title>
 
 
 
 
<script language=JavaScript src="/Apollo/messages_1_1.js" type=text/javascript></script>
<script language=JavaScript src="/Apollo/messagemanager.jsp" type=text/javascript></script>
 
<script>
var activeWindowCount = 0;
var openWins = new Array();
var logOutFlag = false;
var changeDesktopFlag = false;
 
var forwardedloc = window.location.href;
var forwardActionStr = forwardedloc.substr(forwardedloc.lastIndexOf("/")+1);
var rolePresent = 'true';
 
 
function changeDesktopAlert()
{
	navigateTo("retrieveTeam.do");
}
 
function doLogOut()
{
	navigateTo("logoff.do");
}
 
//Common function
function navigateTo(action)
{
	var confirmFlag = true;
	if (activeWindowCount > 0 && areChildWinsOpen())
	{
		confirmFlag = confirm("Please note this will close all child windows. Do you wish to continue?");
	}
	var actionFlag = true;
	// This is to handle confirmation dialogue
	// Content jsp of Iframe contains callback method
	if(window.frames.length > 0 && window.frames.ContentIframe && window.frames.ContentIframe.callback){
		//Callback Found 
		actionFlag = window.frames.ContentIframe.callback(action);
	}
	if(confirmFlag && actionFlag){
		for(i=0; i<openWins.length; i++){
			if (openWins[i] && !openWins[i].closed){
				openWins[i].close();
			}
		}
		document.location = action;
	}
}
 
function areChildWinsOpen(){
		for(i=0; i<openWins.length; i++){
			if (openWins[i] && !openWins[i].closed){
				return true;
			}
		}
		return false;
}
 
function changeOperText(changeOper){
var opr = "";
			var index1 = changeOper.indexOf("/");
			var index2 =changeOper.indexOf("#");
			if(index1 != -1 ){
 
			 opr = changeOper.substring(index1+1,index2);
 
			}
 
   var el = document.getElementById("operId");
	 el.innerText = opr;
 
}
function refreshOperationalSession(){
	
	//top.sessionKeepAliveFrame.location="http://edauat.jpmchase.net:80/Apollo/keepAlive.jsp";
}
</script>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td><iframe id="sessionKeepAliveFrame"
  			name="sessionKeepAliveFrame"
			style="width:0px; height:0px; border: 0px"
			src="keepAlive.jsp"></iframe>
    </td>
  </tr>
  <tr>
    <td valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="headerbackground">
<tr>
	<td valign="top"><img src="customerLogo.do" height="31"><img
		src="images/logo_end.gif" width="110" height="31"></td>
	<td align="right" valign="middle">
 
<!-- BEGIN Main header table -->
	<table border="0" cellpadding="0" cellspacing="1" class="headerbackground">
	<tr>
	<td valign="middle">
	<!--*** Role display BEGIN *** -->
		<table width="100%" height="22" border="0" cellpadding="0" cellspacing="0">
		<tr>
		
		<td width="100%" align="center" class="infobackground">
		
		<span class="headertext">&nbsp;Role: <strong>HELPDESK</strong>
		</span>
		
		<span class="headertext">&nbsp;Opr: <strong id="operId" >C1000001</strong>
		</span>
		
		</td>
		
		</tr>
		</table>
	<!--*** Role Display END *** -->
 
		<!--*** PERSISTENT INFORMATION END *** --></td>
		<!-- Change Desktop -->
		<td valign="middle">
		<script>
			var hasOnlyOneRole = false;
 
		
 
 
				if (window.name.indexOf("child") > -1 || hasOnlyOneRole)
				{
 
					document.write("<table height=\"22\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"infobackgrounddisabled\">");
				}
				else
				{
					document.write("<table height=\"22\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"infobackground\">");
				}
		</script>
 
			<tr>
             <script>
 
			  if (!(rolePresent.indexOf("true")|| forwardActionStr.indexOf("retrieveTeam.do") > -1 ||forwardActionStr.indexOf("retrieveUserRoles.do") > -1))
			  {
				if (window.name.indexOf("child") > -1 || hasOnlyOneRole)
				{
					document.write("<td align=\"center\" class=\"changedesktoplinkdisabled\">");
			 		document.write("Change Desktop");
				}
				else
				{
					document.write("<td  align=\"center\" class=\"changedesktoplink\">");
					document.write("<a	tabindex=1 href=\"javascript:changeDesktopAlert()\">Change Desktop</a>");
			 	}
		 	  }
 
			 </script>
				</td>
			</tr>
		</table>
		  <!--*** END change desktop  button *** -->
		</td>
 
 
 
		<!-- Logout -->
		<td class="headertext">
 
            <!--*** BEGIN logout link button *** -->
            <script>
				if (window.name.indexOf("child") > -1)
				{
 
					document.write("<table width=\"58\" height=\"22\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"infobackgrounddisabled\">");
				}
				else
				{
					document.write("<table width=\"58\" height=\"22\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"infobackground\">");
				}
			</script>
			<tr>
 
            <script>
				if (window.name.indexOf("child") > -1)
				{
					document.write("<td class=\"logouttextdisabled\">");
					document.write("Logout");
 
				}
				else
				{
					document.write("<td class=\"logouttext\">");
					document.write("<a tabindex=2 href=\"javascript:doLogOut()\" class=\"logouttext\">Logout</a>");
			  	}
			</script>
 
				</td>
			</tr>
		</table>
		  <!--*** END logout link button *** -->
 
		</td><td>&nbsp;</td>
	</tr>
</table>
	</td>
</tr>
</table>
 
	  </table> <!-- Needed because of unclosed table in Header.jsp -->	
	<tr>
 <td>
 
 
 
 
 
 
 		<script language=JavaScript src="milonic_src.js" type=text/javascript></script>
		<script	language=JavaScript src="mmenudom.js" type=text/javascript></script>
		<script language=JavaScript type=text/javascript>
			_menuCloseDelay=100           // The time delay for menus to remain visible on mouse out
			_menuOpenDelay=10            // The time delay before menus open on mouse over
			_subOffsetTop=0              // Sub menu top offset
			_subOffsetLeft=0            // Sub menu left offset
 
			with(mainMenuStyle=new mm_style()){
			align="center";
			onbgcolor="#ffffff";
			oncolor="#003366";
			offbgcolor="#6079B2";
			offcolor="#ffffff";
			bordercolor="#000033";
			borderstyle="solid";
			borderwidth=1;
			separatorcolor="#000000";
			separatorsize="1";
			itemheight="19px";
			//padding=2;
			fontsize="11px";
			fontstyle="normal";
			fontweight="bold";
			fontfamily="sans-serif";
			//pagecolor="black";
			//pagebgcolor="#6079B2";
			headercolor="#000000";
			headerbgcolor="#ffffff";
			//subimage="arrow.gif";
			subimagepadding="1";
			position="relative";
			//overfilter="Fade(duration=0.2);Alpha(opacity=90);";
			overfilter="Fade(duration=0.2);";
			//outfilter="randomdissolve(duration=0.150)";
			openonclick=true;
			}
 
			with(menuStyle_1=new mm_style()){
			align="left";
			onbgcolor="#ffffff";
			oncolor="#003366";
			offbgcolor="#6686D0";
			offcolor="#ffffff";
			bordercolor="#000033";
			borderstyle="solid";
			borderwidth=1;
			separatorcolor="#000000";
			separatorsize="1";
			padding=3;
			fontsize="11px";
			fontstyle="normal";
			fontweight="bold";
			fontfamily="sans-serif";
			//pagecolor="black";
			//pagebgcolor="#6079B2";
			headercolor="#000000";
			headerbgcolor="#ffffff";
			subimage="right_arrow_white.gif";
			subimagepadding="1";
			position="relative";
			//overfilter="Fade(duration=0.2);Alpha(opacity=90);";
			overfilter="Fade(duration=0.2);";
			//outfilter="randomdissolve(duration=0.150)";
			//openonclick=true;
			}
 
			with(menuStyle_2=new mm_style()){
			align="left";
			onbgcolor="#ffffff";
			oncolor="#003366";
			offbgcolor="#D9DFED";
			offcolor="#000033";
			bordercolor="#000033";
			borderstyle="solid";
			borderwidth=1;
			separatorcolor="#000000";
			separatorsize="1";
			padding=3;
			fontsize="11px";
			fontstyle="normal";
			fontweight="bold";
			fontfamily="sans-serif";
			//pagecolor="black";
			//pagebgcolor="#6079B2";
			headercolor="#000000";
			headerbgcolor="#ffffff";
			subimage="right_arrow_blu.gif";
			subimagepadding="1";
			position="relative";
			//overfilter="Fade(duration=0.2);Alpha(opacity=90);";
			overfilter="Fade(duration=0.2);";
			//outfilter="randomdissolve(duration=0.150)";
			//openonclick=true;
			}
 
			with(menuStyle_3=new mm_style()){
			align="left";
			onbgcolor="#001379";
			oncolor="#ffffff";
			offbgcolor="#F2F8FF";
			offcolor="#001379";
			bordercolor="#000033";
			borderstyle="solid";
			borderwidth=1;
			separatorcolor="#000000";
			separatorsize="1";
			padding=3;
			fontsize="11px";
			fontstyle="normal";
			fontweight="bold";
			fontfamily="sans-serif";
			//pagecolor="black";
			//pagebgcolor="#6079B2";
			headercolor="#000000";
			headerbgcolor="#ffffff";
			subimage="right_arrow_blu.gif";
			subimagepadding="1";
			position="relative";
			//overfilter="Fade(duration=0.2);Alpha(opacity=90);";
			overfilter="Fade(duration=0.2);";
			//outfilter="randomdissolve(duration=0.150)";
			//openonclick=true;
			}
 
			with(menuStyle_4=new mm_style()){
			align="left";
			onbgcolor="#001379";
			oncolor="#ffffff";
			offbgcolor="#F2F8FF";
			offcolor="#001379";
			bordercolor="#000033";
			borderstyle="solid";
			borderwidth=1;
			separatorcolor="#000000";
			separatorsize="1";
			padding=3;
			fontsize="11px";
			fontstyle="normal";
			fontweight="bold";
			fontfamily="sans-serif";
			//pagecolor="black";
			//pagebgcolor="#6079B2";
			headercolor="#000000";
			headerbgcolor="#ffffff";
			subimage="right_arrow_blu.gif";
			subimagepadding="1";
			position="relative";
			//overfilter="Fade(duration=0.2);Alpha(opacity=90);";
			overfilter="Fade(duration=0.2);";
			//outfilter="randomdissolve(duration=0.150)";
			//openonclick=true;
			}
		</script>
 
		<script language=JavaScript src="DynamicDesktop/menuscripts/menu_1_1000004.js" type=text/javascript></script>
		<script language=JavaScript type=text/javascript> drawMenus(); </script>
	  <table width="100%" border="2" cellpadding="0" cellspacing="0">
        <tr align="center">
          <TD class=menuplaceholder><img src="trans.gif" width="1" height="14"></TD>
        </tr>
		    </table>
	</td>
</tr>
 
	
 
 
 
 
 
 
<SCRIPT src="mercuryui.js" type=text/javascript></SCRIPT>
<SCRIPT language="javascript" src="/Apollo/Includes/incIEObject.js"></script>
<div id="ACADJTRDrpDwnS2" style="LEFT: 0px; VISIBILITY: hidden; POSITION: absolute; TOP: 0px;">
<SCRIPT LANGUAGE="javascript">CreateControl('\
<applet NAME="QuickJumpApplet" ARCHIVE="quickjump.jar" CODEBASE="/Apollo/cabs/" \
		CODE="com.sungard.sims.mercury.delivery.presentation.QuickJumpApplet.class" \
		WIDTH=0 HEIGHT=0 VSPACE=0 HSPACE=0 HIDDEN="TRUE"></applet>\
')
</SCRIPT>
</div>
<tr> 
    <td valign="top"><table width="100%" border="1" cellpadding="0" cellspacing="0" class="indicatortableborder">
      <tr>
 
   <SCRIPT language=JavaScript type=text/javascript>
	var quickJumpDisplay = '';
    var curWinName ='child' + "0";
    var maxChildWindows = 3;
    var activeWindowCount=null;
    var validSearchTextString="[^a-zA-Z_0-9* ]";
	
	var lasttab;
	
    function openChildWindow(curWin,j){
    	var fullURL = location.href;
    	var appContext = "Apollo";
    	var pos = fullURL.indexOf(appContext);
		var requestURL = fullURL.substring(0, pos);
 
		var curWindowCount =0,windowCountInApp =0;
		var newWindowName=null;
 
		if (curWin != 'null' && curWinName=='child0'){
			curWindowCount = parseInt(curWin.substring(5));
		}else			
			if (activeWindowCount > 0){
				curWindowCount = parseInt(curWinName.substring(5));
			}	
 
		activeWindowCount = activeWindowCount + 1;
		curWindowCount = curWindowCount + 1;
		curWinName = "child" + curWindowCount;
		var winCnt = openWins.length;
		openWins[winCnt] = window.open(requestURL + appContext + "/functionChildWindow.do?M=I&P="+j+"&WN="+curWinName,curWinName);
 
	}
 
	function decreaseOpenWindowCount(){
		if (activeWindowCount > 0)
			activeWindowCount = activeWindowCount - 1;
	}
	
	
	function closeCurrentWindow(){
		var token='2015631ea9517450016e6f5e639e53bd';
		opener.decreaseOpenWindowCount();
		document.quickJumpForm.action="functionChildWindow.do?M=OC&P="+token+"&WN="+window.name;
		document.quickJumpForm.submit();
		self.close();
	}
	
	function SubmitQuickJump(){
 
		with (document.quickJumpForm) {
	    if ( quickJump.value== "" ) {
	    	quickJump.focus();
	    } else {
	    	var processQuickJumpFlag = true;
			
			if(window.frames.ContentIframe.callback){
				
				processQuickJumpFlag = window.frames.ContentIframe.callback("quickjump.do");
			}
			
			if(processQuickJumpFlag){
		    	quickJump.value = quickJump.value.toUpperCase();
 
		    	
		    	var result = document.QuickJumpApplet.processQuickJumpFor(quickJump.value, "null");
 
				if ( result == false ){
					var timedOut =  document.QuickJumpApplet.isTimedOut();
					if ( timedOut == true ){
						document.quickJumpForm.action="/Apollo/logon.jsp";
						document.quickJumpForm.method="post";
						document.quickJumpForm.submit();
					}else{
						alert('Invalid Jump To');
					}
				}
				
				if ( result == true ) {
		    		
		    		var pUrl = document.QuickJumpApplet.getResultUrl();
		    		if (pUrl != null) {
			    		
			    		if(pUrl.indexOf("javascript:")!= -1){
			    			
			    			var jsMethodName = pUrl.substring(pUrl.indexOf(":")+1);
			    			if(jsMethodName){
				    			jsMethodName = jsMethodName.substring(0, jsMethodName.length - 3)
				    			
				    			if(isDefined(jsMethodName)){
					    			
					    			eval(jsMethodName)(); 
				    			} else{
			    				}
			    			}
			    		} else{ // else javascript function check start
					    	if( document.QuickJumpApplet.isUI(pUrl) == true) {
					    		
				    			if(document.getElementById('ContentIframe') != null ) {
				    				var contentSrc = document.getElementById('ContentIframe').src;
				    				if(contentSrc != '') {
				    					if( document.QuickJumpApplet.isUI(contentSrc) == true ) {
				    						frames['ContentIframe'].location.href = '/Apollo/'+ pUrl + '&nomenu=true';
				    					} else {
											frames['ContentIframe'].location.href = pUrl;
				    					}
				    				} else {
				    					frames['ContentIframe'].location.href = pUrl;
				    				}
				    			} else {
				    				frames['ContentIframe'].location.href = pUrl;
				    			}
				    		} else {
				    			frames['ContentIframe'].location.href = pUrl;
				    		}
					    		
				    	 }  
		    		}
	    		}	
	    	}
    	}	
  		} 
	}  	
 
   	function checkforEnterKeyEvent(field)
   	{
	    key=window.event.keyCode;
     
		if(key == 13)
		{
		if (field != "searchText") {
			SubmitQuickJump();
		} else {
			SearchSubmit();
			}
		}
 
   	}
	
	function SubmitFavorite()
	{
 
		if (document.quickJumpForm.Favorite.value!=-1) {
		    //method="post";
		    //document.quickJumpForm.action="favorite.do";
	    	//var submitFavoriteFlag = true;
			
			//if(window.frames.ContentIframe.callback){
				
			//	submitFavoriteFlag = window.frames.ContentIframe.callback("favorite.do");
			//}
			//if(submitFavoriteFlag){
		    //	document.quickJumpForm.submit();	
    		//	changeCursor();
    		//}
    		
    		// Dev Issue: 13753-LG9574-15
    		// No longer use the Form Submit as it causes some problems with external pages
    		// such as Lehman Brothers.
    		// url is now submitted like JumpTo and Menu selections
    		document.getElementById("ContentIframe").src = document.quickJumpForm.Favorite.value;
    		
    		
			document.quickJumpForm.Favorite.options[0].selected = true;
    		
	    }	
	}		
	
	function SearchSubmit()
	{
	
		 var searchText = document.quickJumpForm.searchText.value;
		 searchText = searchText.replace(/^(\s+)?(.*\S)(\s+)?$/, '$2');
		 if (searchText.length < 1)
		 {
		 	alert("Please enter the function name or description text that you would like to search.");
		 	document.quickJumpForm.searchText.focus();
		 	return;
		 }
		 if(searchText.search(validSearchTextString)>= 0)
		 {
	 		 alert("Please note search text contains invalid character(s). Only alphanumeric characters are allowed.");
	  		 document.quickJumpForm.searchText.focus();
	  		 return;
 		 }
 
		method="post";
	    document.quickJumpForm.action="functionSearch.do";
	 	var searchSubmitFlag = true;
		
		if(window.frames.ContentIframe.callback){
			
			searchSubmitFlag = window.frames.ContentIframe.callback("functionSearch.do");
		}
		if(searchSubmitFlag){
		     document.quickJumpForm.submit();	
			 changeCursor(); 
		}
	}		
 
	function addFavoriteOption(text,value) {
		var defaultSelected = false;
		var selected = false;
		var optionName = new Option(text, value, defaultSelected, selected)
		document.quickJumpForm.Favorite.options[document.quickJumpForm.Favorite.length] = optionName;
	}
	
	function refreshFav(arrOfOptions){
		var text;
		var value;
		var defaultSelected = false;
		var selected = false;
		var favoritesLength = document.quickJumpForm.Favorite.length;
 
		
		for(var j=favoritesLength-1;j>0;j--) {
			document.quickJumpForm.Favorite.remove(j);
		}
 
		
		for(var ii=0;ii<arrOfOptions.length;ii++){
			text = arrOfOptions[ii].text;
			value = arrOfOptions[ii].value;
 
			var optionName = new Option(text, value, defaultSelected, selected)
			document.quickJumpForm.Favorite.options[ii+1] = optionName;
		}
		
	}
 
	
</SCRIPT>      
        <td class="indicatortablebackground">
        <table width="100%" border="0" cellpadding="0" cellspacing="1px" class="datatable">
        <form name="quickJumpForm" method="post" action="/Apollo/quickjump.do" target="ContentIframe">
          <tr>
            <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="84%" class="quickjumptablebg"><table border="0" cellpadding="0" cellspacing="3px" class="quickjumptablebg">
                  <tr>
                    <td align="center"><table  border="0" cellpadding="0" cellspacing="0" class="quickjumpitem">
                        <tr>
                        
                          <td align="left" valign="middle">Jump To:</td>
                          <td align="left" valign="middle">
    	                      <input type="text" tabindex=6 name="quickJump" maxlength="50" style="width:80px;" value="" 
    	                      			onfocus="select();" 
    	                      			onkeydown="javascript:checkforEnterKeyEvent('quickJump');">
    	                      <a href="javascript:SubmitQuickJump();" tabindex="7">
	                          	<img src="images/go.gif" border="0" width="23px" align="absmiddle"> 
	                          </a>
                           </td>
                        </tr>
                    </table></td>
                    <input type="hidden" name="netName" value="null">                    
                    <td align="center"><table border="0" cellpadding="0" cellspacing="0" class="quickjumpitem">
             
                        <tr>
                          <td align="right">Favorites:</td>
                          <td align="left">
                         <select id="Fav" name="Favorite" tabindex="8" style="width:250px;" onchange="javascript:SubmitFavorite();" >  
							<OPTION value="-1" selected >Select</OPTION>
							
							
							
							</select> 
					</td>
                     </tr>
                    </table></td>
                    <td align="center"><table border="0" cellpadding="0" cellspacing="0" class="quickjumpitem">
                        <tr>
                          <td align="right" valign="middle">Search:</td>
                          <td align="left" valign="middle">
                           <input type="text" name="searchText" maxlength="50" tabindex="9" value="" onkeydown="javascript:checkforEnterKeyEvent('searchText')" style="width:250px;"> 
                          <a href="javascript:SearchSubmit();" tabindex="10"> <img src="images/go.gif" border="0" width="23px" align="absmiddle">
                          </a>
                          
                          </td>
                              
                        </tr>
                    </table></td>
                  </tr>
                </table>
				</td>
                <td width="16%"  valign="middle" class="quickjumpfieldtext3">
                  <table width="100%" border="0" cellpadding="3px" cellspacing="0" class="quickjumptablebg">
                  <tr>
                    <td width="100%" align="center" valign="middle">&nbsp;
 
                    <script>
                    	var jspWinName='null';
                    	var jspTokName='2015631ea9517450016e6f5e639e53bd';
						if (window.name.indexOf("child") > -1)
						{
								
								document.write("<a href=\"javascript:closeCurrentWindow();\"  tabindex=\"11\"><img src=\"images/close_window.gif\"  border=\"0\" width=\"100\" height=\"17px\" align=\"absmiddle\"></a>");
						}
						else
						{
								document.write("<a href=\"javascript:openChildWindow(jspWinName,jspTokName);\" tabindex=\"11\"><img src=\"images/new_win_button.gif\" border=\"0\" width=\"88px\" height=\"17px\" align=\"absmiddle\"></a>");
 
						}
					</script>	
                    
                    </td>
                  </tr>
                </table></td>
              </tr>  
              
            </table></td>
          </tr>
           </form>
        </table>
        </td>
     
      </tr>
        
    </table>
    </td>
  </tr>
 
		</td>
	</tr>
 
</table>
</div>
 
<div class="content-div">
<script>
document.body.style.cursor="default";
</script>
 
  <div style="position:absolute; bottom:0; top:0; height:100%; width:100%">
		<IFRAME name="ContentIframe" id="ContentIframe" onload="setDefaultCursor()" src='fetchExternalWebAction.do?ExternalActionURL=http://cig4w145.ad.bankone.net/WSS_MS_COP/FUND_SERVICES_APOLLO/EDA/Web%20Part%20Pages/EdaLanding.aspx' width="1020px" height="100%" scrolling="auto" style="LEFT: 0px; TOP: 0px; POSITION: relative; top: top; " FRAMEBORDER="0">  </IFRAME>
  </div>		
</div>
</div>
</body>
<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
</HEAD>
</html>
[+][-]10/26/08 06:45 AM, ID: 22807155Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/18/08 01:30 AM, ID: 22983053Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/08/08 05:44 AM, ID: 23120296Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Visual Basic Programming, Microsoft Access Database, JavaScript
Tags: Microsoft, MS Access / VB, 2006
Sign Up Now!
Solution Provided By: greep
Participating Experts: 2
Solution Grade: A
 
[+][-]12/13/08 01:19 AM, ID: 23163305Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_2_20070628