<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Javascript includes - yet another way of RPC-ing</title>
	<link>http://www.phpied.com/javascript-include/</link>
	<description>Stoyan's blog about (x)html, ajax, bookmarklets, browsers, css, firebug, javascript, json, mdb2, mysql, pear, performance, php, phpbb, tools, yslow, yui, writing, music,... life and everything.</description>
	<pubDate>Sat, 17 May 2008 04:44:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>

	<item>
		<title>by: blog.kno.at MOBILE</title>
		<link>http://www.phpied.com/javascript-include/#comment-64168</link>
		<pubDate>Sat, 05 Apr 2008 00:20:35 +0000</pubDate>
		<guid>http://www.phpied.com/javascript-include/#comment-64168</guid>
					<description>[...] As life is a google-search for the terms &amp;#8220;load javascript dynamically&amp;#8221; gives, as a first result, this article: Dynamically Loading External JavaScript Files and, after some more digging around, Javascript includes - yet another way of RPC-ing. Searching and digging are nice. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] As life is a google-search for the terms &#8220;load javascript dynamically&#8221; gives, as a first result, this article: Dynamically Loading External JavaScript Files and, after some more digging around, Javascript includes - yet another way of RPC-ing. Searching and digging are nice. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Gareth</title>
		<link>http://www.phpied.com/javascript-include/#comment-63874</link>
		<pubDate>Fri, 07 Mar 2008 07:10:27 +0000</pubDate>
		<guid>http://www.phpied.com/javascript-include/#comment-63874</guid>
					<description>Has anyone else tried js includes on Firefox 3 beta?

It seems that the window.onload event is called prior to the loading of included js files. Its a bit hit and miss - sometimes the js is loaded in time and all works fine. Try it for yourself with 2 js files - the first file includes the second file and then uses a var that is in the second file. Firefox 2 works. Firefox 3 beta comes up with an error because the var is not defined ... then try refresh a few times and it will work now and then.</description>
		<content:encoded><![CDATA[<p>Has anyone else tried js includes on Firefox 3 beta?</p>
<p>It seems that the window.onload event is called prior to the loading of included js files. Its a bit hit and miss - sometimes the js is loaded in time and all works fine. Try it for yourself with 2 js files - the first file includes the second file and then uses a var that is in the second file. Firefox 2 works. Firefox 3 beta comes up with an error because the var is not defined &#8230; then try refresh a few times and it will work now and then.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: phpied.com &#187; Blog Archive &#187; Yahoo API search with JavaScript alone</title>
		<link>http://www.phpied.com/javascript-include/#comment-63853</link>
		<pubDate>Sat, 01 Mar 2008 00:07:44 +0000</pubDate>
		<guid>http://www.phpied.com/javascript-include/#comment-63853</guid>
					<description>[...] How do you make the request? With JavaScript includes, meaning you use DOM methods to sreate a new &amp;#60;script&amp;#62; tag and add it to the head of your page. The src attribute of the new script tag points to the Y! service, a longish kind of URL with a bunch of parameters. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] How do you make the request? With JavaScript includes, meaning you use DOM methods to sreate a new &lt;script&gt; tag and add it to the head of your page. The src attribute of the new script tag points to the Y! service, a longish kind of URL with a bunch of parameters. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: jug.ORG.ua blog &#187; Blog Archive &#187; AJAX без использования обьекта XmlHttpRequest</title>
		<link>http://www.phpied.com/javascript-include/#comment-63582</link>
		<pubDate>Wed, 23 Jan 2008 15:44:31 +0000</pubDate>
		<guid>http://www.phpied.com/javascript-include/#comment-63582</guid>
					<description>[...] По этой теме можно почитать на http://www.phpied.com/javascript-include/ [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] По этой теме можно почитать на <a href='http://www.phpied.com/javascript-include/' rel='nofollow'>http://www.phpied.com/javascript-include/</a> [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Joe</title>
		<link>http://www.phpied.com/javascript-include/#comment-63491</link>
		<pubDate>Thu, 10 Jan 2008 17:27:16 +0000</pubDate>
		<guid>http://www.phpied.com/javascript-include/#comment-63491</guid>
					<description>This makes sure the page is loaded prior to firing the callback function.  Fix for event handling:

  function include_dom(script_filename, oCallback) {
      var html_doc = document.getElementsByTagName('head').item(0);
      var js = document.createElement('script');
      js.setAttribute('language', 'javascript');
      js.setAttribute('type', 'text/javascript');
      js.setAttribute('src', script_filename);
      if (oCallback != null){
        // most browsers
        js.onload = oCallback;
        // IE 6 &amp;#38; 7  
        js.onreadystatechange = function() {
          if (this.readyState == 'loaded') {
            oCallback();     
          }
        }
      }
      html_doc.appendChild(js);
      return false;
  }</description>
		<content:encoded><![CDATA[<p>This makes sure the page is loaded prior to firing the callback function.  Fix for event handling:</p>
<p>  function include_dom(script_filename, oCallback) {<br />
      var html_doc = document.getElementsByTagName('head').item(0);<br />
      var js = document.createElement('script');<br />
      js.setAttribute('language', 'javascript');<br />
      js.setAttribute('type', 'text/javascript');<br />
      js.setAttribute('src', script_filename);<br />
      if (oCallback != null){<br />
        // most browsers<br />
        js.onload = oCallback;<br />
        // IE 6 &amp; 7<br />
        js.onreadystatechange = function() {<br />
          if (this.readyState == 'loaded') {<br />
            oCallback();<br />
          }<br />
        }<br />
      }<br />
      html_doc.appendChild(js);<br />
      return false;<br />
  }
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: knoDocBlog &#187; Blog Archive &#187; Can AJAX-functionality be loaded dynamically?</title>
		<link>http://www.phpied.com/javascript-include/#comment-63020</link>
		<pubDate>Sat, 03 Nov 2007 15:33:44 +0000</pubDate>
		<guid>http://www.phpied.com/javascript-include/#comment-63020</guid>
					<description>[...] As life is a google-search for the terms &amp;#8220;load javascript dynamically&amp;#8221; gives, as a first result, this article: Dynamically Loading External JavaScript Files and, after some more digging around, Javascript includes - yet another way of RPC-ing. Searching and digging are nice. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] As life is a google-search for the terms &#8220;load javascript dynamically&#8221; gives, as a first result, this article: Dynamically Loading External JavaScript Files and, after some more digging around, Javascript includes - yet another way of RPC-ing. Searching and digging are nice. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Poe</title>
		<link>http://www.phpied.com/javascript-include/#comment-62805</link>
		<pubDate>Sun, 21 Oct 2007 12:47:29 +0000</pubDate>
		<guid>http://www.phpied.com/javascript-include/#comment-62805</guid>
					<description>Great tutorial.</description>
		<content:encoded><![CDATA[<p>Great tutorial.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Levi Senft</title>
		<link>http://www.phpied.com/javascript-include/#comment-62725</link>
		<pubDate>Fri, 12 Oct 2007 08:05:59 +0000</pubDate>
		<guid>http://www.phpied.com/javascript-include/#comment-62725</guid>
					<description>I wrote a JavaScript #include using Prototype:

http://www.forgeniuses.com/?p=14</description>
		<content:encoded><![CDATA[<p>I wrote a JavaScript #include using Prototype:</p>
<p><a href='http://www.forgeniuses.com/?p=14' rel='nofollow'>http://www.forgeniuses.com/?p=14</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ajax sem o objeto XMLHTTPRequest</title>
		<link>http://www.phpied.com/javascript-include/#comment-62225</link>
		<pubDate>Mon, 10 Sep 2007 18:37:52 +0000</pubDate>
		<guid>http://www.phpied.com/javascript-include/#comment-62225</guid>
					<description>[...] &amp;#60;&amp;#8220;AJAX&amp;#8221; sem XMLHTTPRequest [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] &lt;&#8220;AJAX&#8221; sem XMLHTTPRequest [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Random Technology &#187; Blog Archive &#187; Include Javascript from within Javascript</title>
		<link>http://www.phpied.com/javascript-include/#comment-60115</link>
		<pubDate>Mon, 11 Jun 2007 01:57:50 +0000</pubDate>
		<guid>http://www.phpied.com/javascript-include/#comment-60115</guid>
					<description>[...] N.B. rasmus pointed out a nice, in depth article that goes though several techniqes to do this. If you are interested, check it out. (The DOM way doesn&amp;#8217;t work in Safari). [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] N.B. rasmus pointed out a nice, in depth article that goes though several techniqes to do this. If you are interested, check it out. (The DOM way doesn&#8217;t work in Safari). [&#8230;]
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
