Project

General

Profile

« Previous | Next » 

Revision 4495

pull out the IE/FF differences into common method that returns the document object for an iFrame (works with IE now!)

View differences:

search.js
503 503
		 });
504 504
		 
505 505
	 //alert("done calling ajax");
506
}
506
}
507
function getIframeDocument(iframeId) {
508
	//look up the document
509
	var iframe = window.document.getElementById(iframeId);
510
	var doc = null;
511
	if (iframe.contentDocument) {
512
		doc = iframe.contentDocument;
513
	}
514
	else {
515
		doc = iframe.contentWindow.document;
516
	}
517
	return doc;
518
}

Also available in: Unified diff