Does not restore the values of form for the restoration of the tab

Part of my Web site uses a large number of forms on a single page. On the page, you can filter items (each item has its own form) and modify them. One entry looks like this: [name] [select status] [other Select]. Other important things are that the document has an expiration date in 1981 (to apply a page always up to date) and that change the value in the select results in the triggering of an AJAX function.

It works perfectly, except for one thing. When filtering State id 1, you get back a little of the element. Let's say that the result of the filter are input 5. Change entry #2 status, which triggered an AJAX function. It works very well, but here's the problem: when close the tab and re-opening with Restore tab, select values become disheveled.

Due to the execution of a fresh copy of the page, the browser will get a new copy of the page. Entry #2 is now gone (I'll keep calling it that, even if she disappeared because of the filter). Now, here's the problem: Firefox is attempting to restore the value to select it. Entry of the status #3 now has the same status of entry #2, #4 a #3 status and so on.

I managed to solve this problem on other browsers (Chrome, IE) with this little piece of jQuery:
{$(document) .ready (function ()}
{$("form[class^='startingformname']").each (function ()}
This.Reset ();
})
});
It works perfectly, except for Firefox, which seems to ignore the call to reset...

As this text is quite long, I'll keep my short question: How do you keep Firefox restore the values of the form (preferably: keep them on the selected item in the HTML)? Now, the user always gets a new copy of the page, and Firefox is trying to restore the old values on this page, even though the HTML code has changed.

I think your two choices is:

(1) prevent Firefox from page caching, or

(2) use a different event to trigger your reset function

As I understand it, the function $(document) .ready jQuery () raises the event DOMContentLoaded (or equivalent, if not supported by the browser). If the tab is cached in its ' cache fast back-forward ", Firefox can not fire this event when the user returns to the tab, just like Firefox does not always raise the load event in such cases.

Discover the event more described in the following article and see if you can use it to trigger your reset function in Firefox: https://developer.mozilla.org/docs/Using_Firefox_1.5_caching

Who is?

Tags: Firefox

Similar Questions

  • my task manager on windows vista family premium does not show the tabs before and used to work properly.

    my task manager on windows vista family premium does not show the tabs it used to, when I used to open the Task Manager it would be things like 'process' 'services' 'preformance' ect. in the tabs. but now when I open it it shows just a window that has two columns, one labeled task, and other labeled status. It shows what im running, but there any options at all as the winger treat ect. the window is not even an exit or minimize the icon as other windows are in the upper right. the only way to close it alt f4 do - what I do? Ive already tried to restart the computer, and I'm on the only account to administer it. I have a screenshot of the new manager of task here: http://i1119.photobucket.com/albums/k621/a_bakedpotato/vistataskmanagerisue.jpg

    Looks like you may have a virus or other malware. Get your updated antivirus program and boot into Safe Mode. Note that some viruses can hide from your normal antivirus program, so you really need to scan in Safe Mode. To enter in Safe Mode when you turn on first, press F8 on every seconds until you get the menu, and then select Safe Mode. Then run a complete system scan.

    Microsoft has suggestions and offerings to

    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-remove-a-computer-virus

    Moderator Forum Keith has a few suggestions along this line to

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/Windows-Explorer-has-stopped-working/6ab02526-5071-4DCC-895F-d90202bad8b3

    If that suits him fine. If this is not the case, use system restore to go back to an earlier date at the beginning of the problem. To run system restore, click Start-> programs-> Accessories-> System Tools-> system restore. Click on the box that says show more restore points.

    You can check the corrupted system files. Open an administrator command prompt and run SFC if the above does not help. Click START, and then type sfc in the search box, right-click to SFC. EXE and click run as administrator. Then, from the command prompt type sfc/scannow.

    Finally if all else fails, you can look at the rather cryptic system event log. To make, click Start-> Control Panel-> administration-> event viewer tools. Once in Event Viewer system log-click and scroll entries looking for these "error" with indicator see if you can find guidance on where the problem may be.

    `

    I hope this helps. Good luck.

  • I have my 2nd computer configured for synchronization, but it does not show the tabs/bookmarks from the first computer. I clicked 'Sync now' on the 2nd machine and this does not all tabs are displayed. Any thoughts?

    I created sync on my computer at home (desktop computer). I then put in place on my iPhone and it worked perfectly - showing me all open tabs, I had the computer at home.

    I just bought a MacBook Pro and want to get all my tabs/Favorites etc on the mac, computer at home. I put a synchronization on mac and coupled the unit and got the message saying that it is synchronized. However, none of my tabs or other data comes through to the mac.

    Does take a number of hours? (I waited all night). I clicked on "Synchronize now" on my mac hoping that would synchronize all of the computer to the main house, but who did not open the tabs either.

    Any thoughts?

    Hello!

    In order to view the tabs on other computers, that you have to go in 'History'-> 'tabs on other computers. Or type "subject: sync-tabs" in the address bar.

    In other words, the tabs that you have in a computer or phone will not show opened in the rest of your devices but they accessed through this menu option.

    I hope that clarifies the situation. I know that a lot of people expect the same behavior you describe, but when we tried it he finished is not not optimal.

  • Clsing Firfox 4. -for Yahoo does not save the tabs when closing like the previous versions. Your help says settings but does not tell me what setting...

    In all previous versions of Firefox, when I close Firefox, asked me if I wanted to save my tabs. The latest version does not have this option. Why not and what adjustment will bring back this feature. I don't have to pull down the menu history and ask the previous Session, I should be able to start with my previous session if I exit and not to close tabs.

    Updates should increase the functionality and NOT completely change the appearance of the program.

    Thank you

    "I asked also originally where the setting was to open Firefox with my previous tabs."

    I do not see that in your original question, above. I have provided an answer to this question in my second reply:

    • You can set this option in the Options > general change, "when Firefox opens:" to "show my windows and tabs from last time '.

    "If you receive a number of issues, I think that you and your partners might inform Mozilla user base concerns."

    1. It is not our function in his presence.
    2. You can send comments (comment box very limited; ( there will be no response to you to submit your comments) : help > submit your comments
    3. You can also make comments to the following address (there is no answer to you from the following link, more space of commentary available on this link): http://hendrix.mozilla.org/

    If the foregoing has answered your questions, please take a few minutes to return to the forum, connect and click 'Resolved' next to the answer that solves your problem of Firefox support, so that other users can find answers that have worked to solve problems. Thank you.

  • Disagreement with Firefox 3, Firefox 4 does not register the tabs open when I leave to have several tabs open. How can I do this in Firefox 4?

    In Firefox 3, when I got to close the program to have several tabs open, Firefox asked me if I wanted to save and remember the tabs open, so that I can get them at the next restart of Firefox. Firefox 4 is no more. Is it because I have have not properly set up somehow, or is this normal? How can I recover this function?
    Thanks in advance,
    Andrea

    A Firefox 4 is from Firefox showing the default warning message will stop, but it can be turned on again by changing some preferences.

    1. Type of topic: config in the address bar and press on enter
    2. Accept the warning message that appears, you will be taken to a list of preferences
    3. Find browser.tabs.warnOnClosepreference, if its value is set to false, double-click on it to change its value to true
    4. Repeat this for 3 preferences browser.warnOnQuit, the browser.warnOnRestart and the browser.showQuitWarning
  • Developer SQL 1.5.5 does not show the tab partition

    I recently turned to SQL Developer 1.5.5 on RHEL 5.3 with Java 1.6.0_13. In 1.5.5, there is no partition label when I view the details of the table. However the version 1.5.4 shows tab partition what was deliberately deleted or is it a bug?

    Here's an example of how my table was created:
    CREATE TABLE 'FOO '. "" TEST_PARTITION ".
    (NUMBER OF 'ID',
    TIMESTAMP 'TIMEFIELD' (6).
    ENABLE 'TEST_PARTITION_PK' CONSTRAINT PRIMARY KEY ('ID')
    )
    PARTITION BY RANGE ("TIMEFIELD")
    (PARTITION 'TEST_PARTITION_20090101' VALUES LESS THAN (TIMESTAMP' 2009-01-01 00:00:00 '),)
    PARTITION 'TEST_PARTITION_20100101' VALUES LESS THAN (TIMESTAMP' 2010-01-01 00:00:00 '),
    PARTITION 'TEST_PARTITION_20110101' VALUES LESS THAN (TIMESTAMP' 2011-01-01 00:00:00 '),
    PARTITION 'TEST_PARTITION_20120101' VALUES LESS THAN (TIMESTAMP' 2012-01-01 00:00:00 '));

    Yes, you are right. I am able to select my partitioned tables existing and then if I select your, I can see the scores and details. But when I run the script you provided from the outset the tabs were not visible, I could see them only once I chose one of my first partitioned tables. As you say, this is not the case in 1.5.1, but is so for 1.5.5. I experienced a bug 8713231and will be developers to address the issue.

    The database is as a whole, that we display different tabs for different databases, but you're on 11g, is not the issue.

    Sue

  • Firefox does not save the tabs after the upgrade of Microsoft Silverlight.

    A Web site that I visited recently demanded that I update to the latest version of Silverlight. I did it, and Firefox said it had to be restarted. When I restarted Firefox, even if she asked me to save my tabs this initial reboot, my tabs have not been saved. Now, every time I close Firefox, the warning that I am about to close x number of tabs appears, and there is no option to save my tabs. Clearly, the Silverlight upgrade has been the cause of this error, but how to re - activate the option to save the tabs?

    You can check the startup parameter:

    Tools > Options > general > startup: startup of Firefox:

    Show my windows and tabs from last time

    Show my home page

    See also:

  • 'Ctrl + End' keyboard shortcut does not work as expected. I tried safe mode. does not move the tab to the end of such specified list, just scroll to the end of the page.

    According to http://support.mozilla.com/en-us/kb/keyboard+shortcuts,.
    'Ctrl + End' should move the active tab to the end of the list of tabs.

    But the shortcut does not work. Only, it scrolls to the end of the current page as if only "End" is pressed.

    I tried the mode without failure of firefox and closed all other open programs.

    What to do to debug this problem?
    or may there is a bug in firefox somehow?

    See the post of dao in this MozillaZine forum thread: http://forums.mozillazine.org/viewtopic.php?f=23 & t = 1304895

    Add code to userChrome.css below @namespace.

    See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    .tabbrowser-tab[selected="true"] {-moz-user-focus: normal !important;}
    
  • stock browser does not display the tabs

    No matter who has noticed that the stock browser has occasionally tabs disappear. all I see is the blue line of the page loading. I can't scroll to the top to see the tabs. the web page displayed will completely to the top of the screen. the blue line load runs just below the bezel. I have to kill the browser back to the tabs. It happened a few times yesterday. Today, well. is this a bug or something I'm doing.

    If you have started experimental radial orders, then the tabs are not displayed unless there is more than one open. If you want to see them, bring out the radial control and choose the + to open a new tab. The new and the current tap water will appear at the top. In fact, it's one of the best features of the controls radial. With them is active, you can view your main pages in full screen without extra effort.

  • The Task Manager does not display the tab process running

    I can't seem to view the processes tab of Task Manager running in my pc and my user account is an administrator account. The only tab that appears is the users tab. What can I do to fix this? Whenever I want to kill some programs running that is causing trouble, I can't use this utility.

    Hi Darko74

    Thanks for the reply.  I forgot to ask the last time, you see the menus. File, Options, display and help?
    Otherwise, the information below may help solve this problem.

    The task manager has two different views. For the display that includes menus and tabs, double-click the border of the Task Manager window. The to return to the view without menus and tabs, double-click anywhere in the border around the tabs.

    Please post back and let us know if it helped to solve the problem.  -Thank you

    Ken
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • BAM 11 g Active Studio does not display the tab names

    When I try to change a view with double click opens a window with several tabs, but without any label, so it's no possible select a. But if I click on Properties it displays the tabs normally.

    He added in both cases, with new and existing reports.

    We are using IE 7.0.5730.13 on Win XP Professional version 2002 SP3 and SOA Suite 11 g is installed on Oracle Linux 5.

    Any idea what's going on?

    Concerning

    Jorge Medina

    Hello world

    It seems that JDK 1.6.0_18 breaks BAM (and possibly other products like Webcenter).

    As a solution, use JDK 1.6.0_14, which we have confirmed the problem on an already broken system that had JDK 1.6.0_18.

    Regards, Stephen

  • Bug Firefox 29.0.1: it does not put the tabs on the bottom.

    Just updated to firefox 29.0.1 and tabs are now displayed at the top.
    The browser.tabs.ontop option is already set to false.

    This isn't a bug; preference has been voluntarily removed.

    You can use one of the following Add-ons.

    If you don't want to install an add-on, put the style in the userChrome.css file and restart Firefox. You can use the stylish add-on instead, if you have installed.

    @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
    /* The above line should appear only once in the file */
    
    #TabsToolbar { -moz-box-ordinal-group: 99 !important }
  • Tab key does not open the tabs

    When I click on the new tab button nothing happens. even when you click on file and select open new tab.

    Uninstall the toolbar Ask and it should work again. There is a compatibility issue with the Ask and Firefox toolbar that prevents the opening of new tabs.

  • my iphone 5 s has been disabled. I'm trying to restore my iphone with itunes and itunes asks me to put the password for my iphone. but my iphone does not display the unlock screen. What should I do now?

    my iphone 5 s has been disabled. I'm trying to restore my iphone with itunes and itunes asks me to put the password for my iphone. but my iphone does not display the unlock screen. What should I do now?

    Hello

    Follow the instructions here:

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • How the LED lights up when a threshold is reached, then turns off only when the value does not reach the threshold for a while?

    Hi, I want to write a program that can turn on the LED when a range of value, this is the threshold and only when the value does not reach the threshold for a period of time, say 5 seconds, then the LED will turn off, otherwise it will remain. How can I achieve this in labview? Can someone help me? Really thanks!

    I assume that you use a while loop to keep the updated value.

    Add a record to offset to your looping it initialize with a U32 (time in ms)

    Add the registry to offset to your loop that keeps the previous value of your bool

    When your reaches the threshold value => the light and set the current time in your shift register.

    In the next iteration of the loop weather check value is still above threshold

    => Y-online previous set to true?

    => Y-online the next iteration

    -Online N => turn switch on and set the current time in your shift register.

    -Online N => subtract the time current less time shift record-online more then 5 seconds?

    => Is => keep turning on

    -Online N => turn given

  • I have a toshiba laptop purchased recently. After the scheduled updates it does not recognize the wireless network. I have to do a system restore. is there a solution for this problem?

    I have a toshiba laptop purchased recently.  After the scheduled updates it does not recognize the wireless network. I have to do a system restore.  is there a solution for this problem?

    Hello

    Make sure you have the latest network adapter drivers fron toshiba

    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp

    and if windows update is at the origin of the problem change how to get updates to uncover the problem update

    When you have found the issue, a right click on it then invited uac then hide

    read the information on the link below

    http://www.bleepingcomputer.com/tutorials/tutorial140.html

    Download updates but let me choose whether to install them - if you select this option, Windows will download the updates on your computer, but not install them automatically. If you want to install updates, then you must install them manually. You should only select this option if you have a reason to not install updates automatically. Only advanced users should use this option.

    Check for updates but let me choose whether to download and install them - if you select this option, you'll be alerted when there are new updates available for download and install. You can then choose to download and install the updates that you want. This option should really be reserved for people who know exactly which updates they need, or those who have little access to the Internet.

Maybe you are looking for

  • considering that shponkah Panel in the preferences?

    I can't find a tab panel in the preferences to change the behavior of the tab. Where is he past? and yes my firefox is updated 38.0.5 Ive looked and looked... im thinking as something not totally with my firefox browser and need to re - install...

  • Problem while setting team project collection

    Hello I am facing a problem in trying to fix a Collection of Project Team (PTC) to a centralized server TFS. the error is error in tracking work items. Error description: Transaction (process ID 570) has been blocked on the resources of locking with

  • Desktop icons changed Bluetooth

    I downloaded the updates of Windows and shortly after the word for docs document icons on that I backed up my office turned the Bluetooth icons.  is this normal?

  • Having hard time update of Windows Vista Edition Home Premium Windows Vista Business

    The machine is computer laptop Dell Studio.    3.0 GB Ram 250 GB HD * original title - hurt update in Windows Vista Home Premium Windows Vista Business. Error code request ' cd/dvd drivers to install before continuing. However it will not let me inst

  • Smartphones blackBerry sync with Outlook

    Just got my phone yesterday evening.  I tried to sync my Outlook with the phone and no luck.  Tried to find used on how to do it and can't find it.  I really need to get my numbers on the phone.  If you talked about recently, sorry, but can someone d