Jump to content

Display, click, edit, offclick - send - Form validation/field


TeddyKiller

Recommended Posts

I couldn't explain in the subject fully.

1. There is a box, probably a div.

2. Clicking on the div, perhaps removes the div, replaces it with a textfield sort of thing.

3. Insert information, or edit whats there..

4. Offclick of the field, and it submits, and updates the database.

 

It's a bit like facebooks "about me" box under the display pictures.

 

Sorry if this is hard to understand. How can I do this? Thanks

Link to comment
Share on other sites

Upon clicking on the div, just insert a <textarea> box and fill in the contents (if there are any). Does Facebook really update the info upon clicking away from the field? Seems a bit stupid. What if I decide to not change the contents?

 

But for "off click", give it an onblur event and use AJAX to make a call to a PHP file that handles the update to the DB.

Link to comment
Share on other sites

Does Facebook really update the info upon clicking away from the field?

 

It's kind of like.. an onclick event. The value will enver change or anything, until you click on it. (Usually means your going to change it) So.. it'll be a div with a value, onclick this and it changes into a textbox where you can edit..  I can't really explain.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.