ReDucTor Posted June 5, 2007 Share Posted June 5, 2007 sorry about messy post using on screen keyboard coz mine broke. but why isnt ajax just.. function ajax(){ document.write("<script language=\"javascript\" src=\"ajax.php\" />"); t=setTimeout("ajax()",1000) } ajax() whats wrong there? Quote Link to comment Share on other sites More sharing options...
zq29 Posted June 5, 2007 Share Posted June 5, 2007 Wouldn't that add the same script the the page indefinitely? Redefining functions etc. and generally causing errors. Not sure how asynchronous that is either... Oh, and wrong forum. Moved to AJAX forum. Quote Link to comment Share on other sites More sharing options...
ReDucTor Posted June 5, 2007 Author Share Posted June 5, 2007 You would just output e.g. alert('new message'); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.