Click here to Skip to main content
Sign Up to vote bad
good
I am able get Item by id. But how to update the item ?
 

using the following code i am getting value
var transaction = db.transaction("Emp", IDBTransaction.READ_WRITE);
                var objectStore = transaction.objectStore("Emp");
 
                var request = objectStore.get(id);                
                request.onsuccess = function(evt) {  
                //alert(request.result.Name);
                if(request.result)
                {                
                $('#txt_1').val(request.result.Name);
                $('#txt_2').val(request.result.Cname);
                 $('#txt_3').val(request.result.Salary);
                 $('#txt_4').val(request.result.Address);
}
}

 
if i want to change Salary of that particular record. how to do it
Posted 11-Sep-12 20:02pm


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 6,959
1 Prasad_Kulkarni 3,671
2 OriginalGriff 3,359
3 _Amy 3,332
4 CPallini 2,925


Advertise | Privacy | Mobile
Web04 | 2.6.130617.1 | Last Updated 12 Sep 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid