Batman YTB | Colorbox Ajax Load Example




Fullscreen
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:

errorPlugin disabled
Plugin cbajaxload cannot be executed.
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}

 


The Voice Of Gotham

Online users

18 online users
Show php error messages
 
PHP (5.4.14) ERROR (E_USER_ERROR):
File: lib/smarty/libs/Smarty.class.php
Line: 1093
Type: Smarty error: [in evaluated template line 40]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 590)