0
I developed a small application using HTML5 and jQuery.
It works perfectly on localhost. I uploaded the whole code, and a specific routine did not work on any of the browsers (Chrome, Firefox or Opera).
I tried it on iPhone Safari and it didn’t work either. I figured you might have forgotten to climb some file, but in the last test, when I created a page shortcut on iPhone, it worked perfectly.
Anyway, I tested on Android Chrome and also worked without any problem.
Has anyone ever been in a similar situation?
I did these two tests and both did not generate anything on the console. I believe the problem may be here:
$(document).on('pagebeforeshow', '#pagRanking', function() {
console.log('before show');
})
$(document).on('pageshow', '#pagRanking', function() {
console.log('show');
})
Have you checked the path to jQuery? It’s probably not being loaded and your code doesn’t work. Try this before that code you have there, out of those functions:
if (typeof jQuery == 'undefined') { console.log('jQuery não foi carregado!'); } else { console.log('jQuery Carregado!'); }
to see if jQuery is loaded or not!– Zuul
Are you using a server to provide the files or is it just a static page? in the element inspector of your browser you can see if he managed to get these files in the tab
network
?– silviomoreto
The jQuery is loaded.
– Alexandre Bonfá
The files are also loaded in the network tab, as they should, however the JS file does not seem to have been updated. I tried a CTRL+F5 (obviously), but it doesn’t seem to change.
– Alexandre Bonfá