I need to have links in my ajax loaded content which need to open in the ctools dialog. Can someone help me find a solution?

I need to bind an event to the ajax loaded link and even if I have to use live function I need an event and not just a div id or link id on which I will call my CtoolsAjaxCallback.

Comments

basant’s picture

You can bind ctools dialog event to ajax loaded contents using Drupal.behaviors.Dialog(context) where context is the jquery object for the selector in which you are populating content from ajax.

Eg
var obj = $('#conatainer-to-load-content');
obj.replaceWith(ajax_content);
Drupal.behaviors.Dialog(obj);

I am sure this will help you.

devin carlson’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Dialog 6.x is no longer supported.