javascript - Ratchet remove/add data-ignore="push" -


using ratchet framework, able slidein/slideout of pages, arrive on situation have data first before slides next page. can data slide transition of page gone. there way this?

i have example anchor here:

<a href="next-link.html" data-transition="slide-in" data-want="i want data here">next link</a>

tried using,

$('a').each(function() {

`var $this = $(this);`  `$this.attr('data-ignore', 'push');`  `$this.click(function(e) {`      `e.stoppropagation();`      `//... data here $this.attr('data-want')`      `$this.attr('data-ignore', '');`  `});` 

});

use .data() instead:

$this.data('ignore', 'push'); 

and set empty

$this.data('ignore', ''); 

Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -