How to make jQuery Ajax call in Joomla
If your are a Joomla developer sometimes you encounter a task which needs to produce jQuery Ajax call in order to add some additional content to a Joomla article page or just to make some operation in a background. In this case this article will help you to implement this feature on a page.
So first create an empty file called: view.ajax.php and upload it to YOUR_SITE_HOME/components/com_content/views/article folder Add the php code below into this file:
'. $article->title .''; } echo '
'.$html.''; jexit(); } } ?>
Click the button above to see how it makes a jQuery Ajax call and adds Joomla articles titles to the bottom of the page.