<?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>calling javascript function when my jsp is loaded</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=4918285" />
  <subtitle>calling javascript function when my jsp is loaded</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=4918285</id>
  <updated>2026-06-02T10:46:39Z</updated>
  <dc:date>2026-06-02T10:46:39Z</dc:date>
  <entry>
    <title>RE: calling javascript function when my jsp is loaded</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4918818" />
    <author>
      <name>asile elisa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4918818</id>
    <updated>2010-05-01T19:51:05Z</updated>
    <published>2010-05-01T19:51:05Z</published>
    <summary type="html">thanks&lt;br /&gt;but it does not work may be because I have al older version :I use liferay 4.2&lt;br /&gt;I guess jquery is available since liferay 4.3</summary>
    <dc:creator>asile elisa</dc:creator>
    <dc:date>2010-05-01T19:51:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: calling javascript function when my jsp is loaded</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4918499" />
    <author>
      <name>Sandeep Nair</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4918499</id>
    <updated>2010-05-01T12:59:40Z</updated>
    <published>2010-05-01T12:59:40Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi,&lt;br&gt;&lt;br&gt;Try this&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;script type="text/javascript"&amp;gt;
jQuery(document).ready(function() {
   alert("san-d");
});	
&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Sandeep&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Sandeep Nair</dc:creator>
    <dc:date>2010-05-01T12:59:40Z</dc:date>
  </entry>
  <entry>
    <title>calling javascript function when my jsp is loaded</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4918284" />
    <author>
      <name>asile elisa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4918284</id>
    <updated>2010-05-01T10:42:58Z</updated>
    <published>2010-05-01T10:42:58Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body onload="charger();"&gt;I want to call a javascript function on load page&lt;br&gt;well I tried this:&lt;br&gt;&lt;pre&gt;&lt;code&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;and:&lt;br&gt;&lt;pre&gt;&lt;code&gt;
&amp;lt;script type="text/javascript"&amp;gt;
window.onload=charger(){alert("coucou");}
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;
&amp;lt;script type="text/javascript"&amp;gt; 
window.onload=function() { 
 
	alert("coucou"); 
} 
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;
&amp;lt;script type="text/javascript"&amp;gt; 
window.onload=charger; 
function charger(){ 
	alert("coucou"); 
} 
&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;But nothing works.&lt;br&gt;thanks in avance.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>asile elisa</dc:creator>
    <dc:date>2010-05-01T10:42:58Z</dc:date>
  </entry>
</feed>
