<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: JS includes &#8211; the saga continues&#8230;</title>
	<atom:link href="http://www.phpied.com/javascript-include-ready-onload/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpied.com/javascript-include-ready-onload/</link>
	<description>Stoyan&#039;s blog about &#60;a href=&#34;/category/xhtml&#34; class=&#34;tag-minor&#34;&#62;(x)html(5)&#60;/a&#62;, &#60;a href=&#34;/category/ajax&#34; class=&#34;tag-major&#34;&#62;ajax&#60;/a&#62;, &#60;a href=&#34;/category/bookmarklets&#34; class=&#34;tag-major&#34;&#62;bookmarklets&#60;/a&#62;, &#60;a href=&#34;/category/browsers&#34; class=&#34;tag-minor&#34;&#62;browsers&#60;/a&#62;, &#60;a href=&#34;/category/css&#34; class=&#34;tag-normal&#34;&#62;css&#60;/a&#62;, &#60;a href=&#34;/category/firebug&#34; class=&#34;tag-minor&#34;&#62;firebug&#60;/a&#62;, &#60;a href=&#34;/category/javascript&#34; class=&#34;tag-numero-uno&#34;&#62;javascript&#60;/a&#62;, &#60;a href=&#34;/category/json&#34; class=&#34;tag-normal&#34;&#62;json&#60;/a&#62;, &#60;a href=&#34;/category/mdb2&#34; class=&#34;tag-minor&#34;&#62;mdb2&#60;/a&#62;, &#60;a href=&#34;/category/mysql&#34; class=&#34;tag-normal&#34;&#62;mysql&#60;/a&#62;, &#60;a href=&#34;/category/pear&#34; class=&#34;tag-numero-uno&#34;&#62;pear&#60;/a&#62;, &#60;a href=&#34;/category/performance&#34; class=&#34;tag-major&#34;&#62;performance&#60;/a&#62;, &#60;a href=&#34;/category/php&#34; class=&#34;tag-numero-uno&#34;&#62;php&#60;/a&#62;, &#60;a href=&#34;/category/phpbb&#34; class=&#34;tag-major&#34;&#62;phpbb&#60;/a&#62;, &#60;a href=&#34;/category/tools&#34; class=&#34;tag-normal&#34;&#62;tools&#60;/a&#62;, &#60;a href=&#34;/category/yslow&#34; class=&#34;tag-minor&#34;&#62;yslow&#60;/a&#62;, &#60;a href=&#34;/category/yui&#34; class=&#34;tag-normal&#34;&#62;yui&#60;/a&#62;, &#60;a href=&#34;/category/writing&#34; class=&#34;tag-minor&#34;&#62;writing&#60;/a&#62;, &#60;a href=&#34;/category/music&#34; class=&#34;tag-major&#34;&#62;music&#60;/a&#62;,... &#60;a href=&#34;/category/life-and-everything&#34; class=&#34;tag-normal&#34;&#62;life and everything&#60;/a&#62;.</description>
	<lastBuildDate>Sat, 11 Feb 2012 14:07:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: furnizor mobila</title>
		<link>http://www.phpied.com/javascript-include-ready-onload/#comment-81619</link>
		<dc:creator>furnizor mobila</dc:creator>
		<pubDate>Sat, 11 Feb 2012 09:57:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/javascript-include-ready-onload/#comment-81619</guid>
		<description>Thank you for the auspicious writeup. It in truth was a entertainment account it. Glance advanced to far delivered agreeable from you! By the way, how could we communicate?</description>
		<content:encoded><![CDATA[<p>Thank you for the auspicious writeup. It in truth was a entertainment account it. Glance advanced to far delivered agreeable from you! By the way, how could we communicate?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Performance Calendar &#187; The art and craft of the async snippet</title>
		<link>http://www.phpied.com/javascript-include-ready-onload/#comment-80566</link>
		<dc:creator>Performance Calendar &#187; The art and craft of the async snippet</dc:creator>
		<pubDate>Mon, 05 Dec 2011 10:16:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/javascript-include-ready-onload/#comment-80566</guid>
		<description>[...] once the script is ready. In which case you need to listen to js.onload and js.onreadystatechange (example). In even more complex examples, you may want to load several scripts and guarantee their order of [...]</description>
		<content:encoded><![CDATA[<p>[...] once the script is ready. In which case you need to listen to js.onload and js.onreadystatechange (example). In even more complex examples, you may want to load several scripts and guarantee their order of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Page JavaScript file optimization</title>
		<link>http://www.phpied.com/javascript-include-ready-onload/#comment-77631</link>
		<dc:creator>Page JavaScript file optimization</dc:creator>
		<pubDate>Sun, 01 May 2011 12:40:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/javascript-include-ready-onload/#comment-77631</guid>
		<description>[...] (this will work in Firefox) and the onreadystatechange event (this will work in IE). Here’s a blog post that shows you how to do this. To be fully cross-browser compliant, you can do something else [...]</description>
		<content:encoded><![CDATA[<p>[...] (this will work in Firefox) and the onreadystatechange event (this will work in IE). Here’s a blog post that shows you how to do this. To be fully cross-browser compliant, you can do something else [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JavaScript Madness: Dynamic Script Loading - Peter Wang – HTML5 &#124; WEB 前端技术</title>
		<link>http://www.phpied.com/javascript-include-ready-onload/#comment-77495</link>
		<dc:creator>JavaScript Madness: Dynamic Script Loading - Peter Wang – HTML5 &#124; WEB 前端技术</dc:creator>
		<pubDate>Sat, 16 Apr 2011 04:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/javascript-include-ready-onload/#comment-77495</guid>
		<description>[...] One web page suggested setting up some event handlers that will be called when the load is complete. We do that by adding the following lines to the previous code: [...]</description>
		<content:encoded><![CDATA[<p>[...] One web page suggested setting up some event handlers that will be called when the load is complete. We do that by adding the following lines to the previous code: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: When is a stylesheet really loaded? / Stoyan's phpied.com</title>
		<link>http://www.phpied.com/javascript-include-ready-onload/#comment-76562</link>
		<dc:creator>When is a stylesheet really loaded? / Stoyan's phpied.com</dc:creator>
		<pubDate>Fri, 18 Mar 2011 04:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/javascript-include-ready-onload/#comment-76562</guid>
		<description>[...] fires readystatechange and load (tested years ago, too lazy to test now again). Now with IE9 maybe addEventListener will work [...]</description>
		<content:encoded><![CDATA[<p>[...] fires readystatechange and load (tested years ago, too lazy to test now again). Now with IE9 maybe addEventListener will work [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ciarán Irvine</title>
		<link>http://www.phpied.com/javascript-include-ready-onload/#comment-74462</link>
		<dc:creator>Ciarán Irvine</dc:creator>
		<pubDate>Thu, 11 Nov 2010 16:12:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/javascript-include-ready-onload/#comment-74462</guid>
		<description>Version 2, tidied up a bit!

So I needed a cross-browser way to check if a particular JS file had already been loaded, and if not load it and then run some commands once it had been parsed. From the various bits and pieces on this page and comments I concocted this thing of beauty:

//first of all the bit to find if a js file is already loaded
var filename = &quot;my_file.js&quot;;
var scpt = document.getElementsByTagName(\’script\’);
var jsfound=false;
for(x=0;x&lt;scpt.length;x++){
if(scpt[x].src!=”&quot; &amp;&amp; scpt[x].src.indexOf(filename)!=-1){
jsfound=true;
break;
}
}

if(jsfound==false){
//prc is a string of commands that will be eval’d and run once the script has loaded and parsed
prc = “alert(’success’);”;
//here is our dynamic inclusion function
jsInclude(filename,prc);
}else{
//do whatever you would normally do if the script is already present
}

And then the function itself:

function jsInclude(filename,process_eval){
var oRequest = false;
// branch for native XMLHttpRequest object
if(window.XMLHttpRequest) {
try { oRequest = new XMLHttpRequest(); }
catch(e) {oRequest = false;}
// branch for IE/Windows ActiveX version
}else if(window.ActiveXObject) {
try { oRequest = new ActiveXObject(”Msxml2.XMLHTTP”); }
catch(e) {
try {oRequest = new ActiveXObject(”Microsoft.XMLHTTP”);}
catch(e) {oRequest = false;}
}
}
if(!oRequest){alert(”Ajax fail, unsupported browser!”);return false;}
oRequest.open(”GET”, filename, true);

oRequest.onreadystatechange = function () {
if (oRequest.readyState == 4) {
var headID = document.getElementsByTagName(”head”)[0];
var newScript = document.createElement(”script”);
newScript.type = “text/javascript”;
if(typeof(newScript.onreadystatechange)==”undefined”){
//firefox,chrome,safari
newScript.onload=function(){window.eval(process_eval);}
newScript.src = filename;
}else{
//IE
newScript.onreadystatechange=function(){if(newScript.readyState==”complete” &#124;&#124; newScript.readyState==”loaded”){eval(process_eval);}}
newScript.text = oRequest.responseText;
if (!document.all) {
newScript.innerHTML = oRequest.responseText;
}
}
headID.appendChild(newScript);
}
}
oRequest.send(null);
return true;
}

It is a wee bit messy and kludgy alright, but it works in IE6,7,8, FF, Safari and Chrome as far as I can tell</description>
		<content:encoded><![CDATA[<p>Version 2, tidied up a bit!</p>
<p>So I needed a cross-browser way to check if a particular JS file had already been loaded, and if not load it and then run some commands once it had been parsed. From the various bits and pieces on this page and comments I concocted this thing of beauty:</p>
<p>//first of all the bit to find if a js file is already loaded<br />
var filename = &#8220;my_file.js&#8221;;<br />
var scpt = document.getElementsByTagName(\’script\’);<br />
var jsfound=false;<br />
for(x=0;x&lt;scpt.length;x++){<br />
if(scpt[x].src!=”&#8221; &amp;&amp; scpt[x].src.indexOf(filename)!=-1){<br />
jsfound=true;<br />
break;<br />
}<br />
}</p>
<p>if(jsfound==false){<br />
//prc is a string of commands that will be eval’d and run once the script has loaded and parsed<br />
prc = “alert(’success’);”;<br />
//here is our dynamic inclusion function<br />
jsInclude(filename,prc);<br />
}else{<br />
//do whatever you would normally do if the script is already present<br />
}</p>
<p>And then the function itself:</p>
<p>function jsInclude(filename,process_eval){<br />
var oRequest = false;<br />
// branch for native XMLHttpRequest object<br />
if(window.XMLHttpRequest) {<br />
try { oRequest = new XMLHttpRequest(); }<br />
catch(e) {oRequest = false;}<br />
// branch for IE/Windows ActiveX version<br />
}else if(window.ActiveXObject) {<br />
try { oRequest = new ActiveXObject(”Msxml2.XMLHTTP”); }<br />
catch(e) {<br />
try {oRequest = new ActiveXObject(”Microsoft.XMLHTTP”);}<br />
catch(e) {oRequest = false;}<br />
}<br />
}<br />
if(!oRequest){alert(”Ajax fail, unsupported browser!”);return false;}<br />
oRequest.open(”GET”, filename, true);</p>
<p>oRequest.onreadystatechange = function () {<br />
if (oRequest.readyState == 4) {<br />
var headID = document.getElementsByTagName(”head”)[0];<br />
var newScript = document.createElement(”script”);<br />
newScript.type = “text/javascript”;<br />
if(typeof(newScript.onreadystatechange)==”undefined”){<br />
//firefox,chrome,safari<br />
newScript.onload=function(){window.eval(process_eval);}<br />
newScript.src = filename;<br />
}else{<br />
//IE<br />
newScript.onreadystatechange=function(){if(newScript.readyState==”complete” || newScript.readyState==”loaded”){eval(process_eval);}}<br />
newScript.text = oRequest.responseText;<br />
if (!document.all) {<br />
newScript.innerHTML = oRequest.responseText;<br />
}<br />
}<br />
headID.appendChild(newScript);<br />
}<br />
}<br />
oRequest.send(null);<br />
return true;<br />
}</p>
<p>It is a wee bit messy and kludgy alright, but it works in IE6,7,8, FF, Safari and Chrome as far as I can tell</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ciarán Irvine</title>
		<link>http://www.phpied.com/javascript-include-ready-onload/#comment-74461</link>
		<dc:creator>Ciarán Irvine</dc:creator>
		<pubDate>Thu, 11 Nov 2010 15:58:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/javascript-include-ready-onload/#comment-74461</guid>
		<description>So I needed a cross-browser way to check if a particular JS file had already been loaded, and if not load it and then run some commands once it had been parsed. From the various bits and pieces on this page and comments I concocted this thing of beauty:


//first of all the bit to find if a js file is already loaded
var scpt = document.getElementsByTagName(\&#039;script\&#039;);
var jsfound=false; 
for(x=0;x&lt;scpt.length;x++){
	if(scpt[x].src!=&quot;&quot; &amp;&amp; scpt[x].src.indexOf(&quot;yahoo-dom-event-conn-element-treeview&quot;)!=-1){
		jsfound=true;
		break;
	}
}
				
if(jsfound==false){
	//prc is a string of commands that will be eval&#039;d and run once the script has loaded and parsed
	prc = &quot;alert(&#039;success&#039;);&quot;;
	//here is our dynamic inclusion function
	jsInclude(&quot;js_file.js&quot;,prc);
}else{
	//do whatever you would normally do if the script is already present
}
 

And then the function itself:


function jsInclude(filename,process_eval){
	var oRequest = false;
	// branch for native XMLHttpRequest object
	if(window.XMLHttpRequest) {
		try { oRequest = new XMLHttpRequest(); }
		catch(e) {oRequest = false;}
		// branch for IE/Windows ActiveX version
	}else if(window.ActiveXObject) {
		try { oRequest = new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;); }
		catch(e) {
			try {oRequest = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);}
			catch(e) {oRequest = false;}
		}
	}
	if(!oRequest){alert(&quot;Ajax fail, unsupported browser!&quot;);return false;}
	oRequest.open(&quot;GET&quot;, filename, true);

	oRequest.onreadystatechange = function () {
		if (oRequest.readyState == 4) {	
			var headID = document.getElementsByTagName(&quot;head&quot;)[0];       
			var newScript = document.createElement(&quot;script&quot;);
			newScript.type = &quot;text/javascript&quot;;
			if(typeof(newScript.onreadystatechange)==&quot;undefined&quot;){
				//firefox,chrome,safari
				newScript.onload=function(){window.eval(process_eval);}
				newScript.src = &quot;&#039; . CRB_WWW_LIB . &#039;yahoo-dom-event-conn-element-treeview.js&quot;;
			}else{
				//IE
				newScript.onreadystatechange=function(){if(newScript.readyState==&quot;complete&quot; &#124;&#124; newScript.readyState==&quot;loaded&quot;){eval(process_eval);}}
				newScript.text = oRequest.responseText;
				if (!document.all) {
					newScript.innerHTML = oRequest.responseText;
				}
			}
			headID.appendChild(newScript);
		}
	}
	oRequest.send(null);
	return true;
}



It is a wee bit messy and kludgy alright, but it works in IE6,7,8, FF, Safari and Chrome as far as I can tell</description>
		<content:encoded><![CDATA[<p>So I needed a cross-browser way to check if a particular JS file had already been loaded, and if not load it and then run some commands once it had been parsed. From the various bits and pieces on this page and comments I concocted this thing of beauty:</p>
<p>//first of all the bit to find if a js file is already loaded<br />
var scpt = document.getElementsByTagName(\&#8217;script\&#8217;);<br />
var jsfound=false;<br />
for(x=0;x&lt;scpt.length;x++){<br />
	if(scpt[x].src!=&#8221;" &amp;&amp; scpt[x].src.indexOf(&#8220;yahoo-dom-event-conn-element-treeview&#8221;)!=-1){<br />
		jsfound=true;<br />
		break;<br />
	}<br />
}</p>
<p>if(jsfound==false){<br />
	//prc is a string of commands that will be eval&#8217;d and run once the script has loaded and parsed<br />
	prc = &#8220;alert(&#8216;success&#8217;);&#8221;;<br />
	//here is our dynamic inclusion function<br />
	jsInclude(&#8220;js_file.js&#8221;,prc);<br />
}else{<br />
	//do whatever you would normally do if the script is already present<br />
}</p>
<p>And then the function itself:</p>
<p>function jsInclude(filename,process_eval){<br />
	var oRequest = false;<br />
	// branch for native XMLHttpRequest object<br />
	if(window.XMLHttpRequest) {<br />
		try { oRequest = new XMLHttpRequest(); }<br />
		catch(e) {oRequest = false;}<br />
		// branch for IE/Windows ActiveX version<br />
	}else if(window.ActiveXObject) {<br />
		try { oRequest = new ActiveXObject(&#8220;Msxml2.XMLHTTP&#8221;); }<br />
		catch(e) {<br />
			try {oRequest = new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;);}<br />
			catch(e) {oRequest = false;}<br />
		}<br />
	}<br />
	if(!oRequest){alert(&#8220;Ajax fail, unsupported browser!&#8221;);return false;}<br />
	oRequest.open(&#8220;GET&#8221;, filename, true);</p>
<p>	oRequest.onreadystatechange = function () {<br />
		if (oRequest.readyState == 4) {<br />
			var headID = document.getElementsByTagName(&#8220;head&#8221;)[0];<br />
			var newScript = document.createElement(&#8220;script&#8221;);<br />
			newScript.type = &#8220;text/javascript&#8221;;<br />
			if(typeof(newScript.onreadystatechange)==&#8221;undefined&#8221;){<br />
				//firefox,chrome,safari<br />
				newScript.onload=function(){window.eval(process_eval);}<br />
				newScript.src = &#8220;&#8216; . CRB_WWW_LIB . &#8216;yahoo-dom-event-conn-element-treeview.js&#8221;;<br />
			}else{<br />
				//IE<br />
				newScript.onreadystatechange=function(){if(newScript.readyState==&#8221;complete&#8221; || newScript.readyState==&#8221;loaded&#8221;){eval(process_eval);}}<br />
				newScript.text = oRequest.responseText;<br />
				if (!document.all) {<br />
					newScript.innerHTML = oRequest.responseText;<br />
				}<br />
			}<br />
			headID.appendChild(newScript);<br />
		}<br />
	}<br />
	oRequest.send(null);<br />
	return true;<br />
}</p>
<p>It is a wee bit messy and kludgy alright, but it works in IE6,7,8, FF, Safari and Chrome as far as I can tell</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miroslav Nikolov</title>
		<link>http://www.phpied.com/javascript-include-ready-onload/#comment-74177</link>
		<dc:creator>Miroslav Nikolov</dc:creator>
		<pubDate>Wed, 06 Oct 2010 17:35:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/javascript-include-ready-onload/#comment-74177</guid>
		<description>I was testing cross browser solution for dynamically loading files for quite long.
My conclusions are that there is no way to predict when the file is actually loaded in IE6,7,8

I am surprised you haven&#039;t encountered that readyState fires &quot;loaded&quot;  state only, &quot;completed&quot; state only and sometimes both. This means that your callback may execute twice. 

Try to put alert as a callback and refresh the page 20-30 times. You will see the exceptions :)

Another unwanted behavior is if you have functionality that depends on the file that needs to be loaded. In that case it is impossible to create consistent solution packed as a library.

The only way is to put some markers in the end of the files that you want to load. Once the file is loaded the marker functions will execute. 

This is the only way I found by testing that works cross browser. Drawbacks are that you need to control the content of the files you want to load. 

Very bad that this buggy behavior is in IE6,7,8. What were these people thinking??

Anyway good luck with your efforts guys.</description>
		<content:encoded><![CDATA[<p>I was testing cross browser solution for dynamically loading files for quite long.<br />
My conclusions are that there is no way to predict when the file is actually loaded in IE6,7,8</p>
<p>I am surprised you haven&#8217;t encountered that readyState fires &#8220;loaded&#8221;  state only, &#8220;completed&#8221; state only and sometimes both. This means that your callback may execute twice. </p>
<p>Try to put alert as a callback and refresh the page 20-30 times. You will see the exceptions <img src='http://www.phpied.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Another unwanted behavior is if you have functionality that depends on the file that needs to be loaded. In that case it is impossible to create consistent solution packed as a library.</p>
<p>The only way is to put some markers in the end of the files that you want to load. Once the file is loaded the marker functions will execute. </p>
<p>This is the only way I found by testing that works cross browser. Drawbacks are that you need to control the content of the files you want to load. </p>
<p>Very bad that this buggy behavior is in IE6,7,8. What were these people thinking??</p>
<p>Anyway good luck with your efforts guys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nat</title>
		<link>http://www.phpied.com/javascript-include-ready-onload/#comment-73466</link>
		<dc:creator>Nat</dc:creator>
		<pubDate>Wed, 23 Jun 2010 17:03:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/javascript-include-ready-onload/#comment-73466</guid>
		<description>Thanks! Why can&#039;t all these browsers just get along? :-D</description>
		<content:encoded><![CDATA[<p>Thanks! Why can&#8217;t all these browsers just get along? <img src='http://www.phpied.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shadow</title>
		<link>http://www.phpied.com/javascript-include-ready-onload/#comment-72358</link>
		<dc:creator>Shadow</dc:creator>
		<pubDate>Fri, 26 Feb 2010 16:11:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/javascript-include-ready-onload/#comment-72358</guid>
		<description>this code works fine for all browser except IE 6..in my case i have different tabs…user can switch between tabs and when user do that i m loading the script dynamically…that works fine for other browser as well as IE 6…but it fails in IE 6 for below scenario…

I m loading the multiple scripts when one tab is active. now script are loading for this active tab and user switched to another tab..so on active tab changed other javascritp for this current tab are also loaded dynamically..but on readystate=’loaded’ &#124;&#124; readystate==’completed’ i try to call the function of loaded script. but i m getting the undefined error and i found that thought i m getting the readystate = ‘loaded’ or ‘complete’ my javascript is not loaded..is there any issue with IE 6 loading the scritp…this happend only when my previous requested script are not loaded and i request another script…but how it is possible to complere the request which was made later….

http://www.doktortr.net</description>
		<content:encoded><![CDATA[<p>this code works fine for all browser except IE 6..in my case i have different tabs…user can switch between tabs and when user do that i m loading the script dynamically…that works fine for other browser as well as IE 6…but it fails in IE 6 for below scenario…</p>
<p>I m loading the multiple scripts when one tab is active. now script are loading for this active tab and user switched to another tab..so on active tab changed other javascritp for this current tab are also loaded dynamically..but on readystate=’loaded’ || readystate==’completed’ i try to call the function of loaded script. but i m getting the undefined error and i found that thought i m getting the readystate = ‘loaded’ or ‘complete’ my javascript is not loaded..is there any issue with IE 6 loading the scritp…this happend only when my previous requested script are not loaded and i request another script…but how it is possible to complere the request which was made later….</p>
<p><a href="http://www.doktortr.net" rel="nofollow">http://www.doktortr.net</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

