<?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 in theme does not include</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=43096931" />
  <subtitle>Javascript in theme does not include</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=43096931</id>
  <updated>2026-05-20T13:14:06Z</updated>
  <dc:date>2026-05-20T13:14:06Z</dc:date>
  <entry>
    <title>RE: Javascript in theme does not include</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43100557" />
    <author>
      <name>Zsolt - Jácint Balogh</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43100557</id>
    <updated>2014-09-24T07:52:37Z</updated>
    <published>2014-09-24T07:52:37Z</published>
    <summary type="html">I don&amp;#39;t know why but the problem was that I closed the script tag with /&amp;gt; instead of &lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;So if somebody has the same problem first try to close the javascript tag with &amp;lt;/script&amp;gt; instead of /&amp;gt;&lt;br /&gt;&lt;img alt="emoticon" src="@theme_images_path@/emoticons/angry.gif" &gt;&lt;img alt="emoticon" src="@theme_images_path@/emoticons/angry.gif" &gt;&lt;img alt="emoticon" src="@theme_images_path@/emoticons/angry.gif" &gt;&lt;img alt="emoticon" src="@theme_images_path@/emoticons/angry.gif" &gt;&lt;br /&gt;&lt;br /&gt;Edit: if somebody can give me an explanation that should be great.</summary>
    <dc:creator>Zsolt - Jácint Balogh</dc:creator>
    <dc:date>2014-09-24T07:52:37Z</dc:date>
  </entry>
  <entry>
    <title>Javascript in theme does not include</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43096930" />
    <author>
      <name>Zsolt - Jácint Balogh</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=43096930</id>
    <updated>2014-09-24T07:01:35Z</updated>
    <published>2014-09-24T07:01:35Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi guys,&lt;br&gt;&lt;br&gt;I created a big javascript file and I added it to my theme. &lt;br&gt;I included it in the portal_normal.vm and it works just fine but now my file is quite a big and I want to separate the parts. So I created 3 js file from the big one, I included each 3 file in the portal_normal.vm but I can see only the first file included to the page.&lt;br&gt;&lt;br&gt;I don't know what is the problem and I'm going crazy because I spent more then a half day doing this.&lt;br&gt;&lt;br&gt; Here is my portal_normal.vm file&lt;br&gt;&lt;pre&gt;&lt;code&gt;
	&amp;lt;title&amp;gt;$the_title - $company_name&amp;lt;/title&amp;gt;

	&amp;lt;meta content="initial-scale=1.0, width=device-width" name="viewport"&amp;gt;

	$theme.include($top_head_include)
	
	##Jquery plugin. 
	&amp;lt;script src="$javascript_folder/jquery/jquery-1.9.1.min.js"&amp;gt;&amp;lt;/script&amp;gt;
	##Google plugin used for autocomplete. Maybe can be used for the googple maps portlet too
	&amp;lt;script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;amp;amp;libraries=places"&amp;gt;&amp;lt;/script&amp;gt;
	##Autocomplete plugin
	&amp;lt;script src="$javascript_folder/autocomplete/googleautocomplete.js"&amp;gt;&amp;lt;/script&amp;gt; ##included
	&amp;lt;script src="$javascript_folder/autocomplete/streetportlet.js"&amp;gt;&amp;lt;/script&amp;gt;              ## not included
	&amp;lt;script src="$javascript_folder/autocomplete/submissionportlet.js"&amp;gt;&amp;lt;/script&amp;gt;     ## not included
	

&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;On the file system and on the deployed war file all the three file are present on the same folder. &lt;br&gt;No error message in the firebug. (except the missing function definition)&lt;br&gt; &lt;br&gt;&lt;br&gt;The modifications in the googleautocomplete.js are present. &lt;br&gt;I cleared the cache of the browser and I tried in other browsers but the problem still exist.&lt;br&gt;I cleared my tmp folder, undeployed the theme and redeployed the theme and restarted the server many times  but no success...&lt;br&gt;I tried it in other machine but still not working. &lt;br&gt;&lt;br&gt;&lt;br&gt;I'm using &lt;br&gt;Liferay 6.2-ga2&lt;br&gt;Jboss 7.1.1&lt;br&gt;&lt;br&gt;What can be the problem? &lt;br&gt;&lt;br&gt;Any help, hint are really appreciated!&lt;br&gt;Regards,&lt;br&gt;Zsolt&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Zsolt - Jácint Balogh</dc:creator>
    <dc:date>2014-09-24T07:01:35Z</dc:date>
  </entry>
</feed>
