AJAX API Access?
PermalinkThanks,
Eric

I'm looking to have a modal dialog as a result of a click on a link in a block.
1 - where do I put the js code (in auto.js?)
2 - I put some of the script in my block's view.php for now, but could only seem to get the default ccm-dialog.
Anyone have a very basic example of what I could use in a block's view.php to open up a dialog? Is there some c5/ccm very specific things I need to do, or can I follow typical jquery tutorial?
I have the document.ready function firing on click of an anchor, but my $("mydiv").dialog seems to do nothing now. An alert on the next line works though.
This is more a jquery learning issue more than a C5 problem, but thought I'd ask here in case there is some extra stuff that can be taken advantage of - like the dialog-title attribute etc...
For example, the only way it can load items currently is by passing a target URL - it can't just load DOM content on a page.
We've had good results for this site by integrating with custom 3rd party jquery dialogs for things like the forum post window, etc... In this case we just create a /js/ folder off the root and leave our stuff there, where c5 isn't going to touch it in an upgrade.