function checkIFrameState(loaderObjectID,loaderID) {
		var locked_this = getLoaderObject(loaderObjectID);
		if ( locked_this.verbose ) alert("Check IFrame State "+locked_this+"::"+loaderID);

		if ( locked_this.loaderID != loaderID ) return; // new loader forced abort
		if ( locked_this.hiddenIFrame ) 
		{
			var readyState;
			
			try 
			{
				readyState = locked_this.hiddenIFrame.contentDocument.readyState;
			}
			catch ( maybeNoReadyState ) 
			{
				try 
				{
					readyState = locked_this.hiddenIFrame.contentWindow.document.readyState;
				}
				catch ( noReadyState ) 
				{
					if ( locked_this.verbose ) alert("Failed to get Redy State "+noReadyState);
				}
			}
			if ( !readyState ) 
			{
				if ( locked_this.verbose ) alert("Ready State not valid");
				try 
				{
					if ( locked_this.iframecheckRetryCount < 40 ) 
					{
						var ih = locked_this.getCurrentLoaderContent(loaderID);
						if ( locked_this.verbose ) alert("Current Content is "+ih);
						if ( !ih || trim(ih) == "" ) 
						{
							if ( locked_this.verbose ) alert("CurrentContent is empty");
							locked_this.iframeRetryCount++;
							locked_this.lastLoadStatus  = locked_this.lastLoadMethod+":Retry: Waiting for Content";
							if ( locked_this.verbose ) alert("CurrentContent is empty, performing retry ");
							window.setTimeout("checkIFrameState("+loaderObjectID+","+loaderID+")",250);
						} 
						else 
						{
							if ( locked_this.verbose ) alert("Iframe contains content");
							locked_this.extractLastReponseFromIFrame();
							locked_this.lastLoadStatus  = locked_this.lastLoadMethod+":Completed: Content Present";
							locked_this.invokeCallback(loaderID);	
						}
					}
					else 
					{
						if ( locked_this.verbose ) alert("Iframe contains content");
						locked_this.extractLastReponseFromIFrame();
						locked_this.lastLoadStatus  = locked_this.lastLoadMethod+":Retry exceeded";
						locked_this.invokeCallback(loaderID);	
					}
				} 
				catch ( badFailiure )
				{
					alert("OOPS: "+badFailiure);
				}
				return;
			}
			if ( locked_this.verbose ) alert("Valid Ready State");
			if ( readyState.toLowerCase() != "complete" ) 
			{
				if ( locked_this.iframecheckRetryCount > 39 )
				{
					locked_this.extractLastReponseFromIFrame();
					locked_this.lastLoadStatus  = locked_this.lastLoadMethod+":Completed: Timeout";
					locked_this.invokeCallback(loaderID);
				}
				else 
				{
					locked_this.iframecheckRetryCount++;
					locked_this.lastLoadStatus  = locked_this.lastLoadMethod+":In Retry";
					window.setTimeout("checkIFrameState("+loaderObjectID+","+loaderID+")",250);
				}
			}
			else 
			{
				locked_this.extractLastReponseFromIFrame();
				locked_this.lastLoadStatus  = locked_this.lastLoadMethod+":Completed: Normal";
				locked_this.invokeCallback(loaderID);
			}
		}
}
/*
 checkIFrameState is called on a timer to determin if their is any content inthe Iframe
*/
checkIFrameState is called on a timer to determin if their is any content inthe Iframe
checkIFrameState is called on a timer to determin if their is any content inthe Iframe
function checkIFrameState(loaderObjectID,loaderID) {
		var locked_this = getLoaderObject(loaderObjectID);
		if ( locked_this.verbose ) alert("Check IFrame State "+locked_this+"::"+loaderID);
		if ( locked_this.loaderID != loaderID ) return; 
		if ( locked_this.hiddenIFrame ) 
		{
			var readyState;
			try 
			{
				readyState = locked_this.hiddenIFrame.contentDocument.readyState;
			}
			catch ( maybeNoReadyState ) 
			{
				try 
				{
					readyState = locked_this.hiddenIFrame.contentWindow.document.readyState;
				}
				catch ( noReadyState ) 
				{
					if ( locked_this.verbose ) alert("Failed to get Redy State "+noReadyState);
				}
			}
			if ( !readyState ) 
			{
				if ( locked_this.verbose ) alert("Ready State not valid");
				try 
				{
					if ( locked_this.iframecheckRetryCount < 40 ) 
					{
						var ih = locked_this.getCurrentLoaderContent(loaderID);
						if ( locked_this.verbose ) alert("Current Content is "+ih);
						if ( !ih || trim(ih) == "" ) 
						{
							if ( locked_this.verbose ) alert("CurrentContent is empty");
							locked_this.iframeRetryCount++;
							locked_this.lastLoadStatus  = locked_this.lastLoadMethod+":Retry: Waiting for Content";
							if ( locked_this.verbose ) alert("CurrentContent is empty, performing retry ");
							window.setTimeout("checkIFrameState("+loaderObjectID+","+loaderID+")",250);
						} 
						else 
						{
							if ( locked_this.verbose ) alert("Iframe contains content");
							locked_this.extractLastReponseFromIFrame();
							locked_this.lastLoadStatus  = locked_this.lastLoadMethod+":Completed: Content Present";
							locked_this.invokeCallback(loaderID);	
						}
					}
					else 
					{
						if ( locked_this.verbose ) alert("Iframe contains content");
						locked_this.extractLastReponseFromIFrame();
						locked_this.lastLoadStatus  = locked_this.lastLoadMethod+":Retry exceeded";
						locked_this.invokeCallback(loaderID);	
					}
				} 
				catch ( badFailiure )
				{
					alert("OOPS: "+badFailiure);
				}
				return;
			}
			if ( locked_this.verbose ) alert("Valid Ready State");
			if ( readyState.toLowerCase() != "complete" ) 
			{
				if ( locked_this.iframecheckRetryCount > 39 )
				{
					locked_this.extractLastReponseFromIFrame();
					locked_this.lastLoadStatus  = locked_this.lastLoadMethod+":Completed: Timeout";
					locked_this.invokeCallback(loaderID);
				}
				else 
				{
					locked_this.iframecheckRetryCount++;
					locked_this.lastLoadStatus  = locked_this.lastLoadMethod+":In Retry";
					window.setTimeout("checkIFrameState("+loaderObjectID+","+loaderID+")",250);
				}
			}
			else 
			{
				locked_this.extractLastReponseFromIFrame();
				locked_this.lastLoadStatus  = locked_this.lastLoadMethod+":Completed: Normal";
				locked_this.invokeCallback(loaderID);
			}
		}
}
function checkIFrameState ( loaderObjectID , loaderID ) { var locked_this = getLoaderObject ( loaderObjectID ) ; if ( locked_this . verbose ) alert ( "Check IFrame State " + locked_this + "::" + loaderID ) ; if ( locked_this . loaderID != loaderID ) return ; if ( locked_this . hiddenIFrame ) { var readyState ; try { readyState = locked_this . hiddenIFrame . contentDocument . readyState ; } catch ( maybeNoReadyState ) { try { readyState = locked_this . hiddenIFrame . contentWindow . document . readyState ; } catch ( noReadyState ) { if ( locked_this . verbose ) alert ( "Failed to get Redy State " + noReadyState ) ; } } if ( ! readyState ) { if ( locked_this . verbose ) alert ( "Ready State not valid" ) ; try { if ( locked_this . iframecheckRetryCount < 40 ) { var ih = locked_this . getCurrentLoaderContent ( loaderID ) ; if ( locked_this . verbose ) alert ( "Current Content is " + ih ) ; if ( ! ih || trim ( ih ) == "" ) { if ( locked_this . verbose ) alert ( "CurrentContent is empty" ) ; locked_this . iframeRetryCount ++ ; locked_this . lastLoadStatus = locked_this . lastLoadMethod + ":Retry: Waiting for Content" ; if ( locked_this . verbose ) alert ( "CurrentContent is empty, performing retry " ) ; window . setTimeout ( "checkIFrameState(" + loaderObjectID + "," + loaderID + ")" , 250 ) ; } else { if ( locked_this . verbose ) alert ( "Iframe contains content" ) ; locked_this . extractLastReponseFromIFrame ( ) ; locked_this . lastLoadStatus = locked_this . lastLoadMethod + ":Completed: Content Present" ; locked_this . invokeCallback ( loaderID ) ; } } else { if ( locked_this . verbose ) alert ( "Iframe contains content" ) ; locked_this . extractLastReponseFromIFrame ( ) ; locked_this . lastLoadStatus = locked_this . lastLoadMethod + ":Retry exceeded" ; locked_this . invokeCallback ( loaderID ) ; } } catch ( badFailiure ) { alert ( "OOPS: " + badFailiure ) ; } return ; } if ( locked_this . verbose ) alert ( "Valid Ready State" ) ; if ( readyState . toLowerCase ( ) != "complete" ) { if ( locked_this . iframecheckRetryCount > 39 ) { locked_this . extractLastReponseFromIFrame ( ) ; locked_this . lastLoadStatus = locked_this . lastLoadMethod + ":Completed: Timeout" ; locked_this . invokeCallback ( loaderID ) ; } else { locked_this . iframecheckRetryCount ++ ; locked_this . lastLoadStatus = locked_this . lastLoadMethod + ":In Retry" ; window . setTimeout ( "checkIFrameState(" + loaderObjectID + "," + loaderID + ")" , 250 ) ; } } else { locked_this . extractLastReponseFromIFrame ( ) ; locked_this . lastLoadStatus = locked_this . lastLoadMethod + ":Completed: Normal" ; locked_this . invokeCallback ( loaderID ) ; } } }
checkIFrameState is called on a timer to determin if their is any content inthe Iframe
checkIFrameState is called on a timer to determin if their is any content inthe Iframe
// new loader forced abort