Page 1 of 1

Go back fails to load page correctly after using swipe on previous page

Posted: Sun Feb 16, 2014 4:15 pm
by Michael Howey

Swipe fails and page loads half way when using the back button.

When I load the app every thing works as expected. Swipe working but when I click a button to navigate to another page and then use the back button everything seems to fail. The page that contains the swipe loads half way. The button still works but the swipe does not.

I just shared the app


Go back fails to load page correctly after using swipe on previous page

Posted: Sun Feb 16, 2014 4:26 pm
by Igor

Are there any errors in browser console when you test the app?


Go back fails to load page correctly after using swipe on previous page

Posted: Sun Feb 16, 2014 5:54 pm
by Michael Howey

Turns out to be a conflict issue.

If I wrap my "game jquery" with the following everything seems to work. However now my game only works once correctly. It allows me to play it a second time but it is not firing off as it should.

$.noConflict();
jQuery( document ).ready(function( $ ) {
// my game code
});


Go back fails to load page correctly after using swipe on previous page

Posted: Sun Feb 16, 2014 6:04 pm
by Michael Howey

Anyway this may help someone else

At the top of my custom jQuery file I added this

var $j = jQuery.noConflict();

Then I replaced
$('.bestScore').html(thebestscore);

with

$j('.bestScore_num').html(thebestscore);


Go back fails to load page correctly after using swipe on previous page

Posted: Mon Feb 17, 2014 5:31 pm
by Kateryna Grynko

Hi Michael,

Thank you for sharing this. Do you need any further help?