<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>jQuery(document).ready() and window.onload</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=142771" />
  <subtitle>jQuery(document).ready() and window.onload</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=142771</id>
  <updated>2026-04-28T00:10:30Z</updated>
  <dc:date>2026-04-28T00:10:30Z</dc:date>
  <entry>
    <title>RE: jQuery(document).ready() and window.onload</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=157400" />
    <author>
      <name>Brett Conoly</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=157400</id>
    <updated>2007-09-18T17:04:44Z</updated>
    <published>2007-09-18T17:04:44Z</published>
    <summary type="html">Thanks for the help, you were right, it is calling window.onload and jQuery(document).ready().  Unfortunately this didn&amp;#39;t solve my problem.  If you want to know more about it I&amp;#39;m posting the problem again to an fckeditor thread that I have going.</summary>
    <dc:creator>Brett Conoly</dc:creator>
    <dc:date>2007-09-18T17:04:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: jQuery(document).ready() and window.onload</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=150673" />
    <author>
      <name>Brett Conoly</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=150673</id>
    <updated>2007-09-14T20:00:34Z</updated>
    <published>2007-09-14T20:00:34Z</published>
    <summary type="html">Awesome thanks, I&amp;#39;ll try it first thing on monday.  Don&amp;#39;t know why the editor is having problems but thanks again for the help.</summary>
    <dc:creator>Brett Conoly</dc:creator>
    <dc:date>2007-09-14T20:00:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: jQuery(document).ready() and window.onload</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=150652" />
    <author>
      <name>James Hong</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=150652</id>
    <updated>2007-09-14T19:56:50Z</updated>
    <published>2007-09-14T19:56:50Z</published>
    <summary type="html">Brett - &lt;br /&gt;Sorry the html source code didnt print out properly above.  It is correct now.  I create a test.html with this source and placed it in webapps/ROOT/html and accessed it in my browser http://myserver.usc.edu/html/test.html.  It worked in FF 2.0 and IE 7 for me.  BTW I tested this on Liferay 4.3.1.&lt;br /&gt;&lt;br /&gt;I recommend creating a static page using FCK editor and try to run it with jquery.ready.  Hope this helps.&lt;br /&gt;&lt;br /&gt;James</summary>
    <dc:creator>James Hong</dc:creator>
    <dc:date>2007-09-14T19:56:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: jQuery(document).ready() and window.onload</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=150350" />
    <author>
      <name>Brett Conoly</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=150350</id>
    <updated>2007-09-14T17:34:01Z</updated>
    <published>2007-09-14T17:34:01Z</published>
    <summary type="html">Are you trying this in liferay, and what version (i&amp;#39;m using 4.3)?&lt;br /&gt;I have gotten a reply from someone in the jQuery forum telling me that jQuery may have fixed this issue in a later release and I&amp;#39;m not sure what version liferay uses.&lt;br /&gt;Unfortunately I can&amp;#39;t avoid onload functions because the fckeditor uses them to generate all of its content and that&amp;#39;s what&amp;#39;s not working in the browser.&lt;br /&gt;Lastly, the only browser that I have a problem with is Firefox, so are you running your test in it?&lt;br /&gt;Thanks</summary>
    <dc:creator>Brett Conoly</dc:creator>
    <dc:date>2007-09-14T17:34:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: jQuery(document).ready() and window.onload</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=150301" />
    <author>
      <name>James Hong</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=150301</id>
    <updated>2007-09-14T17:23:04Z</updated>
    <published>2007-09-14T17:23:04Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Here is a simple test.  Just create this web page:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;


  &amp;amp;lt;script type="text/javascript" src='/html/js/jquery/jquery.js'/&amp;amp;gt;
  &amp;amp;lt;script&amp;amp;gt;
  window.onload = function () {
    alert("onload");
  }

  $(document).ready(function() {
    alert("ready");
  });
  &amp;amp;lt;/script&amp;amp;gt;


Some text




&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;I get both alerts.  &lt;br&gt;&lt;br&gt;BTW, it would be best to avoid onload if possible.  query's ready function is a better alternative.&lt;br&gt;&lt;br&gt;James&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>James Hong</dc:creator>
    <dc:date>2007-09-14T17:23:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: jQuery(document).ready() and window.onload</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=150298" />
    <author>
      <name>James Hong</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=150298</id>
    <updated>2007-09-14T17:21:02Z</updated>
    <published>2007-09-14T17:21:02Z</published>
    <summary type="html">You are wrong &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;</summary>
    <dc:creator>James Hong</dc:creator>
    <dc:date>2007-09-14T17:21:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: jQuery(document).ready() and window.onload</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=149161" />
    <author>
      <name>Brett Conoly</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=149161</id>
    <updated>2007-09-14T12:06:34Z</updated>
    <published>2007-09-14T12:06:34Z</published>
    <summary type="html">Anyone, and if I&amp;#39;m wrong in this theory feel free to tell me.&lt;br /&gt;Thanks</summary>
    <dc:creator>Brett Conoly</dc:creator>
    <dc:date>2007-09-14T12:06:34Z</dc:date>
  </entry>
  <entry>
    <title>jQuery(document).ready() and window.onload</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=142770" />
    <author>
      <name>Brett Conoly</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=142770</id>
    <updated>2007-09-11T18:33:43Z</updated>
    <published>2007-09-11T18:33:43Z</published>
    <summary type="html">I&amp;#39;m trying to use the fckeditor with liferay and unfortunately it doesn&amp;#39;t work in firefox.  I think I&amp;#39;ve figured out that jQuery&amp;#39;s ready() function actually overrides all window.onload functions.  Because of this I can&amp;#39;t get the editor to work. Does anyone have any ideas on how to get both to work?&lt;br /&gt;Thanks</summary>
    <dc:creator>Brett Conoly</dc:creator>
    <dc:date>2007-09-11T18:33:43Z</dc:date>
  </entry>
</feed>
