This code does not seem to be working. I am trying to create a dynamic list of chat rooms available that updates every 10 seconds. I also want the user to be able to set peramin
Try putting quotes around your function:
setInterval('setRooms()', 10000);
Alternatively change your method to:
var setRooms = function()
and you can then use:
setInterval(setRooms, 10000);