Actions

Talk

Difference between revisions of "Adding JavaScript"

From Joomla! Documentation

(New page: what page should we keep ? this one http://docs.joomla.org/Adding_JavaScript or this one http://docs.joomla.org/Adding_JavaScript_and_CSS_to_the_page ?)
 
m (JHtml in Joomla 3.x)
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
http://docs.joomla.org/Adding_JavaScript_and_CSS_to_the_page
 
http://docs.joomla.org/Adding_JavaScript_and_CSS_to_the_page
 
?
 
?
 +
 +
== Jquery in Joomla 1.5 & 2.5 ==
 +
 +
Given the fact that most users still use Joomla 1.5. and 2.5; and given the popularity of Jquery framework the information about Jquery is very laconic. What about use of Jquery in older versions of Joomla? At the moment I'm trying to add Jquery to my site which runs on Joomla 1.5.26 and it is not that easy to add Jquery scripts to it, I had to install some extension Jquery Easy but this does not fix a problem.
 +
 +
Perhaps someone knowledgeable could add some information about Jquery and older versions of Joomla?
 +
 +
== JHtml in Joomla 3.x ==
 +
 +
JHTML has been renamed to JHtml. Autoloader is still able to recognise the old capitalized name.
 +
 +
JHtml::script() doesn't support a string as the second parameter anymore. This used to be the path to the file in Joomla 1.5 and has been removed now.
 +
[[User:Ramyar|Ramyar]] ([[User talk:Ramyar|talk]]) 08:25, 6 August 2013 (CDT)

Latest revision as of 04:17, 22 August 2013

what page should we keep ? this one http://docs.joomla.org/Adding_JavaScript or this one http://docs.joomla.org/Adding_JavaScript_and_CSS_to_the_page ?

Jquery in Joomla 1.5 & 2.5

Given the fact that most users still use Joomla 1.5. and 2.5; and given the popularity of Jquery framework the information about Jquery is very laconic. What about use of Jquery in older versions of Joomla? At the moment I'm trying to add Jquery to my site which runs on Joomla 1.5.26 and it is not that easy to add Jquery scripts to it, I had to install some extension Jquery Easy but this does not fix a problem.

Perhaps someone knowledgeable could add some information about Jquery and older versions of Joomla?

JHtml in Joomla 3.x

JHTML has been renamed to JHtml. Autoloader is still able to recognise the old capitalized name.

JHtml::script() doesn't support a string as the second parameter anymore. This used to be the path to the file in Joomla 1.5 and has been removed now. Ramyar (talk) 08:25, 6 August 2013 (CDT)