Revision 4495
Added by ben leinfelder over 15 years ago
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
pull out the IE/FF differences into common method that returns the document object for an iFrame (works with IE now!)