Amsterdamsche Football Club Ajax (), also referred to as AFC Ajax, Ajax Amsterdam or simply Ajax (after the legendary Greek hero), is a professional football club from Amsterdam, Netherlands. [http://en.wikipedia.org/wiki/AFC_Ajax]
I did install yesterday evening the latest version of !JoomlaComment
!JoomlaComment is one of the first extensions for Joomla,that let you comment under articles.
The !JoomlaComment system can be installed on any joomla website within seconds! Make
your website more interactive!
Main Features:
Joomla support templates, depending on which templates you use
You may behind the scene include another additional AJAX library in Joomla!® frontend, this lead to performance issues:
If !JoomlaComment use JQuery 1.1.4 and not the AJAX library of Joomla!, aka Mootools 1.11. Another huge JavaScript files that make my server busier!
Since any static files can be offloaded to another server to gain more speed. For example, any static images, JavaScript or CSS files can be moved to a different server for more speed.
In order to be able to offload this JavaScript library to Google code, you’ll have to do the following:
In the template you are using, for example in components/com_comment/joscomment/templates/JQdefault-emotop/index.html
Search for
{library}
<script type="text/javascript" src="components/com_comment/joscomment/jscripts/jquery-1.1.4.pack.js"></script>
<script>jQuery.noConflict();</script>
{/library}
and replace with
{library}
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script>jQuery.noConflict();</script>
{/library}
Note that I use here the latest JQuery version (1.3.2) and not the default version of !joomlaComment (1.1.4), here is why
I did optimize a bit my Joomla! homepage in the last few days. This has been achieved with
Click read more to apply the same for your internet site.
Read more: Optimize Joomla! site
Following the Preview of SecurityImages 5.2.0, I am currently developing a proof of concept using the Ajax library JQUERY
jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.
I want to allow generated captcha to be checked asynchronously without needing submit of whole page. This is a major complain since the beginning of SecurityImages, as currently users lost their entries in the form in case the captcha challenge get refused.
A lot more check are also done NOW in the Diagnostics page:
AND
A new API inspired from recaptcha.net that will allow me to integrate new system in future without being limited to an image (why not having a flash or video in future?). This API fully use the Joomla! event system so less code to write for all 3rd party developers and less dependencies.
Stay tuned!
![]() | I am restarting the development of OpenComment, and found that the
existing code wont be practical without using AJAX. That's why I am now
integrating AJAX in openComment where it make sense:
|
xajax is an open source PHP class library that allows you to easily create powerful, web-based, AJAX applications using HTML, CSS, JavaScript, and PHP. Applications developed with xajax can asynchronously call server-side PHP functions and update content without reloading the page.
The xajax PHP object generates JavaScript wrapper functions for the PHP functions you want to be able to call asynchronously from your application. When called, these wrapper functions use JavaScript's XMLHttpRequest object to asynchronously communicate with the xajax object on the server which calls the corresponding PHP functions. Upon completion, an xajax XML response is returned from the PHP functions, which xajax passes back to the application. The XML response contains instructions and data that are parsed by xajax's JavaScript message pump and used to update the content of your application.

In this series of post I will outline some common techniques to help Joomla extensions development.
As you know Joomla is shipped with Mootools library which assign $ also to Ajax. Here is 2 tips that will allow you to use jQuery scripts without any modifications (most of the time you will find tips to assign jQuery to something else than $ and rewrite your scripts)
First it is recommended to include always mootools first to avoid jQuery conflict issues
JHTML::_('behavior.mootools');
$document = JFactory::getDocument();
$document->addScript(JURI::root() . "media/com_cedtag/js/jquery.1.7.2.min.js");
then to run jQuery in noConflict mode. Note that here I do not assign jQuery to any alias.
$document->addScriptDeclaration("jQuery.noConflict();");
Till here, this is what you will find on all Joomla forums, posts over the internet. The last tips is what make the difference!
Instead of using a different alias for the jQuery object (when using noConflict), you can write your jQuery code by wrapping it all in a closure. This can be done in the document.ready function
$script = "jQuery(function($) { $();
});"; $document->addScriptDeclaration($script);
This way you are not force to rewrite your scripts to use another alias (replacing $ with jquery alias for example in all your scripts). This make inclusion of jQuery really easy!
Happy Coding!
Privacy Statement | Copyright Notice | Licenses
© 1999-2012 Waltercedric.com. Designed by Cédric Walter. Sitemap
Reproduction without explicit permission is prohibited. All Rights Reserved. All photos remain copyright © their rightful owners. No copyright infringement is intended.
Disclaimer: The editor(s) reserve the right to edit any comments that are found to be abusive, offensive, contain profanity, serves as spam, is largely self-promotional, or displaying attempts to harbour irrelevant text links for any purpose.