AnanthaKN / jquery-in-place-editor

Automatically exported from code.google.com/p/jquery-in-place-editor
Other
0 stars 0 forks source link

can't post to a database #118

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
hi guys,... 
I can't post to a database,... can anyone help please... thanks in advance 

this is my view page,... 
<script> 
    $(document).ready(function(){ 
    $("#editme8").editInPlace({
        callback: function(unused, enteredText) { return enteredText; },

url: "/users/ajax_short_status/<?php echo $user_obj['User']['id'] ?>",
        bg_over: "#cff",
        field_type: "textarea",
        textarea_rows: "15",
        textarea_cols: "35",
        saving_image: "./images/ajax-loader.gif"
    });
        }); 
</script> 

and this my php function: 

    $user['User']['short_status'] = $this->params['form']['value'];

I have also tried: 

    $user['User']['short_status'] = $_POST['update_value']; 

      $this->User->save($user);
      echo $user['User']['short_status'];
      die();

Original issue reported on code.google.com by chris...@yahoo.com on 10 Oct 2012 at 12:47