Ajaxit is a JQuery plugin that converts your site to an ajax site without having to rewrite it.
- Auto handling of javascript and CSS.
- Supports history (back and forward buttons).
- Supports ie6, 7, 8, chrome and firefox 3.x.
- No need to recode your site to use this plugin.
- SEO friendly.
<script type="text/javascript" src="/path/to/plugin/jquery.history.js"> </script> <script type="text/javascript" src="/path/to/plugin/ajaxit.js"> </script>
Initialize the plugin as follows:
<script type="text/javascript">
$.ajaxIt.ajaxItArea = "";
$.ajaxIt.basePath = "/";
$.ajaxIt.onSuccess = function () {
// This will be executed after a successful ajax call
};
$.ajaxIt.onStart = function () {
// This will be executed in parallel with the ajax call
};
$.ajaxIt.onError = function (event, request, options, error) {
// This will be executed in case of an ajax error
};
$.ajaxIt.excludeURL = new Array('products/flashfirebug/demo');
$.ajaxIt.init();
</script>
- $.ajaxIt.ajaxItArea
a comma separated list of JQuery selectors to replace on page refresh, if it fails to find any of these selectors between pages, it will replace the body
e.g : $.ajaxIt.ajaxItArea = "#wrapper, body div#main.sidebar";
- $.ajaxIt.basePath
The basepath of your site, if your site is on a main domain, this will be /, if subfolder, it will be /subfolder/
$.ajaxIt.basePath = "/subfoldername/";
- $.ajaxIt.onSuccess
This will be executed after a successful ajax call
$.ajaxIt.onSuccess = function () {
alert(ajax executed);
};
- $.ajaxIt.onStart
This will be executed in parallel with the ajax call
$.ajaxIt.onStart = function () {
alert("in parallel with the ajax call");
};
- $.ajaxIt.onError
This will be executed in case of an ajax error
$.ajaxIt.onError = function (event, request, options, error) {
alert("there was an error with the call");
};
- $.ajaxIt.excludeURL
To exclude URLs from the ajaxification
$.ajaxIt.excludeURL = new Array('products/flashfirebug/demo');
- $.ajaxIt.init();
To initialize the plugin
$.ajaxIt.init();
Ashraf Amayreh
Developers
Waleed Qadi
Fareed Namrouti
Extension Web Design and Visual Elements
Mohamed Mahmoud
Am not able to download the ajaxit plugins from jquery site. Please upload them or mail them.
The Script does work. Drupal is genereally not needed. As for Drupal related questions you are more likely to recieve an answer on the Drupal issue quere. https://drupal.org/project/issues/ajaxit?categories=All
Hi guys
could u email us the jquery plugin of ajaxit? the http://plugins.jquery.com/project/ajaxit site is down and we cannot get it. we were looking for such a functionality and are considering contributing to it
thanks!
Ashraf,
Any kind of time frame on when these critical fixes might be posted?
Hello all, you initialize the script in the page.tpl.php in the head section. We're going to be posting an updated ajaxit jquery plugin soon with a number of critical fixes.
Well it appears that, if i understood correctly, it doesn't need to be initialized manualy when the drupal module is in use. But i still just get a blank page. All the content is loaded, but seems to be hidden. Any suggenstions?
Im on drupal 6, tried different jqery update versions and no luck whatsoever.
Hey,
where exactly do i initialize the script?
I would love to ajaxify my site but unfortunately I'm a bit clueless when it comes to web expertise :)
Greetz to you and thanks for your work!
Does this script only work for Drupal, or can it be used on websites not using any particular framework?
Hello,
This script is not working. I'm using it with PHP and it is having no effect. I've followed the step by step guidelines exactly as posted.
Post new comment