You are here

README.txt in Ajaxify Drupal with JQuery Ajax 7

Same filename and directory in other branches
  1. 8 README.txt
  2. 6 README.txt
How to use Ajax links API
--------------------------------------------------------------------------------

METHOD 1 : In module config page, specify the Classes/Ids to trigger Ajax. 
Target DIV will be default CSS selector defined, you can change default CSS 
Selector from module config page.

Example : 
<div class="tabs"><a href="node/add/page">Add page</a></div> . You can ajaxify 
this link by adding .tabs a in module config page.



METHOD 2 : in your tpl , <?php l_ajax($title, $path, $target) ?>

* $title: Title.
* $path : Drupal path.
* $target (optional): ID/CLASS of DIV to be replaced. This will override 
Default CSS Selector defined in module config page.

Example :
<?php l_ajax("add page", "node/add/page", "#content") ?>



METHOD 3 : Add class="ajax-link" to any link. Target div will be default CSS 
selector defined . You can change default CSS Selector from module config page 
or override target by specifying rel="".

Example : 
<a class="ajax-link" href="node/add/page" rel="#content">Add page</a>




Developer Notes
--------------------------------------------------------------------------------
Override tpl : 
Developer can add/remove any variables by copying html--ajax.tpl.php and 
page--ajax.tpl.php to their theme. All variables available to html.tpl.php or 
page.tpl.php can be used. 
In case you want to override page--ajax.tpl.php, for eg: for path /user/, you 
can create page--user--ajax.tpl.php. Same applicable for html--user--ajax.tpl.

Upgrade : 
You can upgrade/degrade module anytime by simply overwriting whole folder.

Ajaxify admin paths :
Overlay module is not compatible with this module. If you want to ajaxify admin
paths.
* You need to disable overlay module,
* Goto admin/appearance, set Administration theme to default.

DEMO
--------------------------------------------------------------------------------
Goto YOUR_SITE/ajax-links-api/test

File

README.txt
View source
  1. How to use Ajax links API
  2. --------------------------------------------------------------------------------
  3. METHOD 1 : In module config page, specify the Classes/Ids to trigger Ajax.
  4. Target DIV will be default CSS selector defined, you can change default CSS
  5. Selector from module config page.
  6. Example :
  7. . You can ajaxify
  8. this link by adding .tabs a in module config page.
  9. METHOD 2 : in your tpl ,
  10. * $title: Title.
  11. * $path : Drupal path.
  12. * $target (optional): ID/CLASS of DIV to be replaced. This will override
  13. Default CSS Selector defined in module config page.
  14. Example :
  15. METHOD 3 : Add class="ajax-link" to any link. Target div will be default CSS
  16. selector defined . You can change default CSS Selector from module config page
  17. or override target by specifying rel="".
  18. Example :
  19. Add page
  20. Developer Notes
  21. --------------------------------------------------------------------------------
  22. Override tpl :
  23. Developer can add/remove any variables by copying html--ajax.tpl.php and
  24. page--ajax.tpl.php to their theme. All variables available to html.tpl.php or
  25. page.tpl.php can be used.
  26. In case you want to override page--ajax.tpl.php, for eg: for path /user/, you
  27. can create page--user--ajax.tpl.php. Same applicable for html--user--ajax.tpl.
  28. Upgrade :
  29. You can upgrade/degrade module anytime by simply overwriting whole folder.
  30. Ajaxify admin paths :
  31. Overlay module is not compatible with this module. If you want to ajaxify admin
  32. paths.
  33. * You need to disable overlay module,
  34. * Goto admin/appearance, set Administration theme to default.
  35. DEMO
  36. --------------------------------------------------------------------------------
  37. Goto YOUR_SITE/ajax-links-api/test