Talk

Difference between revisions of "Adding JavaScript"

From Joomla! Documentation

Line 11: Line 11:
  
 
Perhaps someone knowledgeable could add some information about Jquery and older versions of Joomla?
 
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 regognise 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)

Revision as of 08:25, 6 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[edit]

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[edit]

JHTML has been renamed to JHtml. Autoloader is still able to regognise 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)