Jineeshjohn’s Blog

Archive for March 2009

This function can be used for returning xml document by passing a xml String

function xmlDataLoader(xmlData) {
	if ( window.ActiveXObject ) {
		xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
		xmlDoc.async="false";
		xmlDoc.loadXML(xmlData);
		return xmlDoc; 
	}else if ( document.implementation && document.implementation.createDocument ) {
		parser=new DOMParser();
		xmlDoc=parser.parseFromString(xmlData,"text/xml");
		return xmlDoc;
	}
	return xmlObject;
}

Setting Iframe 100 percent Width and Height

When ever a Iframe has to be made 100 percent height. Its parent page body tag and html tag has to me made 100 percent.


html, body {
	margin:0;
	height:100%;
	width:100%;
} 



  • None
  • No comments yet

Categories