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 6731111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:29:21+00:00 2026-05-26T10:29:21+00:00

Context I am working on a pretty complex web site framework which includes a

  • 0

Context

I am working on a pretty complex web site framework which includes a lot of client side manipulation of forms with dynamic look and feel being available for switching on the fly (a lot of code runs on page load and unload).

I need to be able to change the disabled state of many inputs (or read-only, when available) of various types on the fly.

The problem

The core design of many HTML form input types are screwed up (very inconsistent at the very least) and when coupled with a server running asp.net, it gets even weirder.

More specifically, as some of you know, doing disabled="true" on any input will kill the postback since its effectively not posted when form is submitted.

A possible solution

On page unload I can pretty easily remove the disabled state of every control which uses it, … this solves the "data integrity" issue…

But there is a BIG caveat:

The whole display flashes while the unload terminates (since all controls instantly go back to enabled), and then the page is left in a less than nominal state while the server replies.

The Killer question

is there a way for onbeforeunload or unload events to run in a way that whatever manipulations they do to the DOM isn’t refreshed on screen?

OR is there a way for the visuals to show a control AS if it where disabled, but its still actually posted to the server?

OR does anyone have ideas which might nudge me towards a solution?

[Edit]
I have the chance of needing to support only Chrome, so this may open up avenues of solution for some of you Chrome geniuses.

  • 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. Editorial Team
    Editorial Team
    2026-05-26T10:29:21+00:00Added an answer on May 26, 2026 at 10:29 am

    At form post time, you could also have a second hidden form (hidden with display: none) It could either be present in the original page or created dynamically via JS. None of the items in the 2nd form are disabled. Upon submit, you then copy the values from the original form to the 2nd form and you submit the second form. You never modify anything that is visible so nothing changes on screen. You are free to use disable all you want in the presentation, but still get all values sent to the server upon submit from the 2nd copy of the form.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some context: one of the systems I'm working on is a .net 2.0 web
I'm working on a web-based contest which is supposed to allow anonymous users to
I've been working on implementing a pretty complex system in JavaScript that needs to
Currently working on a pretty basic hosted PHP app which I'm in the process
I am working on a web site that lets members sign up for classes...
I am working with Blend and Visual Studio to create Surface content. Pretty much
Context: I'm working on master adding a simple feature. After a few minutes I
Working inside the context of an ASP.NET application I am creating a page that
I'm working on an asp.net-mvc application. The linq data context is being passed into
I am working on a content management application in which the data being stored

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.