473,386 Members | 1,810 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,386 software developers and data experts.

By refreshing the button how to get the latest records from database byu using ajax

12
I have requirement list of records are there in that each and every record i need to keep refresh button by clicking that each button ....it should take tha latest value from the database that too it should fetch individual column
Jun 29 '07 #1
5 1621
acoder
16,027 Expert Mod 8TB
Show some code.

For each button, call a generic piece of Javascript code which will take the row/column no. (or whatever can identify the piece of information that you need) and make an Ajax request. Using the response, it should be easy to update.

How this could be done will be more clear if you post some code.
Jun 29 '07 #2
Nivetha
12
i have a for loop through which i am able to populate my database contents and display the results on individual rows of my table.

Now i want to refresh a particular row and not the entire table.I am giving a refresh button to each row ,onclick of which i want to refresh that particular row.

Is this posible in Ajax keeping in consideration that the all my rows are lying within the " for loop".

Thanks in Advance.
Jun 29 '07 #3
acoder
16,027 Expert Mod 8TB
Yes, it should be possible as long as you have the relevant code on the server side and you call it with the correct parameters. For example, the rowid could be a unique identifier for a record in the database which corresponds to the row that you're trying to refresh. If you pass that along to the script and the server-side script returns one row, you can use that to update the row.

Post your code.
Jun 30 '07 #4
Nivetha
12
i have a unique row id in my table but my only concern is how to get that in jsp page bcoz each record it should take latest value not for the whole table and also i never used ajax ..can u give some example for this scenario..

Thanks in Advance
Jul 3 '07 #5
acoder
16,027 Expert Mod 8TB
Check out the tutorials in the Offsite Links thread. They contain plenty of examples. If the unique rowid corresponds to the id in the table then the JSP code should be easy. As far as AJAX is concerned, see the examples and tutorials. If you get stuck, post your code here.
Jul 3 '07 #6

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

Similar topics

1
by: ashish ranjan | last post by:
Hi there , I m in great need to know: How to select row from grid and update record in database using Ajax. u can use c#,.net and java script. Thanks in advance, Ashish Ranjan
5
by: lucyh3h | last post by:
Hi, I am trying to use XMLHttpRequest to do server side validation. I have several fields on a form and a submit button. The submit button has an event assocated with it when clicked. The...
3
by: bss | last post by:
Dear All, I have developing a French website using PHP & Ajax. In that I tried to display some French texts from mysql database using Ajax. Form local I got the text from db with Correct...
2
kaleeswaran
by: kaleeswaran | last post by:
hi! i want to know ..how to getting multiple rows from the database using ajax.and i pass these value to the javascript.give me solution... ...
2
by: mukeshrasm | last post by:
hello i want to display the subjects on the same page based on class selected by user. i am using dropdown for classes. so when user will select a particular class then it will display subjects in...
1
by: acl20032003 | last post by:
anyone here could show me a simple codes on deleting files from the database using ajax? any help would be appreciated. im just new to ajax.
1
by: krishemanth | last post by:
sir, I want to update a value in dropdown using ajax i had a listing of some categories in dropdown along with that i had an add category in that dropdown box when select that addcategory option...
17
by: Shalini Bhalla | last post by:
i have 2 tables bank master and branch details having bankcode as a common feild . i have designed a form in which i am filtering branches according to a particular bank code using ajax ,...
0
by: AnaOlinto | last post by:
Hi, I'm new using AJAX and I'm developing a page where I need to populate a CheckBoxList based on what the user types (it's like an AutoSuggest). I don't know how to bind the checkboxlist from the...
2
by: raamay | last post by:
hello experts, i have fetched records from mysql database and against each record i want to place a update tag which when clicked will update the corresponding record using ajax and php. But here...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.