Dynamic textbox through the Back button

I have created a dynamic textbox in a JSP using Javascript.
When I submit the form in this JSP, the data's validated & a confirmation message is displayed.
On this confirmation message, when the Back button is clicked, I get the original form with the data entered for all the fields except for the dynamic textbox, because there is no dynamic textbox!
The textbox is to be displayed only when a condn is fulfilled. This is coded in a Javascript fn that gets called only when a particular value in the listbox of the form is selected.
How do I display the textbox when the Back button's clicked?

Thx for trying to help.
Here's the source code:
<script language="JavaScript">
<!--
function textBox(areaName, submitted)
var spanTxtID = document.getElementById('insertTxtSpan');
var areaNameText=document.createElement('input');
areaNameText.setAttribute('type', 'text');
areaNameText.setAttribute('name', 'areaNameText');
areaNameText.setAttribute('maxLength', 20);
areaNameText.setAttribute('size', '20');
//areaNameText.setAttribute('value', 'Khar');
//alert(areaName.value)
if(areaName.value=="Other")
submitted=false;
while(spanTxtID.hasChildNodes()) spanTxtID.removeChild(spanTxtID.lastChild);
spanTxtID.appendChild(areaNameText);
else { submitted=false; while(spanTxtID.hasChildNodes()) spanTxtID.removeChild(spanTxtID.lastChild); }
-->
</script>

Similar Messages

  • Change the number of history entries on the Back Button

    Firefox allows 15 history entries when holding the Back (or Previous) button. If I want to go to the #31 entry in the history, I have to press and hold Back many times to reach it.
    I want to change that number for more entries like 50. Is it possible?

    You cannot change how many are displayed in the back/forward drop down at a time.
    You can change the number but not how many are displayed at a time in the dialog window.
    Select the earliest entry you can on the back button (the lowest entry), and then invoke the Back button again, and go to the earliest entry.
    I have test data you can try:
    I have '''browser.sessionhistory.max_entries''' set to 70 the default is 50
    To test bring up
    * http://dmcritchie.mvps.org/firefox/tab_capacity/001.htm
    What you see on the page are a lot of numbered links '''001 - 060'''
    # start with the 001 entry in a new tab make sure you started it in a new tab
    # then go successively through 002-060 in the same tab then go up into bogus numbers '''to 70'''
    # Right click on the Back button, you will see that you can see 15 entries at a time
    # Click on the earliest visible at the bottom of the heap
    # Click again on the Back button to select the earliest again
    # Repeat previous step until to see 001, all entries were accessible through the Back button, but 15 is the maximum that you will see at a time..

  • The back button is disabled even though I clearly visted the link through Google

    When I search for something in Google, and find a particular link interesting, I view it. But when I want to go back to my search list, it seems like the back button is disabled and it won't allow me to go back. This is obviously painful, if I am searching for a variety of things. The back button works perfectly sometimes but others it just doesn't. Can anyone explain this odd behavior?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons (McAfee SiteAdvisor) is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Why do google search results reset to match the search bar terms when i use the back button?

    Since the update to FF 23, the list of Google search results clears and the on-page search box is reset to match the address bar search box when I hit the back button to re-view the results list after checking a result.
    To see this issue for yourself, set your search provider to Google and make sure Instant is on. Type a search term into the search bar and press enter. A google page appears with your results list. Now, change your search terms or conduct a new search directly from the google page (without using the FF search bar). Click on the first result in the search list, then click the back button to return to the search results so you can check a differest result. As FF goes back to the google page, it will reset the on-page search box to match the FF search bar (although you were no longer on this search) and all search results will disappear, replaced by the message "Press enter to search". Pressing enter reconducts your old search, not the one you were on.
    This is incredibly maddening since searching for something requires frequent use of the back button to check through the list of search results, and then frequently trying the search again with slightly different terms. Although it sounds like a Google issue, it did not occur on the old firefox and has me wanting to revert. I tried to revert to the old search function via the "keyword search" addon, but this did not fix my issue. Is there a way to force FF to go back to the actual google search page I was just on instead of conducting a new google search from the FF search box when I hit the back button?

    In Firefox 23 versions and later the keyword.URL pref is no longer supported and it is no longer possible to specify the search engine for the location bar via the keyword.URL pref.<br />
    The search engine that is used on the location bar and on the about:home page is the search engine that is selected in the search Bar on the Navigation Toolbar.<br />
    Current Firefox versions do not update the about:home home page until you refresh the page (future versions will do this automatically without a refresh) and that is what happens if you use the Back key.
    You can install the Keyword Search extension to specify with search engine to use for the location bar and which search engine to use for the about:home page via the Options/Preferences windows of this extension, accessible via the about:addons page.
    * Keyword Search: https://addons.mozilla.org/firefox/addon/keyword-search/

  • How to get the values retained on clicking the back button in jsp page

    Hi All,
    I had two jsp's search and results. In the search page when i enter some values in the text fields, the rsults will be displayed for that search criteria. I had a back button in the results page. When i click on this back button i will get back to my search page. I am using the following code for this back button.
    <INPUT TYPE="button" VALUE='Back' onClick="javascript:history.go(-1)" class="button">
    Now the problem is when i get back to search page using this back button, i am not able to get the values in the search page which i entered, i am getting all blank values. What should i change to get these values back in the search page. Should i maintain any sessions for this?

    You have no control at all over the back button process. To the server, it's indistinguishable from the user simply tying the URL of your search page. So, you need to store this data server side*.
    When your search page is submitted and processed, store the values you received for each of the fields into the user's session. Then, when the search page is generated, check the session for these values, and for any values that are not null, put their values into the html as the default values for the textboxes and controls you are using. This lets you handle the whole matter on the server's side.
    *barring convoluted, unportable, black-magic javascript trickery which you should definitely avoid                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • The Back button only allows me to go back one page at a time instead of selecting a previous page from a drop-down list. This is a real problem: anyone have any ideas?

    In the previous version of Firefox, I could go back to a previous webpage by clicking on a part of the Back button which brought up a list of recently visited sites, and by clicking one of these, could jump straight back to that page. This facility does not seem to be available in the latest Firefox, and the Back button only goes back one page at a time. This is really inconvenient, as,
    it now takes longer to get to an earlier page
    there is no visibility of previous pages visited
    any actions carried out on webpages are undone when going back through them - this does not happen when jumping back several pages in one go.
    This is a real problem as I used to the old system constantly, and cannot continue to use Firefox 4.0 unless there is a way around it.

    For me, I have the same question, this is a poorly done upgrade and I want to go back to 3.6

  • Send Request to servlet every time with the back button

    Hi,
    We are designing a web site in which all the pages are dynamic depending on what he does with his ordering system. Problem is when the uers request a change to the orders (eg deletes) the page is generated again. But the user can use the back button to see the deleted order.
    Question. Is there any way to send a request to the server everytime the back button is pressed.
    I have already added this to the top of my generated pages.
    response.setHeader("Cache-Control","no-cache"); // HTTP 1.1
    response.setHeader("Pragma","no-cache"); //HTTP 1.0
    response.setHeader("Expires" , "0");
    I tried both the POST and GET request too.
    Any help would be appreciated.
    Thanks.

    This is an issue of never ending discussions. If you did a search for similar topics in this forum, you'd encounter various opinions including examples of suggested solutions.
    You can also see various real life behaviors on various real web sites.
    Personally, I don't want to put too much effort in disabling the back button. The back button is a mere display of the previous page and not the state of the application. As a user I like websites which do not mess with the browsers back button and let me see what I did on the previous page.
    If the user tries to do something with this deleted order, you should be able to track that and display a suitable error message.
    BTW, those headers do not have any effect on browsers back button. They merely control caching of pages.

  • The "back" button

    You know how in MS Explorer you can click on the back button and get a drop-down box of past web pages you've been to -- and then you can choose one of them to visit?
    Is there any way to chooes previous pages on Safari without going through each and every one on the way?
    Thanks,
    Matt

    Hi Matt,
    Just hold the mouse button down when clicking the back button. A similar list should appear after a small pause.

  • Is it possible to change the "back button" arrow in iDVD5?

    I would rather have a different icon than the same arrow that's always been used for the back button on the idvd menu options. Do I need to get a different program to make my DVD menu's look less like it was obviously made in idvd?

    Yes, it is possible to change the arrow in iDVD but it takes a lot of work.
    1) Chose the theme you want to use. (I will demonstrate with the theater theme)
    2) In Finder go to your applications folder then right or ctrl click on iDVD. You should have a window like this click on the Show Package Contents button like this http://i29.photobucket.com/albums/c261/Matt_Skorina/Picture3.png. You should be in another window with one folder in it called Contents. Go through that folder then click on the folder called Resources. This should be a big folder, scroll down it to where the themes are. Right or ctrl click on the theme you will be using like this http://i29.photobucket.com/albums/c261/Matt_Skorina/Picture2.png. You should again be in a window with only a folder called Contents, go through this. Then go through the Resources folder. Now go through the BackButton.Media.pox folder near the top. Again go through the Contents folder. Then go through the Material folder. You need to leave this window open. http://i29.photobucket.com/albums/c261/Matt_Skorina/Picture4.png
    3) Go back to the window that you chose your theme in. You should duplicate your theme and put it somewhere else.
    4) You first need to create two of your own arrow images. One of the arrows will be for when you select it on the dvd the other will be when you don't select it. The size of the images does not matter but the arrows need to be the same size. Also there can't be any background like white. I would recommend using a program like photoshop for this. You need to save the images as .tiff (I am using an image that I found on the internet)
    5) In the Material folder you will see to documents. The one called 557BE9DA-09B4-11D7-925B-00039343AC9A is the image of the arrow when you don't select it. The document called 557C2F14-09B4-11D7-925B-00039343AC9A is the arrow when you do select it. Delete these files.
    6) Put your two .tiff arrows you made into the Material folder. Copy and paste the file 557BE9DA-09B4-11D7-925B-00039343AC9A into the file when you don't select the arrow. Copy and paste 557C2F14-09B4-11D7-925B-00039343AC9A into the file where you select the arrow.
    7) Open iDVD and load your project in the theme that you have modified.
    Here are what it looks like for my images.
    When not selecting arrow.
    http://i29.photobucket.com/albums/c261/Matt_Skorina/Picture5.png
    When selecting the arrow.
    http://i29.photobucket.com/albums/c261/Matt_Skorina/Picture6.png
    This is not esay. Make sure you back up the theme you change.
    Hope this helps,
    Matt Skorina

  • ADF Faces (JDev 10.1.3): How to support the Back Button

    Hi,
    when I scroll through a result set, rendered as a input form with navigation buttons, then use the browsers back button and then try to go to the next row using the 'next' navigation button, I always get an exception: JBO-29000, JBO-35007, JBO-25013
    The sample application was build using JDev 10.1.3, ADF Faces and Business Components.
    I have read through the new Oracle Dev Guide and found some parameters concerning state management and tested different settings. The most promising setting:
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>oracle.adf.view.faces.CLIENT_STATE_METHOD</param-name>
    <param-value>all</param-value>
    </context-param>
    Regardless of which setting I used, an exception was prompted.
    My questions:
    Are there addtional settings to configure to make an ADF Faces app 'back button' agnostic?
    Is it an ADF Faces or a JSF problem?
    What are your experience and how do you solve the problem?
    I have no idea how to solve the problem.
    Any hints are welcome!
    Thanks,
    Markus

    Hi Marcus,
    we had the same problem in UIX (JDeveloper version 10.1.2) and the official stance of Oracle (we had created a TAR on metalink) was that it was a general webapplication problem and not 'supported' by ADF.
    We created a solution by creating a filter that checks a sequence number in the pages. Each page request was checked and the sequence was increased. The <form> on the pages needed to send the sequence with each request.
    If the user used the backbutton then the sequence would be out of order. We would redirect the user to an error page and rollback the complete model.
    This was our base solution. What we also tried was to use the passivation mechanism of the application module (of Business Components) we would save a snapshot after the rendering of each page and if the user used the back button and the sequence was out of order we would rollback the application module to that snapshot. However after a COMMIT you cannot rollback ofcourse and it gave us some troubles.
    We finally sticked with the base solution and gave the user buttons in the application to go 'back'.
    Regards,
    Robert

  • The back button doesn't work for some websites after downloading version 4.0

    I recently downloaded firefox version 4.0. Upon downloading it I had a few issues occur with my browser. One issue was that all of my bookmarks that were on my toolbar disappeared. Also, when I visit a website and am browsing through it, if I want to go back to a previous page the back button doesn't work properly. Instead of sending me back to the previous page I was viewing it sends me all the way back to the home page or wherever I started on that website. This problem basically affects all websites that I visit. I would like to uninstall the new version of firefox and just go back to my old one if that's possible? Thanks

    To respond to your comments first of all, the Bookmarks toolbar has been removed in Firefox 4.0
    The back button should work as it normally does, but you can also right click it and select it from the list.
    To revert to a previous version of Firefox, download v3.6.16 from here: [http://www.mozilla.com/en-US/firefox/all-older.html Download Firefox v3.6.16]
    Then uninstall Mozilla Firefox 4.0 choosing to keep your bookmarks, customizations etc.
    Finally run the Firefox installation file you downloaded earlier.

  • Why does Safari refresh the page when using the back button?

    Safari didn't use to do this.
    Even on these forums, when you hit the back button to go back exactly where you were at, if there are new posts, the entire page may have changed. I knew exactly the next post I wanted to look at before the page was refreshed. Now, I can't even find the post I wanted to read unless I scroll through the entire list again.
    I need to be able to go back to the page I was just on and not have it refresh.
    I need to go back exactly where I was.
    Safari can't even go back properly as it wants to go back near the top of the last page I was on.
    I need it to go back exactly where I was at.
    I have no idea what the engineers are thinking about this one.
    FireFox works properly when going back to the prior page.
    I have long lists on pages I work with.
    For example:
    1. through 1,000.
    If I am on reference number 500 on the previous page, when I hit back, it goes all the way back up to around 20 in the list.
    I have to then scroll manually page down to 500 where I was at.
    This is tedious, cumbersome and unnessesary.
    Safari was much better before it was updated to this horrible behavior.
    I don't know of any preferences you can change to change this odd behavior.
    Anyone know of anyway to stop this horrible behavior in Safari?
    This is like reading a book, but when you go back a page, the entire page may have changed and I have no idea where I was at.
    Pretty $iss poor in my opinion.

    Yes, that is correct.
    However, you can also use the mouse or trackpad to swipe back a page and it still refreshes the last page.
    Safari never did this back in Snow Leopard and maybe some versions of Safari in Lion.
    However, Safari in Mountain Lion always does this.
    It is very cumbersome using the "open link in new window" or "open link in new tab".
    It was much better just being able to click the back button or swiping to get back exactly where you were on the prior page.
    Hopefully more people will send Apple feedback on this.
    Thanks for sharing.

  • Using Firefox 5, how do I get the button that lets me skip back to past pages rather than having to repeatedly press the 'back' button?

    I want to skip through past pages.

    Click and hold down on the back button, the list you want will pop up.

  • How do I turn off the drop-down menu on the back button?

    I use a laptop and my hands aren't too dextrous. Every time I click the "back" button I get the drop down menu, which means I then need to move my hand back to the pad (slowly!) move the pointer, and try again. It can take me several attempts to go back one site now!
    I have searched for hours to find out how to turn this drop down menu off, to no avail, and even looked through all the settings in about:config in an attempt to find a way around this. It seriously impacts my ability to use my laptop on the web now, so if anyone can please come up with a way to get back to the old back button, with no menu when my slow old finger cannot move fast enough to get off the button, I would be very grateful.

    You can use that list and open the previous tab just above the one that appears bold and has a bullet.
    The current active entry has a bullet in front of it.<br />
    If you hover an entry in the tab session history list with the mouse then you see an arrow at the left side pointing left (Back) or right (Forward) to show the direction.<br />
    You can left click an item to open it in the current tab or middle-click or Ctrl left-click an entry in that list to open that link in new tab, just like you can with other links.<br />

  • Before the recent updates to Firefox, clicking on the back button always brought me back to the same place on the page where I had been, but now it brings me to the top of the page. How do I restore the previous feature?

    Before the recent updates to Firefox, when I would go to another page in the same window and then clickon the back button, Firefox used to bring me back to the same place on the page where I had been, but now it brings me to the top of the page, meaning that I have to laboriously scroll down to the old place. How do I restore the previous feature?

    That change was made in Firefox 4, 6 months ago.
    Click-hold the unified Back / Forward button <br />
    or <br />
    right-click it to get the Back / Forward history for that tab.
    Or install this extension to get the old "drop-marker" button restored. <br />
    https://addons.mozilla.org/en-US/firefox/addon/backforedrop/

Maybe you are looking for

  • How can I eliminate a green rectangle showing up after exporting?

    After exporting in FCP and viewing in Quicktime, a green rectangle on the right side of the Quicktime window is showing up for about 1 second at a point where there is black between two clips with fade in/out transitions. There is a slug there which

  • Color Shift from Quicktime Movie

    Ok, Here is my problem.  When I do a copy and paste into director from a Quicktime movie for the first and last frame of my movie the is a noticible color shift when the movie starts to play on my command and when the movie transitions from the last

  • Won't sync or update, only music with a lot of luck

    I just bought a new ipod 8 gb and I am working on windows xp. When I connect my ipod to Itunes it will sync, but then Itunes reject the ipod and it's impoissible to update postcasts, update/reset the ipod from Itunes or anything else. And I saw that

  • Importing psd files in flash.  Constant Artifacts

    So I been trying to import a psd file in flash to animate using diifferent layers from Photoshop.  The problem is there's always artifacts around the image once it imports.  I can't seem to get rid of themwhen I need clean shapes to animate. When I g

  • Musical Logic Pro Task Bar with Apogee Ensemble

    1.)Since I installed the Apogee Ensemble unit, a musical note sounds when I start up my MAC, when I press the Start or Stop button in Logic Studio, etc. What option do I need to reset to turn this off? 2.) When I use Input 1 on my Emagic AMT Midi int