Retain state when browser is refreshed

Hi I have 2 states - Login and Viewer
When app is launched, it goes to Login state.
When logged in, it switches to Viewer state
In Viewer state, when refreshing browser whole page is reloaded and Login form appears again.
I have tried to use Deeplinking, but this doesn't work.
Has anyone got an example how this can be achieved.
Thanks

You can store information in a SharedObject, and read this information in when the application loads. Use this data to determine the state your application should be in. A simplified form of the memento pattern would work well for this case.

Similar Messages

  • Retaining the Color of the row when it is refreshed in Javascript

    Hi,
    I have a checkbox when it is checked it will highlight the row with the color. When it is unchecked the color will go off. This is happening fine.
    But the problem i have is that when i refresh the page or goes to some other page and come back the color is not retained eventhough the checkbox is checked.
    I want the color to be retained even when the page gets refreshed.
    Please do provide a solution for this since it is urgent. I will be waiting for ur replies..
    Thanks,
    M.Ananthu

    try to make a hidden form that will hold the value of the colored form
    ex. <input type="hidden" name="name" value="<%=colorOfForm%>"
    you can pass this value to the next page.. so that when you go back to that page.. you will get the value of the hidden using request.getParameter(''name"); and set the color of the form using javascript

  • Dynamic Text not loading when browser refreshes

    Hi All,
    For some reason, when the user refreshes the browser, the 'Welcome to our ....' dynamic text in the middle of my swf doesn't load in IE 8. I think this is somehow cache related maybe?
    I'm using a preloading container .swf to load the main movie swf, Interactive_StrategyMap.swf (located here: http://precorp.coop/fileshare/map/Interactive_StrategyMap.swf).
    You can view the behavior here: http://www.precorp.coop/fileshare/map/InteractiveStrategyMap.html
    Any ideas how I can fix this?
    Thanks,
    John

    Ned... Ahh, it appears to be happening to me because I have the Tools/Internet option in IE selected "Check for new version of stored pages" to Automatically.

  • Memory leak when browsing through records

    Hello,
    I have a problem with any page containing the component related to each other on three or more levels. (1st level ADF Table, 2nd level ADF Table and 3rd level ADF Form)
    By navigating through the records of the first level, there is refreshment at other levels (using partial triggers), but suddenly there is loss of memory (memory leak) for components of type Select One Choice.
    Precisely, the problem appears when browsing another Show Detail Item in the same page.
    Screenshot showing the Data Control in my page: [http://www.infotun.net/usersimages/1/adf/structure.jpg]
    Capture screen representing the initial state where all is well: [http://www.infotun.net/usersimages/1/adf/initial.jpg]
    Capture screen representing the final state after memory loss: [http://www.infotun.net/usersimages/1/adf/final.jpg]
    I'm using JDeveloper Studio 11.1.1.2.0
    JDK: 1.6.0_14
    Operating System: Windows 7.
    Any help/advice is highly appreciated !
    Thanks
    Edited by: InfoTun on 10 juin 2012 16:22
    Edited by: InfoTun on 10 juin 2012 16:26

    Hi,
    the screenshot does not indicate a memory leak. Memory leaks show by the server memory consumption that leads to slow performance or stale applications. Your issue seems to be different from that and doesn't really explain in the screen shots. If you have a support contract then customer support is the recommendation I like to give
    Frank

  • How can we remove the child state when it will navigate to the parent state?

    Hi All
                    I have two states. One state is Login(parent state). and second state is Browsing state(second state but independent to parent Login State)
    when i navigate to first Login state the flex application navigates to Login successfully. But the values present in the second state Browsing state are still present in the memory or some where else.....
                          when re navigate to Browsing state from Login state with new values the Browsing state is not updated.. It is showing the previous values remain in the second state ....
                    What  is the problem with this .. Can any one tell me the solution???
                     i think u are getting my point ???

    This is a bug in Flex IDE
    Try this:
    if ur in state1.. while going to state2, remove state1 by using removeChild(state1) and then go.. in state2 if u want to go to state1..addChild(state1) then go
    mark this if helpful

  • Does Resetting Internet Explorer Maintenance settings from GPO will also remove the proxy set in IE by a third party tool when the GPO refreshes for the first time

    Hi,
    We have two GPO's with IE maintenance (Preference Mode Configured)
    The settings it has are
    1. Automatically detect configuration settings - Set to Enabled.
    2. Automatic Browser configuration - Not configured.
    We do not have proxy value set in IE through this GPO.
    We have proxy set in IE through a third party tool (TPT) which updates the proxy at logon event 5 and 10.
    Does Resetting Internet Explorer Maintenance settings from these GPO's also clear proxy set in IE by third party tool after the first GPO refresh. 
    I am sure the second time when the GP refreshes, the client won't find any IEM settings and hence there is no question of the proxy set in IE by TPT to erase. It is only the first time of the GPO refresh that I am concerned about.
    Can someone please guide as I am planning to do the same in our production and concerned about the downtime caused due to the proxy being removed if at all for the first time.

    It will disable the proxy server option in Internet Options (untick the box), but will still store your proxy details.
    Thanks
    Ryan

  • Condition to test for the browser closing/refreshing

    I have an applet that rotates pictures in a html file. I have it in an eternal loop to keep it running. It loads fine, but if you refresh or try to close the browser, the browser locks. Without question this happens because the loop does not test for the browser closing or refreshing so the loop never stops. Does anyone have an idea of a Java condition to test for the browser closing/refreshing so I can stop my loop when these events occur.

    The applets stop message should be called on a reload and/or a close. You could set a flag in your stop method that could be checked by a thread that actually sits and loops.
    When the flag is set, kill the tread.
    You should clear that flag in your start method.
    I have an applet that rotates pictures in a html file.
    I have it in an eternal loop to keep it running. It
    loads fine, but if you refresh or try to close the
    browser, the browser locks. Without question this
    happens because the loop does not test for the
    browser closing or refreshing so the loop never
    stops. Does anyone have an idea of a Java condition
    to test for the browser closing/refreshing so I can
    stop my loop when these events occur.

  • Servlet throws IOException when browser is "stopped"

    Hello,
    I have a servlet running on the Sun ONE Web server 6.1 that throws this error message: "java.io.IOException: WEB8004: Error flushing the output stream".
    Through my testing, it seems as if this is caused by the user pressing the stop button before the output can be completely commited to the client. Strangely enough the error seems to thrown when IE is the browser but not when Firefox is. My guess is that what is happening is the client connection is closed when stop is pressed in IE and the server cannot write to the client anymore so the error is thrown.
    I was wondering if anyone has any insight into how to prevent this from getting thrown. I realize that this error is not a major thing and probably doesn't need to be worried about, but it is quite annoying because webmaster gets emailed anytime an exception is thrown so cutting down on pointless exceptions is something we like to do :)
    Thanks in advance.

    You could also try hitting the browser's refresh button many times as quickly as possible; it should also give similar errors. Or keep Control-R (reload) pressed down and let the keyboard's auto-repeat do its work.
    When the browser is in the process of fetching a page and decides it isn't interested in the page after all, it closes the TCP/IP connection to the server. The server will get an IOException. Nothing you can do about that. Write a catch block that ignores IOException when flushing a web page. Or maybe log "error sending page, the user probably hit the reload button", without the stack trace, into an audit log.

  • How to avoid updating the data when ever we refresh the page

    I want to avoid updating the data to the server when ever we refresh the web page.
    Thanks in advance.

    You could potentially do it by using a redirect instead of a forward to the result page.
    That will essentially do it in two requests. 1 to request the save, another to display the result of the save.
    If the user then requests a refresh, it won't incur a save call.
    Of course, that doesn't stop them going back in the browser, and refreshing that page, but it at least makes it a little harder.
    Cheers,
    evnafets

  • SQL requests when handling a refresh on a persistent-dirty instance

    I just noticed that Kodo issues two SQL requests when handling a refresh
    on a persistent-dirty instance, the first one getting the JDOLOCKX
    column value.
    For a persistent-clean instance, it makes sense to get the version
    number first and to check if it has been changed. If not, the attribute
    values are not read from the database.
    For a persistent-dirty instance, as the memory state has been changed,
    it has to be reloaded anyway and it seems to me that the first request
    is useless.
    Any confirmation ?
    Thanks.

    Yeah, the version check seems to be extraneous. We'll see what we can do
    about that. Thanks for pointing it out!

  • Will OATS playback work when browser or remote desktop minimized?

    Hi...
    I have a problem during playback for web functionality test when browser or remote desktop is minimized. But when the screen in maximized state it is working fine.Mostly web.image().click(); is failing..can anyone give suggestions...
    Thanks...

    for filtering in adf table we using following code
    web.image().click();
    web.textBox().click();
    web.textBox()..setText("OATS%");
    web.textBox().pressEnter();
    web.image().click();
    ......Here web.textBox().pressEnter(); is not working when I minimize the browser....

  • "Site is in a partially provisioned state" when attaching/upgrading SHP2010 content DB in SHP2013

    I'm testing out upgrading our Sharepoint 2010 farm to Sharepoint 2013.
    Fortunately for me we have very few specialties in our farm, very straight forward.
    But when setting up the new MySites, when I add one of the old content databases (and so far only for this one!) it starts spitting out a few (20 or so) messages about peoples "sites is in a partially provisioned state". The site still works fine
    after upgrade but I don't like having errors like this so I digged deeper.
    Googling didn't help, I only found an article about Sharepoint Online so that wasn't a big help.
    But looking into the details in the ULS for these jobs I see the following critical message:
    "Unknown SQL Exception 15151 occurred. Additional error information from SQL Server is included below. &nbsp;Cannot alter the role 'SPDataAccess', because it does not exist or you do not have permission."
    I like that error message because at first it seems pretty clear. But unfortunately I'm doing this all with a farm account that is sysadmin on the entire SQL instance, so permissions aren't a problem. But as far as I can see there is no SPDataAccess role
    on either this instance or the "old" one where this database came from!
    I thought about messing in the SQL when I remembered an old quote from my Sharepoint 2010 instructor - "the second you go and edit the SQL yourself you're on your own" so I stopped there.
    Any suggestions? A "ignore this error" is pretty much useless since I don't a choice in the matter, but I still want to know what the hell is up with this error?
    Kind regards // Kris

    Ok now I've tested this out in a new DEV environment.
    Scenario
    - Manually installed Sharepoint 2013 binaries
    - Manually updated with March 2013 PU
    - Manually updated with December 2013 CU
    - Ran AutoSPInstaller to install Sharepoint, it setup User Profile, MySite with temp database and a temporary site.
    - Through Powershell attached Sharepoint 2010 mysites databases to the MySite application. Regardless of what permission I set up in Central Admin -> Service App -> User Profile Service -> Administrators (like Waqas Sarwar described) or in SQL I
    still get the error messages "Site is in a partially provisioned state" for 20 or so users (out of appx 1000). There just doesn't seem to be anything to do about that error??
    - When browsing the temporary site and clicking follow I got the "Something went wrong. Sorry, we couldn't follow the site. Technical Details - InternalError : Could not follow the item" message. To solve this error I had to give the Application Pool account
    running "temporary site" SPDataAccess-role to MySite content database where the current users MySite was located. I'm really not making that up, it's 100% reproducable in my environment!

  • Screen Goes Black and Hangs when browsing by Artist, Album, Song, etc.

    I'm having a fairly huge issue with Front Row:
    I can play video files (although their is a moment of hangtime between selecting a video and the video actually playing) and music files (if I choose the "Shuffle Songs" option), however, when I choose to browse my music by artists, albums, songs, genres, etc. my screen goes black and stays that way until I hit CMD+Q over and over until it finally quits. Furthermore, when I do play music via "Shuffle Songs" and quit out of Front Row, the music continues to play in the background and cannot be stopped, paused, etc.
    Is there anyone out there who can help me fix this? I love Front Row and use it all the time and it would be a shame not to be able to anymore..
    Thanks in advance,
    Corey

    I have a similar problem. When browsing music the screen goes to black or just freezes on whatever was beeing displayed for maybe 30 seconds to a minute before continuing. It happens quite often. I am running the latest version of Front Row on a brand new Mac Mini. I have a very large iTunes music folder (about 830 gigabytes of uncompressed AIFF files) running on an external FW800 drive. I tried repairing permissions and a number of Front Row and a few iTunes files appear in the list. However, when I run repair permissions again, the same files are still listed so obviously if they need to be repaired, it's not happening. I tried repairing the volume (no problems found) and repairing permissions from the Install disc but the result was identical.

  • Invalid cursor state when trying to insert record

    Hi everyone!
    I'm using JDBC-ODBC bridge to connect to a mySql database, which works fine. Then I try to insert new records, but this only works for the first record in the table.
    When there is already a record in the table, I always get "[Microsoft][ODBC Driver Manager] Invalid cursor state" when calling the updateRow()-method of the result set.
    Here is my code:            // open db connection
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                Connection conn = DriverManager.getConnection("jdbc:odbc:TTManager", "xxxx", "xxxx");
                // Prepare SQL statement
                java.sql.Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
                ResultSet result = stmt.executeQuery("SELECT * FROM Player");
                result.moveToInsertRow();Then all fields are filled in this manner:            result.updateString("Name", name);And finally the insertRow should be written to the db:            result.insertRow();But at this point it gives the mentioned error, including these messages:         at sun.jdbc.odbc.JdbcOdbcResultSet.setPos(JdbcOdbcResultSet.java:5272)
            at sun.jdbc.odbc.JdbcOdbcResultSet.insertRow(JdbcOdbcResultSet.java:4132)Since I'm very unexperienced with Java, I guess (or hope^^) it's just some stupid beginner's mistake.
    Oh, almost forgot to mention: The new record's data doesn't violate any unique-constraints on the table, all fields are explicitely filled and all variable's data types are matching their according field types!
    Any help would be appreciated!
    reinski

    Ok, I needed to help myself and this is what I found out:
    If the table already contains records, it is not enough to doresult.moveToInsertRow();but I must beresult.last();
    result.moveToInsertRow();I didn't find any explanation and even the code examples from the Sun tutorial don't mention this, so I guess it's a bug occurring in my poor IT environment: DB server running mySQL 5.0.0-alpha on a P1-233-MMX w/ 64MB under WinNT4 (hey don't laugh!!^^).
    Maybe this information is of use to someone having similar problems...
    Greetings!
    reinski

  • TS1398 my problem is my iphone 4s is connected to the internet(wi-fi) with full signal strength but freezes when browsing and says "Cannot Open Page, Safari could not open page because the server stopped responding".

    my problem is my iphone 4s is connected to wi-fi with full signal(3 bars) strength but freezes when browsing and says
    "Cannot Open Page"
    "Safari could not open page because the server stopped responding"
    I already reset the iphone to its factory settings and erase all contents but still the browsing speed freezes or not searching at all. Sometimes it will work and fast but then the problem uccors every now and then. Iv'e been using iphone 4 for two years and I still have it and works fine compared to this IPHONE 4S.

    Settings → scroll down to Safari → in Safari settings, I selected both Clear History and Clear Cookies and Data.
    IF that does not work -
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    Finally - if problem still present -
    Go to Settings>General>Reset
         Reset the network settings - you will need to add the password of your home WiFi in your phone once more
    The device should turn itself off & back on then go into Settings>Wifi and join your network

Maybe you are looking for

  • Where are my old pictures on iphoto?

    I frequently import my pictures to iphoto as backup, but today when i tried to look at my pictures from few months ago i cannot seem to find them on iphoto, i can only see the most recent imports, just a month worth of photos.

  • Making Issuing Storage Location" required entry

    Hi, I want to make "Issuing Storage Location" required entry only stock transport order. Our document type is ZUNS. Selection key is UBF. In SPRO: Material management --> PO -->Define screen layout at document level I ve selected "UBF Stock transport

  • Looking for the Holy Grail

    I'm wondering what you guys and girls are using as fast storage for uncompressed hd work. My company is looking for a solution that is reliable, but less expensive than an XRaid solution. It can be raid0, raid5, raid10, I don't care, I just want to k

  • Need help with student verification

    My daughter bought Adobe Acrobat XI Pro on Amazon new and then we followed the directions on Adobe to verify she is a student in high school.  It has been 3 days and we still have not recieved the activation code to use our product?  The Adobe suppor

  • VMI and moving average price

    Dear all Please help us. We will use moving average price as stock evaluation. Also, we manage all inventory is VMI stock. Our business process is the following procedure. 1. We will increase consignment stock (VMI) without reference to purchase orde