Hello,
I have strange issue with expose api:
I use external div to (close button) to hide div and mask
I can't access to "close" method which doesn't exists.
Any ideas?
I have strange issue with expose api:
var exposeApi;
$(".show_ajax_popup").click(function() {
$("#ajax_popup").show();
exposeApi = $("#ajax_popup").expose({
opacity:0.3,
api:true,
//lazy:true, -- tried
onClose: function(event) {
$("#ajax_popup").hide();
}
}).load();
$.scrollTo("#header", 500); // @TODO FIX NAME
return false;
});
I use external div to (close button) to hide div and mask
$("a.close").click(function(event){
$("#ajax_popup").hide();
// $.expose.close(); -- tried
// exposeApi.close(); -- tried
// $("#ajax_popup").expose().close(); -- tried
// $("#ajax_popup").close(); -- tried
return false;
});
I can't access to "close" method which doesn't exists.
Any ideas?
