Jump to content

claritydigital

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

About claritydigital

  • Birthday 12/27/1984

Profile Information

  • Gender
    Female
  • Location
    Australia

claritydigital's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Whoops, I missed something... Sorry: OK what is happening is, 1. I click the element to edit the text. 2. I clear the old text, and enter the new text. 3. I click outside of the element to initiate Ajax to save the new text. 3a. Ajax shows "Saving..", which is default text for updating element. 4. Element reloads, and instead of showing the new text inside of element, the element shows (Click here to edit text), which is the default text in the js file for an element that returns empty. 5. I refresh the page manually, and new text is loaded in element. I hope that makes more sense. Thanks again
  2. Hi, thanks for your answer.. Umm..more code? Do you mean the $row variable? This is refering to a query done on page load. Its a user profile page: User profile page: otherwise, there is the entire page. but i dont think you will need that? the link to the js file contains the js for the in-place edit function, and everything else is posted underneath that. Thanks again..
  3. Hi all, I am trying to implement this rather snazzy in-place editor available here: tutorial: http://www.davehauenstein.com/code/jquery-edit-in-place/ js file: http://davehauenstein.com/code/scripts/jquery.inplace.min.js Using php/mysql i am updating the values sent through the editor, which works perfectly.. the value is inserted into the database. but once it updates, the plugin shows the default text for an empty element... and the content in the element isnt updated until the page is refreshed manually. where am i going wrong? this is the code im using: The element with in-place edit: The file (update.php) that updates the database: I would be so greatful for any help.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.