Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 61667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:21:18+00:00 2026-05-10T18:21:18+00:00

In our CMS, we have a place in which we enable users to play

  • 0

In our CMS, we have a place in which we enable users to play around with their site hierarchy – move pages around, add and remove pages, etc.

We use drag & drop to implement moving pages around.

Each move has to saved in th DB, and exported to many HTML files. If we do that in every move, it will slow down the users. Therefore we thought that it’s preferable to let the users play around as much as they want, saving each change to the DB, but only when they leave the page – to export their changes to the HTML files.

We thought of making the user click a ‘publish’ button when they’re ready to commit their changes, but we’re afraid users won’t remember to do that, because from their stand point once they’ve moved a page to a new place – the action is done. Another problem with the button is that it’s inconsistent with the behavior of the other parts of the site (for example, when a user moves a text inside a page, the changes are saved automatically, as there is only 1 HTML file to update)

So how can we automatically save user changes on leaving the page?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T18:21:19+00:00Added an answer on May 10, 2026 at 6:21 pm

    You should warn the user when he leaves the page with javascript.

    From http://www.siafoo.net/article/67:

    Modern browsers have an event called window.beforeunload that is fired right when any event occurs that would cause the page to unload. This includes clicking on a link, submitting a form, or closing the tab or window.

    Visit this page for a sample the works in most browsers:

    http://www.webreference.com/dhtml/diner/beforeunload/bunload4.html

    I think it’s bad practice to save the page without asking the user first, thats not how normal web pages work.

    Sample:

    <SCRIPT LANGUAGE='JavaScript1.2' TYPE='text/javascript'> <!-- function unloadMess(){     mess = 'Wait! You haven't finished.'     return mess; }  function setBunload(on){     window.onbeforeunload = (on) ? unloadMess : null; }  setBunload(true); //--> </SCRIPT> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For our CMS we have a site manager that defines the site's tree structure
I have an application that I would like to embed inside our companies CMS.
We currently have a Live ASP.NET application (Basically a CMS) running on our IIS7
We need to send uploaded files from our CMS website to any antivirus product
We use Sharepoint as CMS for our webpages at work. I know how to
I'm looking at building basic CMS functionality into our web product and am researching
We've used the no-longer-supported RichTextBox control as part of our (ASP.NET-based) CMS for a
Our company is currently writing a GUI automation testing tool for compact framework applications.
Our team develops distributed winform apps. We use ClickOnce for deployment and are very
Our team is creating a new recruitment workflow system to replace an old one.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.