Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.2
Component:
Modal
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2012 at 11:29 UTC
Updated:
31 Aug 2012 at 06:46 UTC
Hi,
I am using ctools_automodal to generate the ctools modal popup.
I want to display the modal popup on page load.
Can anyone suggest me how to do this?
Thanks
Comments
Comment #1
merlinofchaos commentedYou'd probably need to use jQuery ready function and call Drupal.CTools.Modal.show() and then fill in the data you want from the modal. You could also simulate a click on a link that loads a modal via AJAX using jQuery's trigger() method.
Comment #2
jaykainthola commented@merlinofchaos
Thanks for your comment. I have explored the Ctools and ajax and resolved the problem.
Comment #3
jaykainthola commented@merlinofchaos
Thanks for your comment. I have resolved the issue by using following code.
$('.goals-popup a.ctools-use-modal') is the ctools modal link and I created a new function as.
its working fine for me.
Comment #4
jaykainthola commented