craigsworks.com - Support Forum

Full Version: [Solved] Step-by-step tutorial trigger next from within popup?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Howdy!

I'm using your "step-by-step" tutorial mode like so:

http://craigsworks.com/projects/qtip2/demos/#steps

Everything is working fine, but I'm wondering:

Is it possible for me to trigger the "next" event from within the yellow popup itself?

Can anyone point me to a sample with proper syntax?

For example 'here is my pop-up text and now you can <a href="#" onClick="somethingCool()">continue...</a>'

FANTASTIC stuff Craig. Thanks a million!
Yup, just bind another custom event handler for elements within the tooltip:
JS Code
events: {
   render: function(event, api) {
      // This will make any links with a "next" class within the tooltip make it go to the next step
      $('div.next').bind('click', function() {
         $(api.elements.tooltip).triggerHandler('next');
      });
   }
}
So easy! Thank you sir!
Reference URL's