Preserve Data When Using Alert

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Preserve Data When Using Alert

    :confused; Hi can anyone tell me if there is a way to retain user input on a
    form when using a javascript to execute the window.alert method? I have an
    input form with a few radio buttons, and a single textarea. When the user
    clicks the submit button I am displaying an alert box using javascript when I
    detect any errors. However, my screen is a framed screen with the top frame
    being static, and the bottom frame containing the input fields. When the
    javascript executes to display the alert, it blows away any information the
    user has entered in the bottom frame eventhough I have preservedata set to yes.

    Any help would be appreciated!

    Tim

    timstsprymsn Guest

  2. Similar Questions and Discussions

    1. Preserve whitespace
      Hi, I am consuming a web service in my asp.net application. I added the web references in Visual Studio by pointing to a wsdl file. Visual...
    2. preserve form data
      I have a form that collect user input to be processed by a php script. The problem is that when a error is spotted in the input and user need to go...
    3. how to preserve paths
      Dear fellow Illustrators, I have a problem that is bothering me from time to time...: How can I preserve the paths in Photoshop 6, from an image...
    4. Automated Alert on Data Entry
      In the AfterUpdate event of the form, put code to do searches against the database using whatever criteria you want. For example, you could have...
    5. FileUtils - :preserve does not preserve mtime of directories on Windoze
      Hi Rubyists, I have been trying to copy whole directory trees while preserving mtime of subdirectories and file, using FileUtils.cp_r with the...
  3. #2

    Default Re: Preserve Data When Using Alert

    Well, nothing like answering your own question. Here is the answer for anyone
    that is looking for the same information: You simply need to use the
    history.back() method of the window object. So, the code would look like this:

    {
    history.back()
    }

    Tim


    timstsprymsn Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139