I am using jeditable plug and it's working well but i am stuck with something
i need to do.

basically, i need to dynamically update the submitdata attribute of various
editable text inputs according to events happening on the client.
specifically, the user clicks on different thumbnails, and then can edit in
place different properties of the image (such as description, url etc). when
the thumbs are clicked i used .html() to load the new content in the various
editable inputs. then i try to reset the .editable attributes. I seem to be
able to update various attributes but for some reason, I cannot update the
submitdata attribute which i use to identify the rowid for the ajax call.
The code below is just an example to show/test the issue. Notice the postid
field of the submitdata is 64, then 61 in the second statement. And the
tooltip is 'blue', then 'red'. If i run the code, the tooltip will show up
'red' as i would expect. but the postid name/value pair sent to
ajaxaction.php will remain 64, not 61 as I would expect. For whatever
reason, once the submitdata is set, it seems it cannot be dynamically
changed. Maybe it's adding name/value pairs so it ends up with more than one
version of postid? I don't know ..but i cannot seem to get to the bottom. i
may not get something real basic...am new to jquery - so help appreciated
very much.

any ideas?

 $(".artistedit").editable("ajaxaction.php", { 
         id   : 'id',
         submitdata : {postid : 64, action : "updatepostartist"},
         name : 'newartist',     
         tooltip : 'blue'
     });
      $(".artistedit").editable("ajaxaction.php", { 
         id   : 'id',
         submitdata : {postid : 61, action : "updatepostartist"},
         name : 'newartist',
         tooltip : 'red'
     });          
-- 
View this message in context: 
http://www.nabble.com/jeditable---issue-dynamically-resetting-submitdata-tf4871410s27240.html#a13939161
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to