473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 1636
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

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

Similar topics

14
by: ZoombyWoof | last post by:
Hi. I have a Framed page, and in the "main" frame a userchoise is made. In my "top" frame I have a table containing some status info, the current logged on user (the username is saved in a SESSION...
3
by: eric rudolph | last post by:
I am writing a photo gallery and suppose 8 photos are displayed. When the user clicks on a button under the picture, I want it to add that picture name to a "favorites" list within the session...
0
by: veenakj | last post by:
Hello, We have a workflow which has around 20 steps. We have UI which is designed in such a way that when we click RUN WORKFLOW button, we go to a page with all the 20 steps like below Step...
10
by: tasmisr | last post by:
This is an old problem,, but I never had it so bad like this before,, the events are refiring when clicking the Browser refresh button. In the Submit button in my webform, I capture the server side...
1
by: francois | last post by:
I have a ASPX form with a dropdownlist that makes a post back (to the same page of course, just a normal asp.net postback) That page also has an auto refresh javascript as it needs to refresh its...
3
by: Sameer | last post by:
I have a webpage that has a link button. This link button on click opens up a new page. This is what is happening: 1. Load the web page. 2. Click on the link. 3. Refresh the web-page. Result:...
10
by: phforum | last post by:
Hi, I wrote a PHP page for user input the information to search the database. And the database data will update every second. I want to set the auto refresh to get the data from database every...
2
by: malcster2 | last post by:
hello, i am a beginner to ajax. i have created a mysql database, which i would like to access from a web page. i have created 3 files, a html to display the data, a php file to extract the data,...
45
by: angelicdevil | last post by:
i have 2 tables 1 is status_type with field name status and other is users with field username and status now i want that the first listbox lists all status from status type ( this i have achieved...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.