Vedi se questo che è più sintetico ti facilita la comprensione.
Cavicchi Andrea Problemi con javascript, jquery, ajax clicca qui
Regole del Forum