469,631 Members | 1,127 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

can I refresh a button status without refresing the all page

82
Hi,

I have a button that can change its staus (like online, offline etc ...). I get the updated status of the button by refreshing the page.
I want that only the button that the status appear on it will be refresh with the updated status, without refreshing the all page. Can someone advise me about this.

Thanks
Ronen
Oct 16 '07 #1
6 1379
gits
5,390 Expert Mod 4TB
hi ...

i've moved your post from the js-articles section to the forum for you ... please don't post questions in the articles sections

kind regards
Oct 16 '07 #2
raknin
82
Sorry for my mistake. What forum is that
Oct 16 '07 #3
gits
5,390 Expert Mod 4TB
to your problem: in case you need to retrieve data from the database to do what you want you might use an XMLHttpRequest to do so. it uses a js-driven call that operates in the background and let you update a part of your page without a page refresh ... its called AJAX :) ... have a link at the offsitelinks at top of our js-forum and go through the AJAX-links there for further information and to start learning about it. for a quick-start have a look here

kind regards
Oct 16 '07 #4
raknin
82
Gits,

Thanks, but the status is comming from the internet and not from the database.
I am familliar with Ajax.
Oct 16 '07 #5
gits
5,390 Expert Mod 4TB
so could you please be a little bit more specific? how do you retrieve the status?

kind regards
Oct 16 '07 #6
raknin
82
The button can be for example skype button that contains some code behind it, so what I want to run the code periodicaly to see how the status of the user is changing since I get the status from the internet.

Thanks
Oct 16 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

14 posts views Thread by ZoombyWoof | last post: by
3 posts views Thread by eric rudolph | last post: by
reply views Thread by veenakj | last post: by
1 post views Thread by francois | last post: by
3 posts views Thread by Sameer | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.