Batman YTB | Colorbox Ajax Load Example




Cancel Fullscreen
Loading...
 
Bookmark and Share

Print

Colorbox Ajax Load Example

This page is an example wiki page for the Colorbox Ajax Load(external link) Profile.

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 and Tiki 6.x:

Code:
{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:

Error Plugin execution pending approval

This plugin was recently added or modified. Until an editor of the site validates the parameters, execution will not be possible.

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}

 


Show php error messages