Home API Docs Linkr Client Side Javascript
Would you use Linkr in Joomla! 1.7?
 
Attention: open in a new window.PDFPrintEmail
Article Index
Javascript
Variables
Basic
Strings
Database
HTML
Miscellanous
All Pages

Linkr API: Client Side Javascript

Linkr uses the MooTools javascript library (included in every Joomla! installation) to display content. All AJAX External link requests are made through the LinkrHelper variable.
Note: Joomla! uses MooTools 1.11

Related Readings:

The LinkrHelper variable

All AJAX requests and Linkr methods are called through the LinkrHelper object. It should be available as soon as your script is included (see Linkr plugin events) but note that some methods (e.g. LinkrHelper.getL18N) might not work as expected until the page is loaded. The way to check that the page is fully loaded is with the window's domready event External link:
window.addEvent('domready', function() {
 // This code is executed once the page is loaded.
});

As of Linkr 2.3.4, Linkr can be used instead of LinkrHelper (both will work):
alert(Linkr.getVersion()); // Alert the API version
alert(LinkrHelper.getVersion()); // Equivalent


uBar 0.9 has been released. This is a beta version; there are still some bugs to be worked out. Keep that in mind before using it on a live site.