si, ma se usa una libreria già impostata, è più sicuro. Per esempio PrototypeJS ha Ajax.PeriodicalUpdater che fa tutto lui.
Regole del Forum