Is it possible to communicate and update data in a page without reloading, but without using the XMLHttpRequest object, AND sharing the same connection or socket every time (so, without closing the connection for every request)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No.
You can change the content on the page with just Javascript, however if you want content from the server, you’re going to have to use an XMLHttpRequest object.
Edit: Looking at the link above about “long polling”
My answer changes depending upon what you mean. Do you mean you don’t want to use an XMLHttpRequest object at any level? Or do you mean that you don’t want to have to use the raw XMLHttpRequest object.
Because in the end jQuery is going to use an XMLHttpRequest object. However if you just don’t want to have to deal with the raw object, then you can use something like jQuery.
Looking at the answer above:
Okay, I understand what you were talking about…however the page you are linking is talking about something completely different.