EragonJ / Trip.js

🚀 Trip.js is a plugin that can help you customize a tutorial trip easily with more flexibilities.
https://eragonj.github.io/Trip.js/
MIT License
793 stars 111 forks source link

callback not working #114

Closed myselfgaurav closed 8 years ago

myselfgaurav commented 9 years ago

jquery callback seems not working , console.log("step "+ i +" is finished");

i could not see step 1 finished in console,

what to do to make it work

EragonJ commented 9 years ago

please check http://eragonj.github.io/Trip.js/demo.html for more information.

myselfgaurav commented 9 years ago

i still can not see any log there

EragonJ commented 9 years ago

Make sure all needed libs are loaded and if possible, please put more comments, attach screenshot or write down detailed step to reproduce to help us diagnose the problem, otherwise, the information is too less to know what's going on here.

myselfgaurav commented 9 years ago

ok see i tested demo at below url : http://eragonj.github.io/Trip.js/

i found js link reffered here : http://eragonj.github.io/Trip.js/public/js/demo-index.js has below code

{ sel : $('.demo-index.step2'), position : 'e', content : 'This is a plugin that can help you make hint flow easily !', delay : 3000, callback : function(i) { console.log("step "+ i +" is finished"); }

here the call back content step 1 is finished must show in console

but i can not see it attached screenshot also

trip

EragonJ commented 9 years ago

Ohoh, I finally realized the problem here. callback is an old option that you can pass, in new design, we do have onTripChange which does the same thing, so you can use that instead.

I would update demo-index.js later to eliminate the ambiguity here. Hope this clarifies your problem.