there are many ways to do, Ajax long polling, websocket, use comet library along with prototype js, using websocket is good but not all browsers support this technology. you can not create websockets on shared servers
You have done a great job! save my grade! Just one question about showing the comment list. My professor said I MUST create a JSON or XML document as a response to the AJAX request. I did not see any JSON or XML in your code, could you explain it to me?
It is a very good practice to use Json or XML as response. But Its not a rule. I myself use json for my projects. But this video was to let the viewers know that anything can used as response.
Comments as reference, dude I'm going to lay out this one. Just hope this one works or I'll pray that your feet will stuck in the ground, you'll eat without hands, speak without mouth, and even if this one doesn't work, youre already suffering reading this blind
Masha Allah Great lecture... Keep helping us... Thank you sir!!!
the best starting tutorial video i watched. tnx a LOT
nice video
how can I use this without looping setInterval ? because I think this might get a multiple request a bit ?
There is a way that uses web socket but that itself is an advanced topic.
there are many ways to do, Ajax long polling, websocket, use comet library along with prototype js, using websocket is good but not all browsers support this technology. you can not create websockets on shared servers
oh i see thanks.
Page is reloading on every 2nd post request and works fine with first request (jQuery stops working i guess)...please tell the solution
You have done a great job! save my grade!
Just one question about showing the comment list. My professor said I MUST create a JSON or XML document as a response to the AJAX request. I did not see any JSON or XML in your code, could you explain it to me?
It is a very good practice to use Json or XML as response. But Its not a rule. I myself use json for my projects. But this video was to let the viewers know that anything can used as response.
Greate djob. Good Bless you all days
Thanks, great tut.
How can we make a login and logout with register system for the comment system
ok nice
how do i display comment by post id
Can we seprate the form of sending comments and the comments list, Each one in a different html page ?
Sure.. in order to do that you dont need to use ajax and place the comment listing page separately in some other file
this is cool tut...could you please also add a reply button to it?
its tough
zzzzz
using this sem method
Comments as reference, dude I'm going to lay out this one. Just hope this one works or I'll pray that your feet will stuck in the ground, you'll eat without hands, speak without mouth, and even if this one doesn't work, youre already suffering reading this blind