Jeditable inserts' after clicking 'to edit'?

My code is:

$(document).ready(function() { $('.post_title').editable('editposttitle.php', { cancel : 'Cancel', submit : 'OK', indicator : 'Saving...', }); }); 

When saving text, the text "Click to edit" is inserted in my element? instead of saved text?

Any ideas?

Thanks!

+4
source share
3 answers

Sorry, found where I was wrong!

I did not select a new value in my php.

+9
source
 <?php echo $_REQUEST["value"]; ?> 
0
source

For me, the fix did not open the file locally as a file, but access to it through a web server. I don’t know why this was so, but as soon as I put the sample file on the web server, it started working.

0
source

All Articles