Is it possible to use CJuiDialog when I need to render the content upon dialog open?
Let’s say I have 20 images on a page a I need to display different content in dialog which pops up after click on each image. Can it be done using CJuiDialog? Content should not be pregenerated, because it consists of a lot of queries and logic. It should be generated when dialog pops up.
Is there any other extension I can use? (Lightbox, anything else?)
I followed your advice, but I couldn’t force ajaxLink to show CJuiDialog dialog. When I changed ajaxLink to Link, dialog opens up empty which was understandable. I was afraid I will have a lot of troubles with that dialog because displayed page consists of a lot JS… but I never thought I could not open a single empty page with such a way… ouch.
I used CJuiDialog before with a simple forms and it worked like expected. With ajaxLink it is not
I’ve noticed that it will not work if I have $("#mydialog").dialog(“open”) in my ajaxLink and CJuiDialog autoOpen set to false, but it will work if I have $("#mydialog").dialog() in my ajaxLink and CJuiDialog autoOpen set to true. I haven’t had sufficient amount of time to figure out why, but perhaps this may help.