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

Your preferred username that is used when logging in.

Expose? API Problem Created Jun 23, 2010

This thread is solved

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

dutchMaster

Posts: 4

Registered:
Jun 23, 2010

Expose? API Problem

Posted: Jun 23, 2010

I am trying to use jQuery Tools EXPOSE function. I have successfully implement the overlay tool as well as its API object (so I can call api.close()), so I am fmailiar with the EXPOSE/OVERLAY general structure and usage.

I think I am having a problem with the initializing line and the proper object is not being passed to my API variable. You can see the error(s) listed below in the comments.


//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' 
    });
    api.load();  //Side Note: This was also triggering my <body onload> code. Had to move it elsewhere.
    api.close(); //Object #<an Object> has no method 'close'
}
Any assistance in this matter would be greatly appreciated.

dutchMaster

Posts: 4

Registered:
Jun 23, 2010

» Expose? API Problem

Posted: Jun 24, 2010

Reply to: Expose? API Problem, from dutchMaster
Fixed it by using

//api.close();
$.mask.close();