Documentation
load
usage
.kaiten("load", [data], [$src])
parameters
data : Object (optional), the data to pass to the loading function. You can specify which connector to use by setting the "kConnector" property
$src : jQuery object, the element that initiated the loading (optional)
returns
A jQuery object, the panel created
Use the load function to create a new panel and to load its HTML content.
You can also use the property kTitle to ask Kaiten to set the panel title after loading.
If provided, the $src element will be highlighted.
examples
Assuming that we are in Kaiten's startup function :
// example #1
// use the "html.page" connector to retrieve content from a script located on the server
var data = { kConnector:"html.page", url:"gallery/icons.php", page:1, kTitle:"A very nice collection of icons" }
this.kaiten('load', data);
See also :
reload
Reload a panel content.