skybox

From SkyPHP

Jump to: navigation, search

A skybox is an AJAX/HTML popup window.

Example

The following javascript code will display the /my-skybox page in a 500 pixel wide skybox when my-button is clicked.

$(document).ready(function(){
    $('#my-button').click(function(){
        skybox('/my-skybox',500);
    });
});

How to close a skybox

  1. click the browser's back button
  2. or, javascript:history.back();

Javascript Usage

skybox(uri);
skybox(uri, w);
skybox(uri, w, h);
skybox(uri, w, h, onSuccessFn);
skybox(uri, data);
skybox(uri, data, w, h, onSuccessFn);
skybox(html);
skybox(html, w, h, onSuccessFn);
Personal tools