I've been looking through the ajax examples, but they all seem to be triggered by user interaction (form submit, form value change, clicking a link, etc)

I've got some actions that tend to slow down the page, so my thought was to load the rest of the page and ajax the longer actions in. Also need to periodically refresh that area on the page with the same callback without the user having to click or submit anything.

Is there a callback to use in Drupal to get this to happen or would it be straight up jQuery?

Comments

jaypan’s picture

It depends on whether you are talking AJAX, or #ajax. The second is a Drupal FAPI method, and needs to be done using FAPI methods. The first can be done purely using jQuery.

Contact me to contract me for D7 -> D10/11 migrations.