By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,256 Members | 1,572 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,256 IT Pros & Developers. It's quick & easy.

can I refresh a button status without refresing the all page

P: 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
Share this Question
Share on Google+
6 Replies


gits
Expert Mod 5K+
P: 5,390
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

P: 82
Sorry for my mistake. What forum is that
Oct 16 '07 #3

gits
Expert Mod 5K+
P: 5,390
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

P: 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
Expert Mod 5K+
P: 5,390
so could you please be a little bit more specific? how do you retrieve the status?

kind regards
Oct 16 '07 #6

P: 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.