Closed Thread
Results 1 to 4 of 4

Thread: Refreshing a page without deselecting options

  1. #1
    qnstner is offline Newbie
    Join Date
    Feb 2010
    Posts
    15
    Rep Power
    0

    Refreshing a page without deselecting options

    Hi, i was just wondering if it's possible to auto-refresh a page without deselecting options i an HTML form?


    I have a select form in HTML that collects data from a database and insert them into the select form as options. If i run a normal refresh function in javascript:

    function timedRefresh(timeoutPeriod) {
    setTimeout("location.reload(true);",timeoutPeriod) ;
    }

    <body onload="JavaScript:timedRefresh(2000);">

    The page refreshes but if i have selected one option and the page refreshes every 2 seconds my selected option wil disappear and i will not be able to do some action on that option.

    When you do a normal refresh in firefox the selected options is not being deselected.

    Has anyone faced this problem before?

    Best regards
    Last edited by qnstner; 02-10-2010 at 06:56 AM. Reason: little more explanation

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    qnstner is offline Newbie
    Join Date
    Feb 2010
    Posts
    15
    Rep Power
    0

    Re: Refreshing a page without deselecting options

    in firefox i can use meta refresh without deselecting options but it won't work in fullscreen mode (it should).

    in IE the meta refresh works in fullscreen mode but it deselects my options.

    arrrg

  4. #3
    oldhendra's Avatar
    oldhendra is offline Learning Programmer
    Join Date
    Nov 2009
    Location
    jakarta, indonesia
    Posts
    30
    Rep Power
    0

    Re: Refreshing a page without deselecting options

    Hi qnstner,

    All I know one can't keep selected options
    after a page refresh, regardless of browser window state.
    There are no guarantee.

    But probably we could use page to page parameter passing,
    like through cookie (not familiar with),
    or through the URL (GET params).

  5. #4
    qnstner is offline Newbie
    Join Date
    Feb 2010
    Posts
    15
    Rep Power
    0

    Re: Refreshing a page without deselecting options

    okey! i've found out that it is browser dependant, and with meta refresh in firefox it works, but not with javascript. But i would like it to work in fullscreen in firefox to.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 12-06-2010, 04:45 PM
  2. Replies: 2
    Last Post: 11-10-2010, 12:30 AM
  3. Insert node to javaswcript tree (without refreshing site)
    By Warezov in forum JavaScript and CSS
    Replies: 1
    Last Post: 06-08-2010, 03:09 PM
  4. 2 options
    By MojoMonkey in forum Java Help
    Replies: 3
    Last Post: 01-03-2008, 09:17 PM
  5. Select options
    By catbollu in forum ASP, ASP.NET and Coldfusion
    Replies: 3
    Last Post: 05-23-2007, 01:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

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