Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing values to function via setInterval problem

Status
Not open for further replies.

MJB3K

Programmer
Jul 16, 2004
524
GB
Hi, i have this code below, and it doesn't seem to work properly for some strange reason
Code:
function getText(roomName){
	alert("room " + roomName);
	// Open PHP script for requests 
	http3.open('post', 'ajax.php?act=getText&roomName='+roomName); 
	http3.onreadystatechange = handleResponse3; 
	http3.send(null);
	
	setInterval("getText()", 5000, roomName);
}
It doesn't seem to pass the variable of roomName back in...

any ideas??

Regards,

Martin

Computing Design And Services:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top