To load an doc inside a iframe dynamically

We can load a document into an iframe dynamically by using iframe.src = “yourpage” in javascript.
But this works well in IE and not in others browsers. Here is an method to load iframes dynamically.

I found this at http://developer.apple.com/internet/webcontent/iframe.html and just changed something to fit our need.


var IFrameObj;
function loadIFrame(thePage){
//loads an doc inside a iframe dynamically
URL = thePage;
IFrameObj = new Object();
IFrameObj.document = new Object();
IFrameObj.document.location = new Object();
IFrameObj.document.location.iframe = document.getElementById('cpaneif');
IFrameObj.document.location.replace = function(location) {
this.iframe.src = location;
}

if (navigator.userAgent.indexOf(‘Gecko’) !=-1 && !IFrameObj.contentDocument) {
// allow a fraction of a second to recognize the new IFrame
//setTimeout(‘loadIFrame(“‘+thePage+'”)’,10);
//return false;
}

if (IFrameObj.contentDocument) {
// For NS6
IFrameDoc = IFrameObj.contentDocument;
} else if (IFrameObj.contentWindow) {
// For IE5.5 and IE6
IFrameDoc = IFrameObj.contentWindow.document;
} else if (IFrameObj.document) {
// For IE5
IFrameDoc = IFrameObj.document;
} else {
return true;
}

IFrameDoc.location.replace(URL);
/* NB:-
//if you want to create a new iframe dynamically visit
http://developer.apple.com/internet/webcontent/iframe.html
*/
}

List all Plugins installed in FireFox

To List all Plugins installed and Configurations details in FireFox type the following in the location bar in FireFox
about:plugins
to get the configuration List in FF
about:config

You can get the List of plugins using javascript for your code as follows


var L = navigator.plugins.length
document.write( L );
document.write("Plugins".bold());
document.write("
");
document.write("Name | Filename | description".bold());
document.write("
");
for(i=0; i
document.write(navigator.plugins[i].name);
document.write(" | ".bold());
document.write(navigator.plugins[i].filename);
document.write(" | ".bold());
document.write(navigator.plugins[i].description);
document.write("
");
}