Hi all,
I wanted to ask what methods can i use to get data from the http server without reloading the page.
let's take a chat for example, if i wanted to make an online javascript chat, than I guess i would have to split the page to frames, and one frame will automatically reload itself every 2 seconds and reads the new data from the chat server.
I don't like this solution beacuse the status bar is always waiting and reloading.
I saw what i want on gmail, you probably know that Gmail added a chat option, and left side of the screen shows you the people online like Messenger or ICQ.
now I dont see that something reloads every few seconds, i don't see it on the status bar of Iexplorer and i don't feel it when i browse my Gmail.
anyone know's how to do that?
the only way i thought about is using a small frame and using the javascript
xxxxx.src="getdata.php" that will run every few seconds and will load new data from the server.
is there any other way to get data from the server other than rechanging the "src" attribute every few seconds?
thanks in advance,
Hagai.
I wanted to ask what methods can i use to get data from the http server without reloading the page.
let's take a chat for example, if i wanted to make an online javascript chat, than I guess i would have to split the page to frames, and one frame will automatically reload itself every 2 seconds and reads the new data from the chat server.
I don't like this solution beacuse the status bar is always waiting and reloading.
I saw what i want on gmail, you probably know that Gmail added a chat option, and left side of the screen shows you the people online like Messenger or ICQ.
now I dont see that something reloads every few seconds, i don't see it on the status bar of Iexplorer and i don't feel it when i browse my Gmail.
anyone know's how to do that?
the only way i thought about is using a small frame and using the javascript
xxxxx.src="getdata.php" that will run every few seconds and will load new data from the server.
is there any other way to get data from the server other than rechanging the "src" attribute every few seconds?
thanks in advance,
Hagai.