History: Colorbox_Ajax_Load_Example
Source of version: 9 (current)
Copy to clipboard
This page is an example wiki page for the [http://profiles.tiki.org/Colorbox_Ajax_Load|Colorbox Ajax Load|box;title=Colorbox Ajax Load profile as seen on profiles.tiki.org;] Profile. ! Example using CBAjaxLoad Plugin Alias The profile creates a __[tiki-admin.php?page=textarea&plugin_alias=cbajaxload&fullscreen=y&cookietab=3#tab3|CBAjaxLoad Plugin Alias|box;title=<big><b>Review the configuration of CBAjaxLoad Plugin Alias</b> and <b><a href='tiki-index.php?page=Colorbox+Ajax+Load+Example&fullscreen=n'>Close This Box</a></b></big>;width=90%;height=90%;]__ (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 and Tiki 6.x: {cbajaxload}{DIV(id="ajaxload")}[tiki-index_raw.php?page=HomePage|Content of a wiki page dynamically loaded to Colorbox]{DIV} {CODE(wrap=1 caption=Code:)}{cbajaxload}{DIV(id="ajaxload")}[tiki-index_raw.php?page=HomePage|Content of a wiki page dynamically loaded to Colorbox]{DIV}{CODE} ! 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: {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} {CODE(wrap=1 caption=Code:)}{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}{CODE}