Jump to content

Can't alert(""); from AJAX function?!


Recommended Posts

Hi there my code is:

 

ajReq.onreadystatechange = function(){
	if(ajReq.readyState == 4){			
		if(connection == "rf") {		
			document.getElementById("tempdiv").innerHTML=ajReq.responseText;	
			alert();
		}			
	}
}

Gives me the error: alert is not a function, I have tried calling a global function instead and alerting from that but that gives the same error...

 

Any help really appreciated.

Link to comment
https://forums.phpfreaks.com/topic/161411-cant-alert-from-ajax-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.