<?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>javascript file in hook</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=6888281" />
  <subtitle>javascript file in hook</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=6888281</id>
  <updated>2026-04-07T01:52:31Z</updated>
  <dc:date>2026-04-07T01:52:31Z</dc:date>
  <entry>
    <title>RE: javascript file in hook</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7189733" />
    <author>
      <name>Brahim TARNAOUI</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7189733</id>
    <updated>2011-01-21T09:15:39Z</updated>
    <published>2011-01-21T09:15:39Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi,&lt;br&gt;also we can use this:&lt;br&gt;in liferay-portlet.xml this tags:&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;header-portlet-javascript&amp;gt;/js/main.js&amp;lt;/header-portlet-javascript&amp;gt;
or
&amp;lt;footer-portlet-javascript&amp;gt;/js/main.js&amp;lt;/footer-portlet-javascript&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;it work good, i tested&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Brahim TARNAOUI</dc:creator>
    <dc:date>2011-01-21T09:15:39Z</dc:date>
  </entry>
  <entry>
    <title>RE: javascript file in hook</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7173625" />
    <author>
      <name>Mati-ur-Rehman Khan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7173625</id>
    <updated>2011-01-20T12:16:56Z</updated>
    <published>2011-01-20T12:16:56Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;You can fix it using liferay-util:html-top tag in your jsp file.&lt;br /&gt;&lt;br /&gt;&amp;lt;liferay-util:html-top&amp;gt;&lt;br /&gt;   &amp;lt;script src=&amp;#34;/html/js/my.js&amp;#34; type=&amp;#34;text/javascript&amp;#34;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/liferay-util:html-top&amp;gt;&lt;br /&gt;&lt;br /&gt;Hope it helps.</summary>
    <dc:creator>Mati-ur-Rehman Khan</dc:creator>
    <dc:date>2011-01-20T12:16:56Z</dc:date>
  </entry>
  <entry>
    <title>javascript file in hook</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=6888280" />
    <author>
      <name>Brahim TARNAOUI</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=6888280</id>
    <updated>2010-12-22T15:15:36Z</updated>
    <published>2010-12-22T15:15:36Z</published>
    <summary type="html">hi everybody,&lt;br /&gt;&lt;br /&gt;i use a hook for customizing the calender portlet, and i add a javascript functions in a file named functions.js, when i will make my file, in hook or directly with the Liferay&amp;#39;s js? and how  can&amp;#39;i including in my jsp ovveriding by hook, directly in js or via a configuration file like liferay-portlet.xml or another?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;thx in advance</summary>
    <dc:creator>Brahim TARNAOUI</dc:creator>
    <dc:date>2010-12-22T15:15:36Z</dc:date>
  </entry>
</feed>
