jeditable not updating browser display - leaves "click to edit..." after succesful edit

Posted by Enoch on Stack Overflow See other posts from Stack Overflow or by Enoch
Published on 2010-01-24T23:56:00Z Indexed on 2010/04/09 8:13 UTC
Read the original article Hit count: 391

Filed under:
|
|

I am using jeditable fairly simply and it all works fine, updates the database, etc. The only problem I have is after the user types the new value data and hits enter it doesn't update the field in the browser to show the new value - instead it puts "Click to edit..." in place of it.

Am I missing something like a return value from my php file? the php fucntion just takes the args and updates the database - and it works fine.

Enoch

the jquery\jeditable code

$('.edit').editable('update.php',{
   id: 'field',
   name: 'val',
   indicator: 'Saving...',
   tooltip: 'Click to edit...',
   select : true,
   submitdata : { db : "pers", kn : "key", rec : "?php echo $rec; ?" }
});

the div

<div class="edit" id="svc_ad1"><?php echo $row->svc_ad1; ?>< /div>

i also have a css class for pEdit

edit{    
  float:left;
  width:200px;
  height:15px;
  margin-bottom:5px;
  border-bottom:1px solid #aaaaaa;
}

© Stack Overflow or respective owner

Related posts about jeditable

Related posts about jQuery