i am making chat application in php for learning, can you suggest me how to make it real time.. without reloading page new messa | SoloLearn: Learn to code for FREE!

+2

i am making chat application in php for learning, can you suggest me how to make it real time.. without reloading page new messa

my js code for it is as follows: if it has any mistake than say <script> $(document).ready(function(){ var send_id=<?php echo $_GET['send_id']; ?>; var interval=setInterval(function(){ $.ajax({ type:"GET", data:{send_id:send_id}, url:"chat.php", success:function(response){ $("#chat").html(response); } }); },1000); }); </script>

1/5/2018 12:27:27 PM

Harsha Gojiya

1 Answer

New Answer