How to set a boolean value in the onLoad function, depending upon the OnClose function. and can i get this boolean value on next screen
$(document).ready(
function() {
$('#Pagewalkthrough').pagewalkthrough(
{
steps : [ {
wrapper : '#loginTableHighlight',
margin : '0',
popup : {
content : '#highlight-accessable',
type : 'tooltip',
position : 'left',
offsetHorizontal : 20,
offsetVertical : 0,
width : '380'
},
accessable : true,
autoScroll: false
}
],
name : 'Pagewalkthrough',
onLoad : true,
onRestart:function() {
//alert("-- onRestart --");
return true;
},
onClose : function() {
//alert("-- onClose --");
$('.walkthrough-main-menu a#open-Pagewalkthrough')
.removeClass('active');
return true;
},
onCookieLoad : function() {
//alert("-- onCookieLoad --");
return true;
}
});
/*******************************************************************
* NAVIGATION
*/
$('.walkthrough-main-menu a').each(
function() {
//alert("-- Navigation --");
$('.walkthrough-main-menu').find('a.active')
.removeClass('active');
$(this).live('click', function() {
$(this).addClass('active');
var id = $(this).attr('id').split('-');
if (id == 'parameters')
return;
$.pagewalkthrough('show', id[1]);
}
);
}
);
$('.prev-step').live('click', function(e) {
$.pagewalkthrough('prev', e);
});
$('.next-step').live('click', function(e) {
$.pagewalkthrough('next', e);
});
$('.restart-step').live('click', function(e) {
$.pagewalkthrough('restart', e);
});
$('.close-step').live('click', function(e) {
$.pagewalkthrough('close');
});
}
);