Don't restore form values on tab restore

A part of my website uses a lot of forms on a single page. On the page, you can filter the items (each item has his own form) and alter them. A single entry looks like this: [name] [select for status] [other select]. Other significant things are that the document has a expire date in 1981 (to enforce an always up to date page) and that changing the value in the select results in triggering an AJAX function.
This works perfectly, except for a single thing. When filtering for status id 1, you get a few item's in return. Let's say that the result of the filter are 5 entry's. I change entry #2's status, thus triggering an AJAX function. this works great, but here's the problem: When closing the tab and re-opening using tab restore, the values of the select become messed-up.
Because of the enforcement of an always fresh copy of the page, the browser will fetch a new copy of the page. Entry #2 has now disappeared (I'll keep calling it that, even tough it has disappeared due to the filter). Now here's the problem: Firefox tries to restore the select's value. Entry #3's status has now the same status of entry #2, #4 has #3's status and so on.
I've managed to fix this on other browsers (Chrome, IE) with this little piece of jQuery:
$(document).ready(function() {
$("form[class^='startingformname']").each(function() {
this.reset();
This works perfectly, except for Firefox, which seems to ignore the reset call...
As this text is rather long, I'll keep my question short: How do you prevent Firefox from restoring the values of the form (preferably: keep them on the selected item given in the HTML)? The user now always gets a fresh copy of the page, and Firefox tries to restore the old values on that page, even if the HTML has changed.

'''''Edit: I just realized that tab restore works differently than Back. So please disregard this example.'''''
But if you reload the page clearing the cache Ctrl+Shift+r, do the form fields revert to their original "as served" values? That's the typical behavior.
Here is a comparison of identical forms, the only difference is that the "B" version sets cache-control:no-store in the headers. The expected behavior is that you can submit the form on the "A" page and go back and see the modified values, but when you submit the form on the "B" page and go back the form should have only its default values.
* http://dev.jeffersonscher.com/jscher2000/Enter-Does-Tab-2A.asp
* http://dev.jeffersonscher.com/jscher2000/Enter-Does-Tab-2B.asp

Similar Messages

  • Is there a way that you can have two different text fields (email, phone) that one at least one of them must be completed before submitting the form? Can it be done using javascript in the validation tab? if so, how?

    Is there a way that you can have two different text fields (email, phone) that one at least one of them must be completed before submitting the form? Can it be done using javascript in the validation tab? if so, how?

    Here is one solution:
    // mouse up action for submit button;
    function GetField(cName) {
    // get field object for cName field with error checking;
    var oField = this.getField(cName);
    if(oField == null) app.alert("Error accessing field named " + cName + "\nPleae verigy field name, spelling and capitalizeation.", 1, 0);
    return oField;
    } // end GetField function;
    var oPhone = GetField("phone");
    oPhone.required = oPhone.value == oPhone.defaultValue;
    var oEmail = GetField("email");
    oEmail.required = oEmail.value == oEmail.defaultValue;
    if(oPhone.required && oEmail.required) {
    app.alert("Missing required fields.", 1, 0);
    } else {
    app.alert("Submitting form", 3, 0);
    // additional code for submission;

  • I bought an apple iPod 5th generation the other day and I cannot remember the unlock passcode. I have done the restore thing, but because I never set it up or synced it with iTunes, it does not recognize my device. It is disabled for one hour. Please help

    I bought an apple iPod 5th generation the other day and I cannot remember the unlock passcode. I have done the restore thing, but because I never set it up or synced it with iTunes, it does not recognize my device. It is disabled for one hour. There's only a few things that could be my passcode, but because it disables for an hour, it is time consuming trying to figure it out. What do I do? I do not care about having to erase everything since it's new and there's nothing on it, but it was never synced with iTunes.

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • I just rented 2 movies on my Apple TV and now I am getting the message, "Your Apple TV is not authorized to play this content". Now I have 2 Apple TV's and they both are saying the same thing. Yes, I have done reset, restore, etc. but nothing! Frustrated

    I just rented 2 movies on my Apple TV and now I am getting the message, "Your Apple TV is not authorized to play this content". Now I have 2 Apple TV's and they both are saying the same thing. Yes, I have done reset, restore, etc. but nothing! Frustrated & out $10.
    Apple TV (3rd generation), OS X Mountain Lion (10.8.3), 2 Apple TV's (3rd Generation).

    Good call!! Thanks a million. Glad I asked & thanks for the quick response. I was getting frustrated. Thanks again!!!!!

  • I just rented 2 movies on my Apple TV and now I am getting the message, "Your Apple TV is not authorized to play this content". Now I have 2 Apple TV's and they both are saying the same thing. Yes, I have done reset, restore, etc. but nothing!

    I just rented 2 movies on my Apple TV and now I am getting the message, "Your Apple TV is not authorized to play this content". Now I have 2 Apple TV's and they both are saying the same thing. Yes, I have done reset, restore, etc. but nothing! Frustrated & out $10.

    Good call!! Thanks a million. Glad I asked & thanks for the quick response. I was getting frustrated. Thanks again!!!!!

  • With the latest IOS 7.0.3 for my iPhone, it no longer syncs with iTunes. I've run the diagnostics for syncing and it says everything is working, which it clearly isn't. Is there anything to be done without restoring iPhone? Thanks

    with the latest IOS 7.0.3 for my iPhone, it no longer syncs with iTunes. I've run the diagnostics for syncing and it says everything is working, which it clearly isn't. Is there anything to be done without restoring iPhone? Thanks

    update : so after reading numerous posts, I tried unchecking entire playlist and just tried one of my playlists. That sync seemed to work, so I rechecked entire playlist and did the sync. It worked. Then I went in to my "walk to work" playlist and added some songs to see if it would sync now, and it did!!! so happy now. will see what happens tomorrow.

  • My iphone 3g is getting really slow. I done full restore ,deleted most apps . Not many photos in my album. i have no videos on my iphone. When taking photo with my iphone it takes ages for camera to open up. Very slow to take photo. Any suggestions? Help!

    My iphone 3g is getting really slow. I done full restore ,deleted most apps . Not many photos in my album. i have no videos on my iphone. When taking photo with my iphone it takes ages for camera to open up. Very slow to take photo. Any suggestions? Please help !!!!

    Thank you very much for your reply gdgmacguy :) I did all you suggested apart from restore as new device . Didn't know I could do that . After restore I did restore from back up only,  as I didn't want to end up without contacts details on my phone. If I restore as new device how do I get my all contacts? Still will have to use back up? Sorry if it sounds like I don't know what i am doing, i just have no one to ask who would know. Thank you

  • My ipod and itunes both are skipping to another song about in the middle of the song. It doesn't happen on all songs...only some songs. I have reset the ipod, I have done a restore, I have reloaded itunes, I have updated the ipod but still am unable fix

    My ipod and itunes both are skipping to another song about in the middle of the song. It doesn't happen on all songs...only some songs. I have reset the ipod, I have done a restore, I have reloaded itunes, I have updated the ipod but still am unable to figure out why. It did not used to do this. I can't figure out any pattern to the songs it does it on versus that it doesn't do it on. Some of the songs are purchased, some are imported, etc. We are running Windows 7.

    how long have you had your ipod? mine did the same but after a while you need to get a new one because of the battery...

  • I'm trying to load my newspaper and I keep getting the error message Failed to Load Kiosk, I've done a restore but no joy - any ideas?

    I keep getting the error message Failed to load kiosk when trying to upload my copy of the Times, I have done a restore but that hasn't worked - any ideas how to get the kiosk back and functioning again? All software is up to date.
    many thanks

    Hello, anabelleho. 
    Thank you for visiting Apple Support Communities.
    Here is a troubleshooting article that I would recommend going through when experiencing this issue.
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    Cheers,
    Jason H.

  • Flashing finder icon and showing "don't restore windows" and "restore windows" text box

    hi, i hav problem with the flashing finder icon and showing "don't restore windows" and "restore windows" text box. im using macbookpro MAC OS X 10.7.5. i've search for solutions, lik relaunch the finder by pressing COMMAND+ALT+esc, but it didn't work for me...
    any1 can help me, thx...

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the name of the crashed application or process in the Filter text field. Select the messages from the time of the last crash, if any. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    Still in the Console window, look under User Diagnostic Reports for crash reports related to the process. The report name starts with the name of the crashed process, and ends with ".crash". Select the most recent report and post the entire contents — again, the text, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • After updating my iphone 4 to iOS6 the screen will periodically black out.  i have to shut it down 2 or 3 times to get it to come back on correctly.  any idea on a fix.  i have done a restore and that did not help

    After updating my iphone 4 to iOS6 the screen will periodically fade out to black and will not come back up.  I have to shut the phone off and back on 2 or 3 times to get it to come back on.  I have done a restore and that did not help.  any ideas?  is this happening to anyone else?

    did you restore from backup or as a new device?  Restore as a new device.  Before you add any apps to it, use the phone with just the iOS-installed apps.  If it's fine, slowly add a few purchased apps back at a time.  Do this until the offending app is found. 

  • What will happen if i don't restore from backup?

    what will happen to my itunes if i dont restore my ipod from my backup?

    Nothing happens to iTunes. However, if you don't restore the iPod Touch then your Touch will be restored to it's "as new" condition but with upgraded firmware (if that's what you are going to do.)

  • I'm trying to update to the latest software update, but won't let me do it. I have done a restore and tried again but still no luck. Any advice?

    I'm trying to update to the latest software update 5.0, but won't let me do it. I have done a restore and tried again but still no luck. Any advice?

    The Original update for Apple TV was to 4.4 then a bugfix appeared called 4.4.1  Both of these have issues so Apple Pulled them and currently 4.3 is the current version for Apple TV IOS. In fact there are a number of comments in other threads where people carried out the upgrades only to restore back down to 4.3 because they did not work. Guess we will wait for Apple to send out an update.

  • The  finder keeps flashing "restore windows or don't restore windows

    does anynone know, why the finder keeps flashing and saying that the restore windows (Don't restore windows or Restore Windows)

    Try this.
    1. click on "spotlight" on the top right corner of your desktop.
    2. type "terminal" (without the quotation marks) and open it.
    3. when the terminal opens, type "cd desktop" and hit enter.
    4. type "rm -rf .DS_Store" and enter
    5. type "exit" and enter
    If it doesn't work try the follow:
    1. click on "spotlight" on the top right corner of your desktop.
    2. type "terminal" (without the quotation marks) and open it.
    3. when the terminal opens, type "sudo rm -rf ~/.Trash/" (This will empty your trash) and enter
    4. type your administrator password. As you type, you will not see any character on the screen. Just type it and hit enter. (If you left your password blank, you have to make one by going to system preferences - users & groups - change password)
    5. type "exit" and enter

  • My iphone 4 camera shutter won't open. I have already done a restore and I am using the latest iOS. The front facing camera works during FaceTime but crashes when I switch to rear camera. in Camera mode I can't switch to front camera.

    My iphone 4 camera shutter won't open. I have already done a restore and I am using the latest iOS. The front facing camera works during FaceTime but crashes when I switch to rear camera. in Camera mode I can't switch to front camera. I plan on replacing this phone with an iphone 5s when it comes out but I need this phone to work until then.

    When you did the restore, did you restore from a backup or restore as new? The final step of user troubleshooting is to restore as a new device, not from a backup. If you restore as a new device and the camera still does not function, it is probably a hardware issue. Make an appointment at the Apple Store Genius Bar and have the device checked by a Genius.

Maybe you are looking for

  • SD and Delivery objects Status checking

    HI Experts, In FI we have a transaction called FB99 to check whether the FI document is eligible for Archiving or not. Similarly , Do we have any transactions to check whether the given Sales , Invoice and Delivery documents are eligible for Archivin

  • Add value field to operating concern

    Hello, I have created a new value field VV955 and want to add it to my operating concern in transaction KEA6. I go into change mode for all value fields for my operating concern and add a new line with my value field. When I hit the save button, it s

  • IPad stopped changing orientation.  Audio/orientation switch is correct.  What did I change?

    I am learning to use my new iPad.  While checking it out, I must have done something to make it stop orienting between portrait and landscape.  I know I moved the switch in setup/general/audio but I moved it back.  When I move the actual switch on th

  • Implementing Application gateway for 2 enterprise portals with backend syst

    Hello Experts, We have a scenario where in we have 2 different portal with backend SAP systems attached to them. We want to expose those to internet. we have an SSL certificate with a FQDN https://www.XXX.com Can we have a mechanism in the applicatio

  • How do i autofit an image ?????????

    im working in Dreamweaver 8, i have a table with rows and columns .... in the very bottom cell i have an image, above it there is some text with no preset width, .... so i might need to strech that cell's width ... when i do, that image below it keep