Add this javascript somewhere on your plugin:
[code:1]
<script type=\"text/javascript\">
function sendAJAXpage_cbplugin(url) {
new Ajax(url, {
method: 'get',
update: $('cbplugin_maindiv')
}).request();
}
</script>
[/code:1]
where cbplugin_maindiv is the div in which to load up your HTMLRequest stuff.
IMPORTANT: replace cbplugin with the tab name of your plugin (lowercase). Example: if your plugin has the tab getMyCBPluginTab, your div should be named "mycbplugintab_maindiv", and the javascript function should be sendAJAXpage_mycbplugin(url).
The rest is pretty common sense AJAX stuff. I believe you can add this javascript snippet into CB's own JS library, but I haven't figure that one out
It is important to note that this javascript requires mootools, but you can modify it easily to work with jQ.
Post edited by: p9939068, at: 2008/07/05 14:56