Form field validation: All required data lost when clicking browser-back-button!

Hi folks,
I have a big problem using the validation text  field components of Spry when the user must click the browser back button (or clicking a history.back()-Link) because he has  entered a wrong CAPTCHA-code!
Right now, all the data - only in the required fields - not in the optional  fields!!! - is lost and the user has to enter all data once  again;-(
Does anybody know why only the data in the  required fields is lost? Is there a nice workaround?
I really  appreciate a quick answer:-)
Kind regards from cloudy Germany
Thomas

rememberFormInputs('frmlogin', 'input-');
'frmlogin' should be the id of page, not the name. so on your <form> tag, add the id="frmlogin"
remove the
// overload alert
function alert(str) {
     var el = document.getElementById('alert');
     if (el) {
          el.value += str+"\r\n";
Its really bad practice to overwrite the alert. and inside the rememberFormInputs remove these lines:
alert('old value remembered: '+old_value);
alert('setCookie: '+name + ' = '+value);
and it should work

Similar Messages

  • Employee lock when push browser back button

    Hello All.
    I have the following problem. I have installed the ESS in EP 620 sp2. When i was change some data from personal data iview and i push browser back button the system don´t remove the employee lock and i can´t access to my employee data.
    thanks in advance
    Raul

    use the following lines in your web.xml to avoid this bug of the current jsf-ri version.
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>I already tried to report this bug some time ago:
    http://forum.java.sun.com/thread.jsp?forum=427&thread=478928&tstart=180&trange=15

  • Need to select link twice when using Browser back button

    I see that my command_link works fine in normal scenarios.
    But when I come to that page using browser back button and then select the link within the page.... the first time, looks like its regenerating the page and only when I select the link second time it is calling the action listener associated with the link.
    Any clue as to how to fix this problem?
    Thanks

    use the following lines in your web.xml to avoid this bug of the current jsf-ri version.
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>I already tried to report this bug some time ago:
    http://forum.java.sun.com/thread.jsp?forum=427&thread=478928&tstart=180&trange=15

  • When clicking the back button on some website I get a response in a drop-down stating "Firefox prevented this page form automatically reloading. Could you tell me how to fix this please

    This applies particularly to CNN, when clicking onto a story at the home page, then clicking back to the home page. A black bar appears at the top of the screen, on the left side the message above and on the right side an "Allow" button and a X for closing that window. Clicking on the "Allow" results in the same notice being displayed.

    See:
    * Firefox > Preferences > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    For other OS see:
    * [http://kb.mozillazine.org/Menu_differences Windows: Firefox (Tools) > Options - Mac: Firefox > Preferences - Linux: Edit > Preferences]
    * https://support.mozilla.com/kb/Options+window+-+Advanced+panel#General_tab
    See also:
    * http://kb.mozillazine.org/accessibility.blockautorefresh

  • Open previously viewed Tabbed Panel when using browser back button

    I have a page containing SPRY tabbed panels, and was wondering if there was a way that if a user navigates back to this page using the browser back button, the last panel viewed could remain open. Using hash tags in the URL works for Mozilla but not for IE8. Here is the sample page: http://www.davidkneale.com/wcusa/expedition_leader.html
    Does anyone know how I can get this to work in IE8?

    Perhaps you missed the announcement that Adobe is no longer investing in the development of Spry. See: http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l.
    There used to be a dedicated Spry forum, but it has been changed to read-only.
    Spry isn't exactly dead, but nor is it in the best of health. Add to that the fact that IE 8 doesn't support the HTML5 history management API, and the lack of replies isn't really surprising.

  • To Dispaly stale data page when browser back button is clicked.

    Hi All,
    How can we display Stale Data Page when the browsers back button is clicked.
    thanks

    You have already raised a thread for this..
    To display Stale Data Page when browsers back button clicked.
    - Senthil

  • I have set form fields as User required and yet the form still prints/save when empty.

    I have set form fields as User required and yet the form still prints/save when empty. I also have an email button on the form but that works correctly by not allowing the user to email the form with the required fields empty.
    What script do I need to additionally restrict both printing and saving if the required fields are empty?
     You would think that just setting that option would restrict those functions the same as it does for the email button. 
    Please be specific with your response if you are gracious enough to offer one. I have been searching the forum all morning for the answer to this and I really didn't understand any of the solutions offered to others enough to use those in my own form.
    The required fields are:
    Social (social security number)
    Name
    Headquarters
    Residence
    The next question I have is if there is a way to make individual signature fields mandatory if they are digital signatures?
     In other words, I don't want the individual to be able to email the form to the next person if he/she hasn't applied their digital signature.

    Saving can always be done, even when mandatory fields are empty.  This is by design.  And that is correct.  Suppose you have a big form and 2 people need to fill it out.  How can you fill out a first part and then send it to the second person without saving.
    Same for printing.  Same for your signature fields.
    What I would do, is to put a "watermark" on the form that you show on preSave and prePrint if the form is incomplete.  Just a static text on your form.  Then the user will see that they need to do more.  Also, on preSave and prePrint, you can show a warning popup to tell the user about the missing fields.  You can then still cancel their action if the user decides not to save/print anyway.

  • How can I resolve this problem? The audio engine was not able to process all required data in time. (-10011)

    How can I resolve this problem? The audio engine was not able to process all required data in time. (-10011)

    Could you do this?
    Go to Finder
    Go to Applications
    Go to Utilities folder
    Launch Activity Monitor app
    go to its Memory tab on top
    tell us what you see at the very bottom?
    Here is a sample of mine.
    I bet your page/swap amount will be huge.
    If there is not enough RAM, OS X temporarily stores RAM data on the harddrive and tries to retrieve it back into RAM when needed, unfortunately that is so slow that GB throws an error as it cannot play it all in real time.

  • In AP invoice i need to make "Terms date " field to calculate the date automatically when i select the payment terms

    In AP invoice i need to make "Terms date " field to calculate the date automatically when i select the payment terms.
    How can i do this?

    Hi,
    You can select the Payment Term at PO Header Level.
    When you book an invoice, that Payment Term will automatically defaulted to Invoice.
    You can define Payment Term in AP.
    Payment terms have one or more payment terms lines, each of which creates one scheduled payment. Each payment terms line and each corresponding scheduled  payment has a due date or a discount date based on either a specific day of a month, such as the 15th of the month, or a number of days added to your terms date, such as 14 days after the terms date.
    Payment Terms (Oracle Payables Help)

  • HT3275 I backed up by computer to an external HD and lost all my data from TC. I backed it back up FROM the external HD, but I lost the dateline on Time Machine. Can I restore the dates and timess of my backups?

    I backed up by computer to an external HD and lost all my data from TC. I backed it back up FROM the external HD, but I lost the dateline on Time Machine. Can I restore the dates and timess of my backups?

    Another one that Apple doesn't make obvious. 
    See #E3 in Time Machine - Troubleshooting. 

  • Issue of data getting wiped out when user clicks on back button..

    Hello Gurus,
    I have a selection program which displays ALV on execution. Now I have programmed the "Back" Button of standard toolbar so that when comeone clicks on it, it should leave to selection screen.
    WHEN 'TBACK'.
          LEAVE TO TRANSACTION SY-TCODE.
    But when I do that, the values entered by user during execution of selection screen wipes out and all the selection fields become empty. How can I make sure that when sure clicks on 'Back' button, the selectiuon screen is presented but with values in which user put during execution.
    Regards,
    Rajesh.

    Hi Rajesh ,
    Leave to transaction sy-tcode is as as good as call transaction...so basically using this statement will start the transaction afresh..and give a new selection screen....
    Better option would be to leave to screen 0 (preferaby used for a report )which will take you back to the previous screen processed or leave to screen XXXX for a particular screen( in case of a module pool )
    Hope it helps
    Regards
    Byju

  • How do i restore all my data from a time machine back up from an iMac to a Macbook Pro?

    How do i restore all my data from a time machine back up on an external hard dirve???
    From an iMac to a Macbook Pro.

    I tried this but my external drive is not appearing for some reason. Although it is accessible through finder.
    Is ther perhaps another way of doing this??
    Your help is massively appreciated!!

  • How to maintain dynamic rows with data when click on Previous button?

    Hi,
    I have 1 aspx page and divided into 3 pages using panels.Each panel has "Next" and Previous buttons
    I have created and deleted dynamic table rows when click on Add button using javascript. whenever i click on Next button it will navigate to same page of next panel.
    when i click on previous button then it goes to previous panel but whatever i have added dynamic table rows in 1st panel that got removed.
    Can u please help me for how to maintain state of dynamic table rows with entered data when click on Previous button?
    How to get dynamic table rows with entered data in previous panel when click on Previous button?
    Please find the below javascript code:
    function insertRow() {
    if (index >= 2) {
    document.getElementById('deleteRow').style.display = "inline";
    else { document.getElementById('DeleteRow').style.display = "none"; }
    var table = document.getElementById("myTable");
    var row = table.insertRow(table.rows.length);
    cell1 = row.insertCell(0);
    t1 = document.createElement("select");
    t1.options[t1.options.length] = new Option('--Select--', '0');
    t1.id = "ddlYear" + index;
    cell1.appendChild(t1);
    for (var i = 1975; i <= 2015; i++) {
    opt = document.createElement("option");
    opt.value = i;
    opt.text = i;
    t1.add(opt);
    t1.style.width = "155px";
    var cell2 = row.insertCell(1);
    t2 = document.createElement("Select");
    t2.options[t2.options.length]=new Option('--Select--','0');
    t2.options[t2.options.length]=new Option('State Board','1');
    t2.options[t2.options.length]=new Option('CBSE','2');
    t2.options[t2.options.length]=new Option('ICSE','3');
    t2.options[t2.options.length] = new Option('Others', '4');
    t2.style.width = "155px";
    t2.id = "ddlCourse" + index;
    cell2.appendChild(t2);
    var cell3 = row.insertCell(2);
    t3 = document.createElement("input");
    t3.id = "txtCity" + index;
    cell3.appendChild(t3);
    var cell4 = row.insertCell(3);
    t4 = document.createElement("input");
    t4.id = "txtInstitute" + index;
    cell4.appendChild(t4);
    var cell5 = row.insertCell(4);
    t5 = document.createElement("Select");
    t5.options[t5.options.length] = new Option('--Select--', '0');
    t5.options[t5.options.length] = new Option('English', '1');
    t5.options[t5.options.length] = new Option('Hindi', '2');
    t5.options[t5.options.length] = new Option('Telugu', '3');
    t5.options[t5.options.length] = new Option('Others', '4');
    t5.style.width = "155px";
    t5.id = "ddlMedium" + index;
    cell5.appendChild(t5);
    var cell6 = row.insertCell(5);
    t6 = document.createElement("input");
    t6.id = "txtSpecialization" + index;
    cell6.appendChild(t6);
    var cell7 = row.insertCell(6);
    t7 = document.createElement("input");
    t7.id = "txtFnl" + index;
    cell7.appendChild(t7);
    index++;
    function DeleteRow(index) {
    var table = document.getElementById("myTable");
    table.deleteRow(index);
    // if (index = 2) { alert("There is no rows added.Please add the new row"); }
    Design:
    <tr style="font-size: 12pt" id="trSecond" runat="server">
    <td colspan="3">
    <table id="myTable" width="100%" border="0">
    </table>
    <tr>
    <td colspan="3" align="right">
    <input type="button" title="Add" value="Add" onclick="insertRow();" />
    <input type="button" id="deleteRow" title="Delete" value="Delete Row" onclick="DeleteRow(this);" style="display:none" />
    </td>
    </tr>
    Thank you.

    Put the button click into an action listener and build the new frame there. The code I have below isn't exactly what you're doing (it's amazingly oversimplified), but it's probably similar enough to get your wheels turning in the right direction.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class sample
         public static void main(String[] args)
              JFrame frame = new JFrame("Sample");
              frame.setSize(400,400);
              Container content = frame.getContentPane();
              content.setLayout(new FlowLayout());
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              final JTextField text = new JTextField(10);
              content.add(text);
              JButton button = new JButton("Send");
              content.add(button);
              frame.setVisible(true);
              button.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        JFrame myframe = new JFrame("Results");
                        myframe.setSize(200,200);
                        Container mycontent = myframe.getContentPane();
                        mycontent.setLayout(new FlowLayout());
                        String mytext = text.getText();
                        JLabel label = new JLabel();
                        label.setText(String.valueOf(mytext));
                        mycontent.add(label);
                        myframe.setVisible(true);
    }

  • Stale data error:when clicked on lov

    Hi,
    In one particular form I'm having this issue. There are many lovs in this form. If I click on one lov and select a value, then immediately(before the value gets back to the text box of first lov) if I click on any other lov(I'm able to click on the second lov becuase this particular test enviroment is slow and while its processing the first lov, its allowing me to click on second lov. I'm not able to reproduce this in dev as the first lov value is returned immediately to the textbox ) I get this error message.
    The requested page contains stale data. This error could have been caused through the use of the browser's navigation buttons (the browser Back button, for example).
    Cause:
    The record with primary key values {233} could not be found in view object AM.RequestHeaderVO1.
    I tried to reproduce the issue in another custom form in the same test environment but it works fine for this one.
    Can anyone please help
    Thanks
    Sunny

    Hi one more point, I'm using pageContext.isLovEvent() in PFR. Could this be causing my issue?

  • HT2404 My iphone 3gs recently stopped allowing me to use certain apps and refuses downloads of other apps, saying all require ios 5. No software update button appears in settings.Can I update/upgrade my 3gs to ios 5?

    My iphone 3gs recently stopped allowing me to use certain apps and refuses downloads of other apps, saying all require ios 5. No software update button appears in settings.Can I update/upgrade my 3gs to ios 5?

    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPhone to the computer, open iTunes. Then select the iPhone under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

Maybe you are looking for

  • The spinning beach ball - why has my MacBook slowed down SO much?

    My MacBook has become terribly slow. I get the spinning beachball almost every time I hit a key now, and I am just about ready to throw everything out the window. Mainly I use my laptop for internet browsing (Safari only), iTunes and iPhoto. I do hav

  • Filetype HTML.xht workaround for Dreamweaver CS5.5

    upon upgrading to Dreamweaver CS5.5, i noticed that files of filetype HTML.xht in one of my web projects either wouldn't open in Dw, or wouldn't open with link color cueing and file management. the known workaround is configuring the following files

  • How can I call a function in C or C++

    hello friends, I want to write a prog. in Java to call a function written in C or C++ without disturbing the c/c++ function thanks

  • How to open old files?

    I am very disturbed to find that the latest version of Keynote (6.1) cannot open older (pre-Keynote 09) files. I tried to install Keynote 9 on my MacBook Air running Mac OS X 10.9.2, but it doesn't launch. I can't be the only person with this problem

  • 2 Airports and 4 Air Disks - Advice before I buy

    Hi all, A little bit of background. My wife and I are both film buffs and have stacks of DVDs. Quite often we watch a movie in bed using our laptop streaming MP4 files. Works well. However, I have quite a lot of external HDDs hanging off my lovely iM