Guys I am really going totally crazy.
I load a list with data coming from my database.
I have decided to let the user change the year to he can see a detailed list regarding that year.
As soon as I've thrown this new function my page started working random.
One refresh it's working and the other not.
I've understood that it was because the variable year (anno in Italian) was undefined so I've prepared a little code to define it if undefined.
If I run this code sometimes it works and sometimes not.
The php page behind it works steady as a rock if I test it (e.g.
http://pitto.homeip.net/mobile/php/getpagati.php?anno=2013)
I really can't think how to solve the riddle since I've just began programming...
Can you please be so kind to lend a hand?
Here I paste my index.js and you can find the not working page at:
http://pitto.homeip.net/mobileThanks a lot!