Clic here to see an example
Loading the new content thru ajax:
YAHOO.plugin.Dispatcher.fetch (
'div_id_or_reference',
'new_remote_content.html',
{
before: function () {},
after: function () {}
}
);
Define the new content manually:
YAHOO.plugin.Dispatcher.process (
'div_id_or_reference',
'new innerHTML content for the DIV in XHTML',
{
before: function () {},
after: function () {}
}
);
Use the "before" and "after" functions to extend the dispatcher functionalities...
Note: keep in mind that the dispatcher will execute the scripts (if exists) just after the change of the content and before the method "after".







