Ajax markup

Provides an API for generating filtered markup using ajax.

How to use:

1) Load the API by calling ajax_markup_on() at server side.

<?php
if (module_invoke('ajax_markup', 'on')) {
 
drupal_add_js(YOUR_SCRIPT.js);
}
?>

2) Inside YOUR_SCRIPT.js call $.ajaxMarkup

$.ajaxMarkup(INPUT, INPUT_FORMAT, CALLBACK);

function CALLBACK(OUTPUT, SUCCESS, REQUEST) {
  if (SUCCESS) $('div#preview').html(OUTPUT);
  else alert(OUTPUT);
}

Releases

Development snapshotsDateSizeLinksStatus
6.x-1.x-dev2009-Jul-018.05 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.