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.
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.