Okay
  Public Ticket #211105
call to javascript API
Closed

Comments

  • Juanjo started the conversation

    Hi,

    I'm trying to call the javascript API, but I've a problem, in console: TypeError: revapi1 is undefined.

    I found this ticket: http://unitecms.ticksy.com/ticket/163849/search/

    but there are a lot of private comments.

    I think that the problem is when I try to call the object is not yet created.

    this is my code in template index.php

    var tpjb=jQuery;
    tpjb(document).ready(function() {
    alert('slide total: '+revapi1.revmaxslide());
    }); 

    How can I solve it and use the API?

    thanks in advance

  •  909
    Max replied

    Hi, please give me a link to your website when you trying to use the API so I could look.