Ajax original application code in joomla_PHP tutorial

WBOY
Release: 2016-07-21 15:17:53
Original
949 people have browsed it

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 = <<
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!