You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Expose close() issue. Created Jun 1, 2010

This thread is solved

Views: 1988     Replies: 3     Last reply Jun 24, 2010  
You must login first before you can use this feature

kacper

Posts: 4

Registered:
Apr 23, 2010

Expose close() issue.

Posted: Jun 1, 2010

Hello,

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?

dutchMaster

Posts: 4

Registered:
Jun 23, 2010

» Expose close() issue.

Posted: Jun 23, 2010

Reply to: Expose close() issue., from kacper
Did you ever come up with a resolution for this? I am having the same issue here....


//using http://cdn.jquerytools.org/1.2.3/full/jquery.tools.min.js

var api;  
function exposeItem(v){

    api=$('#'+v).expose({
        api: true,
        color:'#000',
        loadSpeed:'fast',
        closeSpeed:'fast' 
    });
    //This Works, but immediately shows the EXPOSE  

    api.load();  
    //This line seems to refresh the page, and then lay the mask over it, 
    //not EXPOSING the div. When commented out I get the expose but the 
    //error below as well.

    api.close(); 
    //Object #<an Object> has no method 'close'
}

dutchMaster

Posts: 4

Registered:
Jun 23, 2010

» Expose close() issue.

Posted: Jun 24, 2010

Reply to: Expose close() issue., from kacper
try

$.mask.close();

kacper

Posts: 4

Registered:
Apr 23, 2010

» » Expose close() issue.

Posted: Jun 24, 2010

Reply to: » Expose close() issue., from dutchMaster
Thank You.