jQWidgets Forums

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: What is "commit" doing ? What is "commit" doing ? #73891

    iceboxx89
    Participant

    since commit takes commit(true, data.new_id_from_db) is the below possible ?

    
    updateRow: (rowid, newdata, commit) ->
        $.ajax(
         ..
        ).done(
         (updated_data) ->
             commit(true, updated_data)
        )
    

    updated_data is the JSON Object from the database in which fields like lastupdated_on, etc.. might have changed. updatebounddata essentially does a GET again for the entire set, can that be prevented ?

    Regards,

Viewing 1 post (of 1 total)