History: Colorbox_Ajax_Load_Example
Preview of version: 8
This page is an example wiki page for the Colorbox Ajax Load Profile.
{cbajaxload}
Example using CBAjaxLoad Plugin Alias
The profile creates a CBAjaxLoad Plugin Alias (when you have admin rights you can review the plugin alias configuration by following the link) to simplify the required jQuery code insertion on a wiki page. This was tested and works successfully in Tiki 5.x but not in trunk:{cbajaxload}
Code:
Copy to clipboard
{cbajaxload}{DIV(id="ajaxload")}[tiki-index_raw.php?page=HomePage|Content of a wiki page dynamically loaded to Colorbox]{DIV}
Example using JQ Plugin
This is just the same code but instead of using CBAjaxLoad plugin alias it uses jQuery code directly put in the JQ plugin. It works in both, Tiki 5.x and trunk: Plugin disabled
Plugin jq cannot be executed.
Code:
Copy to clipboard
{JQ()}$jq("#ajaxload2 a").colorbox({href: function(){return $jq(this).attr("href")+" .wikitext";}});{JQ}{DIV(id="ajaxload2")}[tiki-index_raw.php?page=HomePage|Content of a wiki page dynamically loaded to Colorbox]{DIV}