Skip to content

Web2Coder

My Desktop Blog News Articles Tutorials Links Forum
You are here: Home arrow Tutorials arrow Ajaxify your joomla in 10 Minutes
Ajaxify your joomla in 10 Minutes Print E-mail
Written by Administrator   
Wednesday, 07 March 2007
Tag it:
Stumble
Delicious
Digg
feedmelinks
Reddit
YahooMyWeb
Spurl
Technorati
I think ajaxifying joomla CMS boost up the loading speed of its content. This is my simple solution for ajaxifying joomla. There are several ways like swajax.com or even i saw so many premium templates that take advantage of ajax to make this happen but my solution is really different and it works almost 98% in the whole website. The first problem that exist in these templates was: 1. some of them changed the core of joomla (obviously the worst way) 2. Some couldn't evaluate any Java Script that exist inside parts of joomla. So i solved these problems in a real easy way. You can extend this way to ajaxify any CMS template. Read the whole tutorial and download the ajaxified joomla template FOR FREE!

Please note that this is only an Idea for ajaxifying Joomla, there is no garantee if it works correctly or not and this is under development. We use this opensource template as an example to demonstrate the idea of ajaxifying joomla and you can extend this work on your own templates if you follow this tutorial. We are currenlty developing this template to make it compatible with IE browser. If you think you can help us please do not hesitate to send your modified template to This e-mail address is being protected from spam bots, you need JavaScript enabled to view it

In this tutorial you will learn how to ajaxify a joomla template using Mootools javascript framework.

First take a look at this demo to see if it actually works! http://demo.web2coder.com

Introducing Mootools:

MooTools is a compact, modular, Object-Oriented JavaScript framework designed to make writing extensible and compatible code easier and faster. MooTools lets you get the job done efficiently and effectively.

Step 1: Downloading Motools

Ok, first download the latest mootools version from Here and select ajax and dom from the list. If you think its hard don't worry you can download the whole template later on here that would include mootools as well. but it better than you see how it works so that later on you can download it your self for further works.

Step 2: Knowing some simple points about Ajax

AJAX stands for Asynchronous JavaScript And XML

AJAX is not a new programming language, but a technique for creating better, faster, and more interactive web applications.

With AJAX, your JavaScript can communicate directly with the server, using the JavaScript XMLHttpRequest object. With this object, your JavaScript can trade data with a web server, without reloading the page.

AJAX uses asynchronous data transfer (HTTP requests) between the browser and the web server, allowing web pages to request small bits of information from the server instead of whole pages.

The AJAX technique makes Internet applications smaller, faster and more user-friendly.

Step 3: Ajax Class of mootools

As you know each JS frameworks and toolkits has an ajax class that would make all those hard scripting much easier and accessible for developers and programmers. So by just knowing how to use these kind of frameworks you can easier build up your web application.

The mootools ajax class is a very simple way of making request to server-side scripts.  It has two arguments 1.Request 2.Evalscripst and the following properties:

postBodyif method is post, you can write parameters here.  Can be a querystring, an object or a Form element.
onCompletefunction to execute when the ajax request completes.
update$(element) to insert the response text of the XHR into, upon completion of the request.
evalScriptsboolean; default is false.  Execute scripts in the response text onComplete.
evalResponseboolean; should you eval the whole responsetext?  I dont know, but this option makes it possible.
encodingthe encoding, defaults to utf-8.

Here you can see an easy example:

var myAjax = new Ajax(url, {method: 'get'}).request();
 

Step 4: Starting to ajaxify your template

Overall things that you need to consider:

  1. making a file named ajax.js that contains all the essential functions
  2. including both mootools.js and ajax.js in head of our index.php page
  3. Placing Preloader division where ever you want.
  4. Placing a Division with an ID named "whatever!" i.e <div id="ajaxcontainer"> where the mainbody of our template located and place the actuall mainbody inside it so that when you make a request the response content would be show up itself there.
  5. A simple JS code that would change all the links inside the page to something like this:
  6. javascript:ajaxload('index2.php?option=com_frontpage&Itemid=1')
  7. Deactivate SEO option in Joomla Configuration ( It wouldn't work without that! )

That's it! it wouldn't take that much time when you get all these things ready.

I will not go into details. I made enough documentation of what i have done in the sample template but i will just point to some of the mentioned things.

Please note that the ajaxcontainer should be placed like this:

  1. <div id="ajaxcontainer">
  2. <div id="main_content">
  3. <?php mosMainBody(); ?>
  4. </div>
  5. </div>
 

and also don't forget to place the ajaxlink function before the end of body tag:

  1. <!-- Start of AjaxLink function for changing all the links of page -->
  2. <script type="text/javascript">
  3. <!--
  4. function ajaxLinks () {
  5. for (var i=0;i < document.links.length;i++) {
  6. if(document.links[i].href.substr(0,<?php echo strlen($mosConfig_live_site)?>)=="<?php echo $mosConfig_live_site ?>"||document.links[i].href.substr(0,9)=="index.php:"){
  7. document.links[i].href = "javascript:ajaxload('index2.php"+document.links[i].href.substring(<?php echo strlen($mosConfig_live_site)+10?>)+"')";
  8. }}}
  9. ajaxLinks();
  10. -->
  11. </script>
  12. <!-- End of AjaxLink function -->
  13. </body>
  14. </html>
 

 

That's it. Now you can download the template from here . I made all these things for free, and you can use it where ever you want without my permission, but please don't remove the link in footer.

Please feel free to leave your comments here. or sending me email to This e-mail address is being protected from spam bots, you need JavaScript enabled to view it

 

External Resources

Trackback(0)
Comments (73)Add Comment
IE bug
written by Hamidreza Tavakoli, March 09, 2007
This theme has a bug with IE and im currently trying to fix it. please download this theme again if it doesnt work in IE for you.
Great works!
written by JMY, March 10, 2007
Will try it!

Thanks for your great works!

Rgds,
JMY
its very goooooog
written by fardad, March 11, 2007
hi
sorry i can not type english very nice
but

this script is very good
no very very good

bye
good lock
re: its very goooooog
written by a guest, March 11, 2007
hi
sorry i can not type english very nice
but

this script is very good
no very very good

bye
good lock

Thank you
forum module not working
written by ruchir, March 11, 2007
tempalate is beautiful after i downloaded every thing works except smf-joomla or forums doest work . :roll:
re: forum module not working
written by a guest, March 11, 2007
tempalate is beautiful after i downloaded every thing works except smf-joomla or forums doest work . :roll:

It is not expected that they work, we need to define conditions for urls of different components
re: forum module not working
written by Hamidreza Tavakoli, March 11, 2007
It is not essential to use ajax in every parts of your website there for we can set conditions for different parts of joomla not to use ajax
ajaxified performance
written by anonym, March 12, 2007
Hello, i have one, lame question:
does ajaxifying your joomla template improves performance in any way? (I mean if it reduces bandwidth use by not-loading-whole-page, just the needed element) Or is it just user experience that is improved, and the transfered data amount is the same?
re: ajaxified performance
written by Hamidreza Tavakoli, March 13, 2007
Hello, i have one, lame question:
does ajaxifying your joomla template improves performance in any way? (I mean if it reduces bandwidth use by not-loading-whole-page, just the needed element) Or is it just user experience that is improved, and the transfered data amount is the same?

It Definitely reduces bandwidth use by not loading the whole page, thats why loading speed is much faster. also you can ajaxify other parts rather than this simple idea of loading elements in the first page, like ajaxifying different modules, components and plugins.
tutorial and template question
written by mehd36, March 13, 2007
Hello, three questions :
-what the file ajax.js must contain ?
-what is a Preloader division ? :confused:
-Will your ajax template support Iso-8859-1 ?

Thank you very much, (sorry for my bad english, i'm french ...)
re: tutorial and template ques
written by Hamidreza, March 13, 2007
Hello, three questions :
-what the file ajax.js must contain ?
-what is a Preloader division ? :confused:
-Will your ajax template support Iso-8859-1 ?

1. Ajax.js contains functions that would initialize ajax class of mootools frame work. it also contains a function for switching between two condtions of preloader status.
2.Preloader division or Div is the one that contains the preloading text and image. it looks like this:

Please wait loading...

Note that by default display element of style should be None.
3. I have not test it with ISO-8859-1 so far. you can check it yourself and tell me if it works or not.
...
written by mehd36, March 13, 2007
thank you for your replies. Iso-8859-1 doesn't works !
thank u dear hamid
written by rosa, March 14, 2007
im proud of u.
your little rosa smilies/smiley.gif
problems
written by Jake, March 14, 2007
Hi
First, i really have to say, that you are doing a great job.

But, i have problems with my Joomla. I use your ajax template and nothing happens. When i try to load contents, i become just "Please wait loading..." I try with FF anf IE.

But, if i try your demo site, everything works fine. :confused:

bye
re: problems
written by Hamidreza Tavakoli, March 14, 2007
Hi
First, i really have to say, that you are doing a great job.

But, i have problems with my Joomla. I use your ajax template and nothing happens. When i try to load contents, i become just "Please wait loading..." I try with FF anf IE.

But, if i try your demo site, everything works fine. :confused:

bye

Hi jake, If you use firebug addon in FF please tell me what exactly happens when you click on menu buttons. thanks
SEO
written by Hamidreza Tavakoli, March 14, 2007
Please Deactivate SEO option in configuration if you use SEO or any SEF plugin
re: re: problems
written by a guest, March 14, 2007
Hi
First, i really have to say, that you are doing a great job.

But, i have problems with my Joomla. I use your ajax template and nothing happens. When i try to load contents, i become just "Please wait loading..." I try with FF anf IE.

But, if i try your demo site, everything works fine. :confused:

bye

Hi jake, If you use firebug addon in FF please tell me what exactly happens when you click on menu buttons. thanks

It uses a function, "ajaxload('link')" to load the page.
...
written by karel, March 15, 2007
I have the same problem it works in ie with errors in page ,and it does not work in mozilla at all.
re:
written by a guest, March 15, 2007
I have the same problem it works in ie with errors in page ,and it does not work in mozilla at all.

That's the oposite for me. in firefox it works fine, but in ie it sticks to the "loading" screen
Iso-8859-1 with firefox
written by mehd36, March 16, 2007
Hello,
Firefox doesn't support iso-8859-1, but it works fine with internet explorer ...
Is someone have the same problem ?
...
written by یاسمÙ, March 17, 2007
مم٠و٠از مقاله مفیدتوÙ
UTF8 - wrong behavior
written by Dee, March 17, 2007
:roll:
There is only problem that the template does not remember which encoding is set in Joomla confuguration.
It is possible to set it manually in the browser and off course it is possible to change template and set it permanently.
Good job, it looks good.
ios-8859-1
written by mehd36, March 18, 2007
no, it's not possible to change it manually with the browser, (already in iso-8859-1) , I tried with a modification of my template, it didn't word (it's the same in ie)
re: ios-8859-1
written by mehd36, March 18, 2007
no, it's not possible to change it manually with the browser, (already in iso-8859-1) , I tried with a modification of my template, it didn't word (it's the same in ie)


I also tried document.links.href = "javascript:ajaxload('index2.php"+document.links.href.substring()+"', encoding='ISO-8859-1')"; but it didn't work
a little deeper
written by adroussel, March 18, 2007
Year works fine except for some little other javascript applications like wisiwig editors or CB tabs etc.. but I love it!
My audio payer doesnt stop while loading other components smilies/wink.gif

One important thing! once It's been ajaxified the templates doesn't change any modules any more. I would need to ajaxify at least one module so that It can display different modules according to the componenets. I'will try to investigate on this tomorrow. Any clue or tip we should know for this?
re: a little deeper
written by a guest, March 19, 2007
Year works fine except for some little other javascript applications like wisiwig editors or CB tabs etc.. but I love it!
My audio payer doesnt stop while loading other components smilies/wink.gif

One important thing! once It's been ajaxified the templates doesn't change any modules any more. I would need to ajaxify at least one module so that It can display different modules according to the componenets. I'will try to investigate on this tomorrow. Any clue or tip we should know for this?

Well you are right there should be some changes in modules, there are some ajax modules available like the one that i used in demo.web2coder.com for login. You can download it from here:
http://phlooid.com/phlooid_news/releases/phlogin_1.0_final_released.html
also there is a nice plugin named Smoothgallery for joomla You can download it from here:
http://www.oscandy.com/joomla/22-smoothgallery-lightbox-joomla-mambot/
Thanks
written by Hamidreza Tavakoli, March 19, 2007
This work can be extended i will do it myself in the near future. Thanks for your huge interest and emails that you have sent to me. Please freely express your ideas about this work
WYSIWYG editor doesn\'t load?
written by dbsboy, March 20, 2007
Sorry I'm not sure what i can do with this problem. I love your template so much I'm trying everything to fix it, but the editor just doesn't load and I have no knowledge to fix it.
Hamidreza Tavakoli
written by My Suggestion, March 20, 2007
Sorry I'm not sure what i can do with this problem. I love your template so much I'm trying everything to fix it, but the editor just doesn't load and I have no knowledge to fix it.

My suggestion is that you include all the essential scripts of WYSIWYG in index.php of ajax template, it would probably work, but i think it shouln't have any problem with firefox! do you use FF?
this is no good for the search
written by neog, March 22, 2007
this is no good for the search engine
one page instead of the complete site.. :-(
re: this is no good for the se
written by Hamidreza Tavakoli, March 22, 2007
this is no good for the search engine
one page instead of the complete site.. :-(
I think sitemaps would do the same thing instead, i mean search engines would crawl everything through sitemap
Loading please wait
written by Mike, March 24, 2007
I have added this to my template but the only thing it will do is say "Please wait loading". What am i missing and how can i fix this?
UTF-8 with firefox
written by Mike, March 25, 2007
I have the same problem, this works fine in IE but in forefox it just hangs at please wait.
...
written by Mike, March 25, 2007
4336




re: this is no good for the se

Hamidreza Tavakoli (IP:195.229.241.181) 2007-03-22 09:44:08

neog wrote:this is no good for the search engine
one page instead of the complete site.. :-( I think sitemaps would do the same thing instead, i mean search engines would crawl everything through sitemap



Reply | Quote0 0






]]>0
can\'t show menu
written by kechonius, March 27, 2007
added this template on 1.0.12 installation but horizontal nav bar is not showing, any ideas?
Idea for new Joomla Ajax metho
written by antimatter15, April 07, 2007
what about replacing all the "?" parts of the links to internal components with a "#" and then using XHR to load the page?
XHR = XMLHttpRequest();
back buttom problem
written by joelaapa, April 10, 2007
hey!
in fact, ajax rulez, but it has some problems... like the back buttom.
How can i fix this? it seems that with ajax, the browser history doesnt save user moves.
Help!!! with this problem ajax sucks!!
re: back buttom problem
written by hmrtk, April 10, 2007
hey!
in fact, ajax rulez, but it has some problems... like the back buttom.
How can i fix this? it seems that with ajax, the browser history doesnt save user moves.
Help!!! with this problem ajax sucks!!

Joe Since we make ajax request from index2.php we always have an option for browsing any pages from index.php. so it is possible to place a button for bookmarking any pages. Thanks for you comment i will make this happen in the new template(or maybe component! for ajaxifying joomla).
Good work!
written by miro, April 11, 2007
Hey, I like your site, really really great...
I tested the 'Mittwoch' template you ajaxified - but it doesn't work, only "loading page..." is shown, nothing else happens.
This page works fine, I love it - please keep on ajaxifying templates for Joomla! :-).
thanks and question about subm
written by zaliyanna, April 23, 2007
great , thanks very much for your work

I have one question about main menu I see the parents titles but the subtitles don't appear ....I don't know why ???

thanks again ,
:wink:
Have you fixed IE bug?
written by Khai, May 03, 2007
Please help me, i can not fix IE bug and with FireFox, my page don't work
very good
written by majid, May 31, 2007
thanks very good
salam damet garm ali bod

ya ali
firefox error
written by daniel, June 04, 2007
I notice you aren't using the mootools version on your demo site.

I have written some other ajax stuff in mootools, and it works fine in ff.

Anyway here is the return from the server when you use this template in FF





503 Service Temporarily Unavailable



Service Temporarily Unavailable

The server is temporarily unable to service your

request due to maintenance downtime or capacity

problems. Please try again later.

Firefox fixed!
written by daniel, June 04, 2007
add this to the ajax.js script right after evalScripts: true


postBody: '',

Firefox doesn't like mootools ajax calls with no post body. (but a null one works... smilies/tongue.gif)
By the way
written by daniel, June 04, 2007
That is two single quotes NOT a double quote
Thanks for this by the way.
written by daniel, June 04, 2007
I was writing something similar in mootools but thsi saved me a lot of time. smilies/grin.gif
Slimbox
written by Rafi, June 05, 2007
Hi, i jused this script with slimbox and it does not work. Does Anywone now this Problem?
How do you want to use Slimbox?
written by Administrator, June 05, 2007
Slimbox
written by Rafi, June 05, 2007
Hi, i jused this script with slimbox and it does not work. Does Anywone now this Problem?

if you are trying to use slimbox first you need to be aware of using the same ajax toolkit that here i have used mootools and select all the essential items in its download section. second you need to know how you want to use it; if you are intended to use slimbox by HTML add the slimbox function in onClick event of anchor tag, there you wouldnt face any problem and if you want to use in href try to use the same way as all the rest of links like hre f ="javascript:call your function()"
...
written by Administrator, June 05, 2007
Daniel: Actually i do not support this tutorial since i have been working on Joomlajax mambot much more professionally and i think that mambot really works for ajaxifying joomla. I know this has some compatibilty issues with some browsers.
slimbox
written by Rafi, June 05, 2007
You don´t understand my problem read this: http://forum.mootools.net/viewtopic.php?id=3507
my question about this script
written by bhaveshnakrani, June 06, 2007
Hello there ,

I had use this template it is really good but I am facing one problem that as joomla has only one page but I have try to make different look on different section for
that I have pass sectionid in querystring but now after using ajax my querystring is not passing in URL so I cant change my header can you tell me from your function
where can I get the actual links and get the section id from the href without reloading......
ajax.js
written by bb, June 09, 2007
Hello!! Please can you add somewhere the file ajax.js to download. Sorry, I'm not a developper, so I have no idea of how to build this file... smilies/undecided.gif
Tks
index2.phpp ...
written by Rwk, June 17, 2007
Great work!! but i have problem in some subcategories. I found that some links is pointing at index2.phpp?...... is normal? how can i fix it?
is here? strlen($mosConfig_live_site) 10

i tried with 9 ... but so every links containts phpp .
Can't load content
written by ag2simal, July 07, 2007
Just like some here already said, I can not load content into main body. Image preloader and "Please wait loading" is just standing there, and nothing happens.

please help ASAP
help
written by sip4lui, July 07, 2007
hello sir help me
my joomla work to ajaxify, in firefox, IE and opera, but if i click my news in to news having link to email example [ This e-mail address is being protected from spam bots, you need JavaScript enabled to view it ] in my news the ajaxify not work why ?
can help me, sorry my english to bad

thx

Error: unknown runtime error
written by masterbct, July 17, 2007
I have a bug width IE:
Error: unknown runtime error

How can I Fix this bug?
Thank!!!
banner links broken - fix
written by Christophor RIck, July 29, 2007
So the theme is fantastic and is exactly what I was looking for, but it would convert all links which broke the banners module of joomla. so I fixed it with this.

function ajaxLinks () {
for (var i=0;i < document.links.length;i ) {
com_b="com_banners";
if ((document.links.href.match(com_b))!==null){
document.links.href = document.links.href;
}
else if(document.links.href.substr(0,)==""||document.links.href.substr(0,9)=="index.php:"){
document.links.href = "javascript:ajaxload('index2.php" document.links.href.substring() "')";
}}}
ajaxLinks();


if you look I just added my own if statement and made the original an else if. Then I had it match on a regularexpression. in this case com_banners. If it finds it then the match is not null and the link remains the standard link. You can modify this for any module you want to use.

Chris
Error in pages having Email addressess.
written by Sucheta, August 06, 2007
Hello
Thank u very much for such a helpful tutorial. I have implemented this in my site and its working absolutely fine in both FF and IE, Except a small problem. That i m unable to fix and need ur help.

Whenever i include an email address in any content item , its not showing the content of the item on clicking on that respective item in main menu. In FF it is showing a blank window with only the email address in the upper left portion and in IE it is showing the content but at the position of email address it is showing "The email address is being protected from spam bots, you need Javascript enabled to view it".

I have seen that whenever i remove the '@' sign from the email address , it is working fine. But as we all know '@' is must in any email address, so will have to keep it in the content.

I am unable to solve the problem. It would be really helpful if anybody can help me.

Thanks
Joomlajax
written by Hamidreza Tavakoli, August 06, 2007
Thats why i camy up with Joomlajax plugin and i have solved many of this problems, have you ever used that plugin?
Error in pages having Email addressess.
written by sucheta, August 06, 2007
Thank you for your reply. I Install the Joomlajax mambot as you said. Alas my problem is not solved. On activating the mambot the site is not ajaxified. It is reloading its contents.

Thanks

Error in pages having Email addressess.
written by sucheta, August 23, 2007
Hi
Lastly i m able to find the way to reload the pages containing '@ ' and other pages to be ajaxified.

function ajaxLinks () {
for (var i=0;i < document.links.length;i ) {

if(document.links.href.substr(0,)==""||document.links.href.substr(0,9)=="index.php:"){

document.links.href = "javascript:ajaxload('index2.php" document.links.href.substring() "')";

/* code to reload contents/pages having '@' , first check the contents id from the browser and then check if document .link.href is that content, if it is true then deajaxify (i.e reload ) the specific content */

if(document.links.href == "javascript:ajaxload('mat3/index2.php?option=com_content&task=view&id=36&Itemid=55')")
{
document.links.href = "index.php?option=com_content&task=view&id=36&Itemid=55";
}

}}}

Now i m facing another problem. After ajaxifying the joomla site it is not showing images in the contents.
I have uploaded images in the /media/stories/mat3/ directory. And included images in the contents using Insert/Edit image.I have no idea , how to solve this. please help me.

Thanks
Showing images after ajaxifying
written by sucheta, August 27, 2007
Hi
First of all thanks a lot for this wonderful tutorial ones again. It is working so nicely.
Now I dont have any problems in my site.
The images which were not coming in the content items after ajaxifying the site is solved now. I have included {mosimage} in the position of images in content items. And it is showing the images.

Thanks
Nice
written by Andrei Baboi, September 22, 2007
Nice works, it works great smilies/cheesy.gif
یک پیام شخصی
written by توت فرنگی, October 14, 2007
سلام من واقعا به شما افتخار می کنم هم وطن عزیزم smilies/cool.gif smilies/cool.gif

دوست دارم بیشتر با شما آشنا بشم با ایمیل باهاتون در ارتباطم مرسی مصطفی زرگران
SEO/SEF workaround
written by ORIGO Web, October 26, 2007
Hi, for all those who need Search Engine Friendly URLs for fallback or any other reasons, here is a solution:

1. Open .htaccess and replace every occurrence of index.php with index2.php
2. Change the last line of the ajaxLinks() javascript which is inside of your template index.php to this:

document.links.href = "javascript:ajaxload('" document.links.href.substring() "')";

That's it, SEF and AJAX got best friends now. Much love.
RE: SEO/SEF workaround
written by ORIGO Web, October 26, 2007
Woo sth went wrong, it should be:

2. document.links.href = "javascript:ajaxload(' " document.links.href.substring( ?php echo strlen($mosConfig_live_site); ?) " ')";

PS.: Don't forget the less-than-sign < before ?php and greater-than-sign > after ?
Founder
written by neil2007, January 20, 2008
Great. I am not a techie, but is there a joomla site with AJAX that demos more functionality.
Template worked very well with only a few changes to my site
written by aFewTips.com, January 25, 2008
This worked very well for me. You can see the final results at afewtips.com
The biggest issues are urls and things that are updated when the page changes.
For example: related articles wouldn't update because the main page was only updating the article and not refreshing the page.
Also, I had links already in Google that pointed to the page with SEF friendly links. Made the page refresh within the page. Had to redirect all inbound links to the main page. Which is better than having a broken site for inbound traffic.
I have heard that Ajax doesn't play well with SEO, but as long as when Javascript is turned off the site still works and all the info is available (may look different) spiders should be able to index it. And when I turn off Javascript, the site functions well - just refreshes.
Very happy with this approach and template - thanks very much for all of your hard work.
afewtips.com
Make sure you have a solution for Login page
written by aFewTips.com, January 25, 2008
Login doesn't work and the link that he points to above is down and has been for a very long time.
So, if you can find an Ajax friendly login, then you are good to go.
newbe
written by blank, February 03, 2008
please give me more tutorial for template ajax... thanks smilies/kiss.gif
...
written by محمد خدادادی, June 04, 2008
سلام
امید وارم هر روز موفق و موفق تر شوید smilies/grin.gif
Unknown runtime error in IE
written by guest, July 29, 2008
Hi,
How to remove unknown runtime error in IE. I have seen the error is due to media/system/js/mootools.js. I have tried to include mootools.js file only for Administrator by adding this lines in libraries/joomla/html/html/behaviour.php.

$user =& JFactory::getUser();
if($user->get('name') == 'Administrator')
JHTML::script('mootools.js', 'media/system/js/', false);

Still mootools.js is included and getting IE errors. Please help.
How do i disable the ajax in a specific module...?
written by Rich, September 17, 2008
Hello. I am new... not smart.. very dumb...

How do I disable the ajax in a specific module, so that i can make a normal link?

I am trying to make a lightbox and your AWESOME ajax script keeps taking over and making the link strange... BUT I LOVE IT, Great Job!!!!!!!! smilies/smiley.gif

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

security code
Write the displayed characters


Copyright 2007. All Rights Reserved.
busy
Last Updated ( Friday, 27 April 2007 )
 

Login


[+]
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size
  • fresh color
  • hot color
  • natural color
  • dark color