Help with callbacks

79 views
Skip to first unread message

Filipe Moreira

unread,
Mar 28, 2013, 11:11:05 AM3/28/13
to int...@googlegroups.com
Hi Afshin,

First of all thank you for IntroJs. It looks really nice and promising!

I'm trying to use the callbacks feature but cannot make it work. The called looks like this:

      introJs().oncomplete(function() {
        console.log("Completed");
      });
      introJs().onexit(function() {
        console.log("Cancelled");
      });
      introJs().start();

This is called inside a jQuery Dom ready function and while the tour starts and runs perfectly the callbacks are never called.

Do you mind giving some direction on what I may be doing wrong?

Thanks

Afshin Mehrabani

unread,
Mar 28, 2013, 11:16:26 AM3/28/13
to int...@googlegroups.com
Hey Filipe,

Test it:

 introJs().oncomplete(function() {
        console.log("Completed");
      }).
      onexit(function() {
        console.log("Cancelled");
      }).
      start();

Let me know if your problem fixed.

Afshin 

Filipe Moreira

unread,
Mar 28, 2013, 2:15:19 PM3/28/13
to int...@googlegroups.com
Hi Afshin,

It worked! 

Thanks.

Filipe

Afshin Mehrabani

unread,
Mar 28, 2013, 4:47:38 PM3/28/13
to int...@googlegroups.com
Fine :)
Reply all
Reply to author
Forward
0 new messages