Wijmo UI for the Web
cookie Option

Default value: null

Store the latest active index in a cookie. The cookie is then used to determine the initially active index

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  object
    returnsValue = $(".selector").wijlightbox("option", "cookie");
    
    // Set value
    var newValue; // Type:  object
    $(".selector").wijlightbox("option", "cookie", newValue);
        
});
Javascript (Specification) 
var cookie : object;
Remarks
if the activeIndex option is not defined. This requires cookie plugin. The object needs to have key/value pairs of the form the cookie plugin expects as options. e.g. { expires: 7, path: '/', domain: 'jquery.com', secure: true }
Browser Compatibility
7
5
5

See Also

Reference

options type
wijlightbox jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.