Home API Docs Linkr Client Side Javascript
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


Linkr 2.3.7 (20 May 2010) is finally out. This release tackles many bugs and will make the overall usage a little smoother.