Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-15-2012, 03:34 PM   PM User | #1
Vraith
New to the CF scene

 
Join Date: Oct 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Vraith is an unknown quantity at this point
Make text editable assignment

Hello

Yeah i know im not supposed to post homework here. But im in trouble with this distance course. I would be more than greatful if someone could tell me where to look. Cause i couldnt find it in the book or on the internet so far
( so far= many hours)..... I have made a few attempts,well.... i failed hard :P

My assignment is to make all <p class="haha"> editable withing a box by a mouseclick along with a Save and a Cancel button. Im just allowed to use Javascript

Dont have to do the assignment for me, just point me in the right direction . ....

Last edited by Vraith; 11-15-2012 at 03:48 PM..
Vraith is offline   Reply With Quote
Old 11-15-2012, 03:49 PM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
To make an element editable by a click, you may add onclick="this.contentEditable=true" on it. Not sure how/where you need to save it.
See http://html5demos.com/contenteditable
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Users who have thanked abduraooft for this post:
Vraith (11-15-2012)
Old 11-15-2012, 04:34 PM   PM User | #3
Vraith
New to the CF scene

 
Join Date: Oct 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Vraith is an unknown quantity at this point
That gave me something to work with.

Thanks mate
Vraith is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:20 AM.


Advertisement
Log in to turn off these ads.