How to add javascript to Joomla 2.5 articles Updated on August 16, 2021 by Brad Markle 0 Minutes, 48 Seconds to Read Joomla 2.5 has reached its end of life as for 12/31/2014. Please be advised this may be a security risk to your website. You can view more information about the end of life here. When you’re writing an article in Joomla 2.5 and save the changes, there are various elements that Joomla will naturally remove from your content. For example, if you’ve added any javascript to your article, Joomla will remove your script tags. This is a security measure taken by Joomla, but when you really need to use javascript this does cause headaches for many users. Just like javascript, Joomla removes iframes from code as well. In a previous article we showed you how to allow iframes in your html code, and allowing javascript code follows the same steps. Question: How do I prevent Joomla from removing my javascript code? Answer: Review our article on allowing iframes in your articles. Follow the steps in the article, but substitute <iframe> with <script>. Share this Article Related Articles How to Use the Free Mini Frontpage Extension for Joomla 4.0 How to Change a Joomla 2.5 User’s Email Address How to Configure Joomla 2.5 to Send Email Using SMTP How to Edit a Joomla 3 Template How to install Phoca Gallery for Joomla 2.5 Creating a Menu Item for your Joomla 3 Component Changing Email Settings in Joomla 3.1 Using the Redirect Manager in Joomla 3.1 How to add Bootstrap to a Joomla 3.1 Template How to Use Bootstrap 5.0 Alerts in Joomla 4.0
ReferenceError: jQuery is not defined. http ://edu.*********.in/ it is a diferent formate on a website approches all the interactive…
Hello, We are happy to help, but it is not clear what your question is. Could you please provide additional information and links for us to test and replicate the problem. Thank you, John-Paul
How to use jquery in joomla? when i type below code i got this error “ReferenceError: jQuery is not defined“. <script type=”text/javascript”> jQuery(.’btnLike’).click(function() { var abc = ‘Like’; });</script> Please let me know the solution of this error.
This is because jQuery is not included within your code. You will need to download jQuery and include it within your file.