开发者

jQuery Tools: Expose... API Problem

开发者 https://www.devze.com 2023-01-05 00:25 出处:网络
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()). I think I am having a problem with the initializi

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()). 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 list开发者_如何学JAVAed below in the comments.

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();  


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

Any assistance in this matter would be greatly appreciated.


I found the answer. It was so simple, it only took me a full day to figure out.

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号