<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1043167" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1043167</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Hi Jeeves,
Yes i am using</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/loading-more-one-javascript-when-page-loads#comment-1238843</link>
    <description> &lt;p&gt;Hi Jeeves,&lt;/p&gt;
&lt;p&gt;Yes i am using jquery already, but doesnt the $(document).ready not overide the onload event?&lt;/p&gt;
&lt;p&gt;This does sound reasonable if it does not.&lt;/p&gt;
&lt;p&gt;However as from the link that has been provided above, this is also a reasonable solution to add my function to the window.onload if something already exists, but if the onload has been run from the  tag this probably will not work?&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;function addLoadEvent(func) {&lt;br /&gt;&amp;nbsp; var oldonload = window.onload;&lt;br /&gt;&amp;nbsp; if (typeof window.onload != &amp;#039;function&amp;#039;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.onload = func;&lt;br /&gt;&amp;nbsp; } else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.onload = function() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (oldonload) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oldonload();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; func();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 01 Mar 2009 22:04:55 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1238843 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>JeevesBond wrote:
many</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/loading-more-one-javascript-when-page-loads#comment-1238841</link>
    <description> &lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;JeevesBond&lt;/em&gt; wrote:&lt;/div&gt;many JavaScript developers are using &lt;a href=&quot;http://jquery.com&quot;&gt;JQuery&lt;/a&gt; these days. It makes stuff like this very easy.&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;I usually avoid using frameworks like Jquery and Prototype because they add a lot of code that is not ever used (I know many Drupal modules depend on Jquery).&lt;/p&gt;
&lt;p&gt;This looks like a good reason to use Jquery - or maybe just extract the part relevant to $(document).ready&lt;/p&gt;
 </description>
     <pubDate>Sun, 01 Mar 2009 19:07:42 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1238841 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I know this doesn&#039;t directly</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/loading-more-one-javascript-when-page-loads#comment-1238832</link>
    <description> &lt;p&gt;I know this doesn&#039;t directly answer your question (think the other two solutions posted above do that perfectly), but many JavaScript developers are using &lt;a href=&quot;http://jquery.com&quot;&gt;JQuery&lt;/a&gt; these days. It makes stuff like this very easy.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;$(document).ready(function() {&lt;br /&gt;&amp;nbsp; // Do stuff when the document is loaded.&lt;br /&gt;&amp;nbsp; alert(&amp;quot;Hello world!&amp;quot;);&lt;br /&gt;});&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 01 Mar 2009 17:03:52 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1238832 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>... and if you are just</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/loading-more-one-javascript-when-page-loads#comment-1238827</link>
    <description> &lt;p&gt;... and if you are just looking to do stuff after the page is loaded, here is a simple solution: &lt;a href=&quot;http://simonwillison.net/2004/May/26/addLoadEvent/&quot;&gt;Executing JavaScript on Page Load&lt;/a&gt;.&lt;/p&gt;
 </description>
     <pubDate>Sun, 01 Mar 2009 01:05:47 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1238827 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I think if you place a</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/loading-more-one-javascript-when-page-loads#comment-1238815</link>
    <description> &lt;p&gt;I think if you place a script in the body that has &lt;code&gt;onload=init;&lt;/code&gt; and in the init() function you then load the required functions that should work... but it could supercede an onload= in the body tag.&lt;/p&gt;
&lt;p&gt;If that interferes, then you could try just placing the init() function call at the end of the page, but it might fire off early (before page is fully loaded - which might not matter) - in the attached file it is after the body but before the closing html tag.&lt;/p&gt;
&lt;p&gt;here is a discussion of &lt;a href=&quot;http://dean.edwards.name/weblog/2005/09/busted/&quot;&gt;triggering onload when the DOM has loaded&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 27 Feb 2009 23:24:36 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1238815 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
