Closed baohouse closed 11 years ago
Seems the way to work with joyride and AJAX-loaded content is to load the content synchronously rather than asynchronously; that way the pages load first, while the tour waits for it to finish before binding a tooltip to a selected element.
I have a pretty complicated situation where postStepCallback is used to pull AJAX data and then in the AJAX's callback, we run joyride('resume') to continue with the tour. The reason for that is that we pause on a tour stop first, get the AJAX request, and then once that is loaded, resume the tour. Otherwise the tooltips can't find the elements to bind to within the AJAX-loaded page.
However, when the user clicks on the tooltip's close button, postStepCallback runs, firing an AJAX call, which resumes the tour again, rather than ending the tour. Is there a way to check to see if the user has clicked on the close button, triggering a "canceled tour" state of some sort?