LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback
User Name
Password
LQ Suggestions & Feedback Do you have a suggestion for this site or an idea that will make the site better? This forum is for you.
PLEASE READ THIS FORUM - Information and status updates will also be posted here.

Notices


Reply
  Search this Thread
Old 04-26-2013, 09:04 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: MX 14
Posts: 1,933

Rep: Reputation: 62
reloading page before submitting post erases it


I notice that if I'm typing a post but reload the page for some reason before submitting it (for any reason, the reload erases what I typed. (In this case, my script blocker was interfering with some page functions, and when I told it to allow all scripts, it reloaded the page.) Unless it was probably a problem with my browser, might it be feasible to make LQ save unsubmitted text if you reload the page for any reason? Otherwise, I guess I must remember to type posts elsewhere and paste them here.
 
Old 04-27-2013, 03:15 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 28,724
Blog Entries: 55

Rep: Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325
While I'm sure something could be done with regards to "modern" browsers and local storage (besides Opera for example has had "notes" functionality built in for ages now), think of it from the perspective of the web server: if a page reload would not result in restoring contents then the World-wide Web would be a World of Hurt.
 
Old 04-27-2013, 05:20 AM   #3
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Distribution: OpenBSD
Posts: 1,518
Blog Entries: 6

Rep: Reputation: 499Reputation: 499Reputation: 499Reputation: 499Reputation: 499
That is why, on any board, when I spend many minutes writing a long post, I copy it to a clipboard before submitting. It is a lesson I learned after about the second time it happened. It has saved my "creative works" many times on every board I have posted.
 
1 members found this post helpful.
Old 04-27-2013, 05:22 AM   #4
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 4,534

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Quote:
Originally Posted by Randicus Draco Albus View Post
That is why, on any board, when I spend many minutes writing a long post, I copy it to a clipboard before submitting. It is a lesson I learned after about the second time it happened. It has saved my "creative works" many times on every board I have posted.
I follow this procedure also, it saves a lot of retyping.
 
Old 04-27-2013, 11:03 AM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 5,856

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Quote:
Originally Posted by newbiesforever View Post
I notice that if I'm typing a post but reload the page for some reason before submitting it (for any reason, the reload erases what I typed. (In this case, my script blocker was interfering with some page functions, and when I told it to allow all scripts, it reloaded the page.) Unless it was probably a problem with my browser, might it be feasible to make LQ save unsubmitted text if you reload the page for any reason? Otherwise, I guess I must remember to type posts elsewhere and paste them here.
Webpages that behave like this are the rule, not the exception.

As Unspawn points out, there are now ways to save text across refreshes, but they won't work on all browsers. Especially not on browsers with Javascript turned off. They also take time to program.

Last edited by dugan; 04-27-2013 at 11:05 AM.
 
Old 04-27-2013, 11:51 AM   #6
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 11,220

Rep: Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773Reputation: 2773
An auto-save feature will be available after the next major code update (and can be tested at http://www.androidquestions.org/forum.php now).

--jeremy
 
1 members found this post helpful.
Old 04-27-2013, 12:00 PM   #7
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,487

Rep: Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626
Not preserving contents is by design. W3 is stateless. By proper design of the pages, contents can be preserved through refreshes by the server. Maybe it is even automatically contained in numerous frameworks, maybe it is implemented client side as well by some smart browsers. Bottom line is, the web page designer (or the framework) has to do something to achieve this. Like Jeremy said, with the next update of this board the feature will be available, so it is something the web site design allows for.

jlinkels
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
html: submitting form data as GET parameters instead of POST? stateless Programming 7 02-15-2013 01:17 PM
reloading web page on clients from Apache server MrUmunhum Linux - Server 2 11-04-2012 03:30 PM
Reloading a page every 3 minutes in lynx Menestrel Linux - Newbie 1 05-21-2005 10:42 AM
Submitting a POST Form with Links HappyDude Programming 0 10-24-2004 02:07 AM
Reloading page with php emilioestevezz Programming 1 09-07-2004 04:40 PM


All times are GMT -5. The time now is 04:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration