Michael Howey
Posts: 0
Joined: Sun Feb 16, 2014 4:15 pm

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

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

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

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

Michael Howey
Posts: 0
Joined: Sun Feb 16, 2014 4:15 pm

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

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
});

Michael Howey
Posts: 0
Joined: Sun Feb 16, 2014 4:15 pm

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

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);

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

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

Hi Michael,

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

Return to “Issues”