Question

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 into my element? instead of the saved text?

Any ideas?

Thanks!

Was it helpful?

Solution

Sorry, found where I was going wrong!

I didn't echo the new value in my php.

OTHER TIPS

<?php echo $_REQUEST["value"]; ?>

For me the fix was not opening the file up locally as a file, but accessing it through a webserver. Not sure why this was the case, but as soon as I put the example file on a webserver it started working.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top