Link to home
Start Free TrialLog in
Avatar of greep
greep

asked on

VB to automate entry into Javascript Web Page

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

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

Open in new window

Avatar of Badotz
Badotz
Flag of United States of America image

There is too much code to wade through.

What are you trying to achieve with:

<script>
document.body.style.cursor="wait";
</script>

What are you waiting for?
Hi greep

Did you get anywhere with this Q?

You have posted the web page source, but unfortunately it is not working, so can you please put the link to the actual page.

jaffer
ASKER CERTIFIED SOLUTION
Avatar of greep
greep

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi greep

Can you please let us know what solution you got for your Q, I would like to know if you don't mind.

thanks

jaffer