Home  >  Article  >  Backend Development  >  Ajax original application code in joomla_PHP tutorial

Ajax original application code in joomla_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:17:53950browse

Today, the author is here to talk about the implementation of ajax using the mootools javascript library that comes with joomla. Since it is a built-in library, it does not matter whether there is jquery or not. So how to implement it? First, create an ajax get button. Generally, we are in It is used in editing components, so the file is generally in views tmpldefault.php:

Copy code The code is as follows:



$doc =& JFactory ::getDocument();
$script = <<