Community

Load all drupal ajax code after a certain event.

Hello everybody

I'm implementing a drupal theme based on this navigation system.

I could make it works by overriding page.tpl.php, node.tpl.php etc... but I have a problem with javascript.

That fullscreen slider system have his own event that is triggered when fully initialized, as you can see in the documentation.

For example, with this plugin, the contextual links doesn't works anymore, neither the ajax views.... All jQuery things that are included on this slider doesn't works and needs to be initialized on that new event :

$('#fsn').on('fsn-ready', function(e) {
  // Initialize all drupal javascript.
}

I don't know what to do in that function, anybody can help me ?

Regards,

Alex

Comments

Take a look at

Take a look at http://drupal.org/node/756722. You will want to structure your code so it takes advantage of the Drupal APIs and js behaviors (on the referenced page).

nobody click here