<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Joomla! 1.5 extensions development hints</title>
	<atom:link href="http://blogs.helion-prime.com/2008/05/12/joomla-15-extensions-development-hints.html/feed" rel="self" type="application/rss+xml" />
	<link>http://blogs.helion-prime.com/2008/05/12/joomla-15-extensions-development-hints.html</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 24 Dec 2011 17:51:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: cellulite</title>
		<link>http://blogs.helion-prime.com/2008/05/12/joomla-15-extensions-development-hints.html/comment-page-1#comment-2469</link>
		<dc:creator>cellulite</dc:creator>
		<pubDate>Tue, 27 Sep 2011 10:10:26 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.helion-prime.com/?p=11#comment-2469</guid>
		<description>Excellent post. I used to be checking constantly this weblog and I am impressed! Very helpful information specifically the final section :) I handle such info a lot. I was seeking this certain info for a long time. Thank you and best of luck.</description>
		<content:encoded><![CDATA[<p>Excellent post. I used to be checking constantly this weblog and I am impressed! Very helpful information specifically the final section <img src='http://blogs.helion-prime.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I handle such info a lot. I was seeking this certain info for a long time. Thank you and best of luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex.shapovalov</title>
		<link>http://blogs.helion-prime.com/2008/05/12/joomla-15-extensions-development-hints.html/comment-page-1#comment-1276</link>
		<dc:creator>alex.shapovalov</dc:creator>
		<pubDate>Tue, 02 Nov 2010 12:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.helion-prime.com/?p=11#comment-1276</guid>
		<description>to Amrit.

Unfortunately there is good way currently to make it.
You have to use different workarounds.

For example you can add additional function to controller:
function some_function() {
  header(&#039;Content-Type: text/javascript; charset=utf-8&#039;);
  require_once(&#039;PATH_TO_YOUR_JS&#039;);
  die();
}

And then add it to your page:
$variable = JFactory::getDocument();
$variable-&gt;addScript(JRoute::_(&#039;index.php?option=com_SOME_COM_OBJECT&amp;task=some_function&#039;, false));</description>
		<content:encoded><![CDATA[<p>to Amrit.</p>
<p>Unfortunately there is good way currently to make it.<br />
You have to use different workarounds.</p>
<p>For example you can add additional function to controller:<br />
function some_function() {<br />
  header(&#8216;Content-Type: text/javascript; charset=utf-8&#8242;);<br />
  require_once(&#8216;PATH_TO_YOUR_JS&#8217;);<br />
  die();<br />
}</p>
<p>And then add it to your page:<br />
$variable = JFactory::getDocument();<br />
$variable->addScript(JRoute::_(&#8216;index.php?option=com_SOME_COM_OBJECT&#038;task=some_function&#8217;, false));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amrit</title>
		<link>http://blogs.helion-prime.com/2008/05/12/joomla-15-extensions-development-hints.html/comment-page-1#comment-1266</link>
		<dc:creator>Amrit</dc:creator>
		<pubDate>Wed, 27 Oct 2010 19:34:40 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.helion-prime.com/?p=11#comment-1266</guid>
		<description>Hi there.

Great site for some quick hints on developing for Joomla.

I am curious though. I am trying to internationalize my javascripts, without adding extra javascript declarations, eg I would like to avoid using javascript for internationalizing labels.

This is what I would like to avoid:
$doc = JFactory::getDocument();
$doc-&gt;addScriptDeclaration(&#039;window.mymodname = {
label1: &quot;&#039;.JText::_(&#039;MOD_MYMODNAME_LABEL1&#039;).&#039;&quot;,
label2: &quot;&#039;.JText::_(&#039;MOD_MYMODNAME_LABEL2&#039;).&#039;&quot;
};&#039;);

I want to be able to use my Jtext in my javascripts plain and simple, but it seems Joomla won&#039;t let me.
I&#039;m guessing Joomla won&#039;t parse javascriptfiles, hence the Jtext won&#039;t be read.

Maybe I´m going about it the wrong way, maybe I should be looking at the construction of the javascript instead?

Cheers</description>
		<content:encoded><![CDATA[<p>Hi there.</p>
<p>Great site for some quick hints on developing for Joomla.</p>
<p>I am curious though. I am trying to internationalize my javascripts, without adding extra javascript declarations, eg I would like to avoid using javascript for internationalizing labels.</p>
<p>This is what I would like to avoid:<br />
$doc = JFactory::getDocument();<br />
$doc-&gt;addScriptDeclaration(&#8216;window.mymodname = {<br />
label1: &#8220;&#8216;.JText::_(&#8216;MOD_MYMODNAME_LABEL1&#8242;).&#8217;&#8221;,<br />
label2: &#8220;&#8216;.JText::_(&#8216;MOD_MYMODNAME_LABEL2&#8242;).&#8217;&#8221;<br />
};&#8217;);</p>
<p>I want to be able to use my Jtext in my javascripts plain and simple, but it seems Joomla won&#8217;t let me.<br />
I&#8217;m guessing Joomla won&#8217;t parse javascriptfiles, hence the Jtext won&#8217;t be read.</p>
<p>Maybe I´m going about it the wrong way, maybe I should be looking at the construction of the javascript instead?</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Webasyl</title>
		<link>http://blogs.helion-prime.com/2008/05/12/joomla-15-extensions-development-hints.html/comment-page-1#comment-1250</link>
		<dc:creator>Webasyl</dc:creator>
		<pubDate>Sat, 02 Oct 2010 12:48:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.helion-prime.com/?p=11#comment-1250</guid>
		<description>Joomla is definitely the best CMS ever</description>
		<content:encoded><![CDATA[<p>Joomla is definitely the best CMS ever</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andria Furlough</title>
		<link>http://blogs.helion-prime.com/2008/05/12/joomla-15-extensions-development-hints.html/comment-page-1#comment-990</link>
		<dc:creator>Andria Furlough</dc:creator>
		<pubDate>Fri, 14 May 2010 19:57:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.helion-prime.com/?p=11#comment-990</guid>
		<description>I like your website.. It had some greatinformation I am excited to see the next update.</description>
		<content:encoded><![CDATA[<p>I like your website.. It had some greatinformation I am excited to see the next update.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

