Using ratchet framework, I am able to slidein/slideout of any pages, I arrive on a situation where I have to get the data first before it slides to the next page. I can get the data but the slide transition of the page is gone. Is there a way to do this?
I have this example anchor here:
<a href="next-link.html" data-transition="slide-in" data-want="I want this data here">Next link</a>
tried using,
$('a').each(function() {
`var $this = $(this);`
`$this.attr('data-ignore', 'push');`
`$this.click(function(e) {`
`e.stopPropagation();`
`//... get the data here $this.attr('data-want')`
`$this.attr('data-ignore', '');`
`});`
});
use
.data()
instead:and to set it empty