473,394 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Reloading ContentEditable area when visitor clicks on back button

I'm building a rich editor to replace a textarea, and am about to
release it as "live." But there's one last thing I want to do with it.

When using a textarea, if the visitor clicks on "back" then the
information is (usually) still there. But with the contenteditable
field, it's gone.

I read on a web page a few days ago that there was an easy solution to
this, but I didn't save the information and didn't save the page. Any
ideas?

TIA,

Jason
<note>I originally posted this to a DHTML ng a week ago, but it's a
low-activity ng and no one has replied. I've had excellent advice in
CLJ before, so I'm hoping you guys will forgive me that this is
slightly off topic.</note>

Jul 30 '07 #1
2 1318
On Jul 29, 10:25 pm, Jason <jwcarl...@gmail.comwrote:
I'm building a rich editor to replace a textarea, and am about to
release it as "live." But there's one last thing I want to do with it.

When using a textarea, if the visitor clicks on "back" then the
information is (usually) still there. But with the contenteditable
field, it's gone.
Right.
>
I read on a web page a few days ago that there was an easy solution to
Every time a change is made, update a hidden form field. Then in the
window onload event, insert the contents of that field into the
editable element.
this, but I didn't save the information and didn't save the page. Any
ideas?
Post a URI so I can look at it. I may have some additional
suggestions. Last I saw it, the feature detection portion needed
work.

Jul 30 '07 #2
Post a URI so I can look at it. I may have some additional
suggestions. Last I saw it, the feature detection portion needed
work.

Remember that this is a Perl script, so there are some things going in
the background that you don't see client-side:

http://www.gowilkes.com/cgi-bin/beta.cgi

I'm still using the oDiv dummy field because I couldn't get the one
that you posted before (to test the body) to work.

I've had a lot of people (both techies and non-techies) to help beta
test it on my site, and the only problem I've had is that one person
tried to submit a reply, but it gave him an error that there was
nothing in the comments field. He tried to reply again, and it went
through. I haven't been able to duplicate that error, though, and no
one else has reported it.

Thanks, David,

Jason

Jul 30 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: John | last post by:
Could anyone please help me on this?? I have a php script page, which is basically quiz. Visitors (after login in with their email address) are supposed to answer each question, and when they...
4
by: Anshul Gupta | last post by:
Hi, Is there a way i can just print a designated area out of the whole asp(or html) page using javascript or vbscript. i want to mark out the beginning and the end on the page and create a link...
6
by: iwearwatches | last post by:
Group, What a root canal. Here is what I have: I have a page that has several layers that I will either show/hide based on a graphic/tab that the user clicks. (works perfectly)
2
by: Dung Ping | last post by:
I like to see following to happen: When typing a number of 1 to 4 immediately after an alphabetic letter, it would become corresponding superscript. But if the user leaves a space after the...
8
by: Galina | last post by:
Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date. When faculty is selected, lists of lecturers and...
3
by: nAmYzArC | last post by:
Hello every1, I have a "<DIV" tag with contenteditable turned on. I am using this as an area that users can either paste or drag/drop text into. The text can come from other browser windows and of...
8
by: Salvatore Sanfilippo | last post by:
Hello all, I've a very simple problem that appears to don't have a simple solution. I've a (dynamically generated) page with a number of external links. What I need is that if the user clicks...
2
by: jwriteclub | last post by:
I have a question regarding back button functionality in an "ajaxy" web application. Here is the scenario: The user navigates to a page http://domain.com/app/. Since app/index.php file...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.