Nov 21, 2009
Pages: 1, 2

Refresh Page After Back Button Hit

free web hosting
Open Discussion > MODERATED AREA > Computers > Programming Languages > HTML, XML etc..

Refresh Page After Back Button Hit

iGuest-NrOjB
auto refresh
Refresh Page After Back Button Hit

Ei! I have a question how can you automatically make a page refresh itself but just once... I used meta tags but my page kept refreshing itself over and over again can someone please help me

-reply by NrOjB

Comment/Reply (w/o sign-up)

iGuest-Brian hall
Answer to No-Cache problem
Refresh Page After Back Button Hit

This is what I do to accomplish the task of disabling the cache..



The head tag at the end of the document is important!



<html>

<head>

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Expires" CONTENT="-1">

</head>

<body>

Body stuff

</body>

<HEAD>

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Expires" CONTENT="-1">

</HEAD>

</html>



-reply by Brian hall

Comment/Reply (w/o sign-up)

(G)Allen
Need to Reload/Refresh page after a Back is done, keeping prev data entered on that page
Refresh Page After Back Button Hit

Trying to add a captcha to a website.  I am using code that I found on line, and it has to work.  When the user enters a code, the htm code calls a php file that checks validity. If invalid, I have a message and sent the user back to the form/htm page and their previously entered data still displays - as well as the old invalid code they entered AND the old displayed captcha image.  At this point, the actual captcha code and the displayed captcha code are out of synch.  Using the related reload link for the captcha image takes care of the problem, as does a refresh - the code and displayed code will match, the users previous data is still available, and the user just has to change the code that was previously entered as the codes have changed.  Failure to refresh/reload the captcha image or the page will create a mismatch again.

 Need to know how to solve this:

1.)  Need to have the page refresh after doing back - this resolves the problem w/o the user having to do anything.  

2.)  Another way to handle this which is even better - How does one go about submitting the users data for check, and having the original forms page display an error message, clear out the user entered invalid code, and refresh the displayed captcha code?   This way, the user is still on the same form page, their data is still present, they get a message indicating that the codes didnt match, and new codes are available for another try...

 Neophyte in the coding, but understand the algorithms/logic and behind it.  Just need to the code, etc.  Currently, I am pulling back a cached form/htm page with data, that apparently kicks off a new code, leaves the users input available (which is good), but the captcha displayed code is not refreshed, and that is the big issue with the current set up.  (clearning out the user entered code too would be nice).

Have tried using what I have found here in the forums, but various caching code doesnt seem to take care of it.  Putting in a refresh/reload into the htm code doesn't get run (in my thoughts), since one is doing a BACK in the browser and so this is cached, and actually doing a redirect to the calling forms/htm page will reset everything the user entered - and everyone knows how much that could be hated.

Thanks!

-question by Allen

 

 

 


Comment/Reply (w/o sign-up)

(G)Arjun Urs

Add this in your Header part of view page:

< script language="JavaScript">
< !--
Javascript:window.History.Forward(1);
//-->
< /script>

Remove space before tags..

Add this inside body tag:

< body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">
< body onUnload="OperaReload()">"

Remove space before tags.. -reply by Arjun Urs


Comment/Reply (w/o sign-up)

Ho-oh'sRealm
QUOTE (beeseven @ Jan 7 2006, 08:40 PM) *
You can do this with meta tags. It won't actually refresh on every visit, but it will tell the clients computer not to store information about the page and instead completely re-download it on each view. You can use the following meta tags (don't know how many are necessary, but it wouldn't hurt to use all of them):
CODE
<meta http-equiv="cache-control" content="no-cache"> <!-- tells browser not to cache -->
<meta http-equiv="expires" content="0"> <!-- says that the cache expires 'now' -->
<meta http-equiv="pragma" content="no-cache"> <!-- says not to use cached stuff, if there is any -->


This is okay, not too bad, but it's a fairly dodgy way of doing it, although it works well enough.


QUOTE (FeedBacker @ Jun 8 2008, 12:22 PM) *
solution to :Refresh Page After Back Button Hit
Refresh Page After Back Button Hit

Inculde the below code in each page of the project...

<input type="hidden" id="refreshed" value="no">

Though this is not the real solution butone of the trick we can do to acheive this

-reply by Jugal Kishore Mahendra


O_o This is a decent solution, because it tells the browser that the page hasn't been refreshed, but it doesn't actually fix the problem, because the browser won't refresh.

Best you can do is create a javascript to tell the browser to refresh the page AFTER you hit the back button, and I'm sure you can find a script like that on the internet somewhere...if you really can't, then I can probably make one for you...

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2
Similar Topics

Keywords : refresh, page, back, button, hit

  1. Refresh Main Window By Clicking Link In Popup?
    (2)
  2. Refresh Php Page, But First .....
    (2)
    I'm working on this now, but I can't even think of how to write it, if it's possible
    (but I'm pretty sure it is)... I have a page, which has a small iframe on it which loads a php
    page showing the status of a server, and refreshes itself every 30 seconds or so.. that works fine..
    the only problem is, when it refreshes, it seems to take at least 1 second to show anything, and I
    don't like it going blank like that.. my question is, can I set the php to check the status
    every 30 seconds, and check to see if it's different from before, and if so, t....
  3. Multiple Drop Down Menus W/ Submit Button
    (9)
    I am building a page that will have 2 drop down menus and a submit button. The first menu will have
    one set of options, say colors (red, blue, green, yellow). The second menu will have another set of
    options, say sizes (small, medium, large). What I want to be able do is select a color and a size,
    click submit and have it go to the page for those options. So if a user picks 'Red' and
    'Small' and clicks submit they will be linked to page1.html. If they pick 'Blue' and
    'Large', they will be linked to page2.html, and so on. Any ideas how to ....
  4. Dynamic Button Size
    (1)
    In my application I have a custom tag that generates all the action buttons that the page needs. My
    problem is that in IE the space between the left side of the button and the image inside the button
    are not consistant. Some buttons have 3 or 4 more pixels of padding on the left side then others.
    This causes my buttons to be too large and hence the area the buttons are generated in stretches too
    far. I could wrap the buttons around to another line or add scroll bars.. but if it will fit in FF I
    think it should fit in IE as well. So my question is can I set the padding....
  5. Making A Refresh Link On Your Website.
    refresh local webpage (17)
    /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> post it on ur website
    CODE refresh It can refresh local webpage. U can add it at ur forum so that each topic u
    are reading can be refresh easily. If ur website return to homepage after pressing I.E. refresh
    button, then u must need this coding. /cool.gif' border='0' style='vertical-align:middle'
    alt='cool.gif' /> Beacus visitors only want to refresh local webpage but not go back to homepage.
    /ohmy.gif' border='0' style='vertical-align:middle' alt='ohmy.gif' /> * same co....
  6. Auto Refresh
    after page loads (13)
    Okay this seem like a siple enough task, I would like to tell an html page to refresh, but two
    conditions have to be met, 1) the page must have finsihed loading, 2) it must wait a given number of
    seconds, say 5. Buy the way this needs to be automatic. Thanks....
  7. Submit Button
    (3)
    I have a form on my page. I do not have a submit button, but when I hit enter on my text field, it
    is like I am clicking on a submit button. My page refreshes to the original state, and my values are
    reset. I found this out because I made a submit button and tried it. Is there a way to get around
    this? I am trying to use a javascript that captures the key strokes. That works, but then the submit
    like event still fires after my code runs, nullifying any changes my code has made. html4strict
    Code: CODE 1.         2.             3.                 4.   ....
  8. Radio Button
    (5)
    I am trying to maintain the radio button selection on a Submit, but the form refreshes to its
    default selection. BTW, After a Submit is clicked, the radio form stays visible on the top of the
    screen while the query results are displayed on the bottom half of the screen (we're using an
    internal, embedded link). That's when the default selection comes into place. Any help would be
    appreciated. Please respond Kvarnerexpress.....
  9. Substitute Form Button For An Image
    homemade images in forms buttons (3)
    Hi, I have the next formular : CODE                                                  
                                                  I want to substitue the add button for an
    image CODE that i created but i want still to have the same funcitonlity when someone
    clicks. How can i do this? Thanks in advanced!....
  10. Button To Print Current Web Page
    (18)
    Hi, Does anyone know how to create a button that will printo out the current page. What I want to
    do is have the user fill out a form (containing name, address, zip, etc). They will then click on a
    "print" button and it will print out the form data. Any ideas? Thanks.....
  11. Enter Keypress Submits Wrong Button
    (2)
    Ive got a form, with a submit button on the left and a submit button on the right. By default on the
    enter keypress, the form submits the left submit button, but i want it to submit the right button.
    How would i accomplish this? kvarnerexpress....
  12. Refresh Web Page
    (7)
    Well this questioned wasnt answered in 2003 but hopefully somebody knows the answer, sorry if this
    is a simple question but can i force the web browser to refresh the page after pressing the submit
    button. Basically my cgi perl form copies a different jpeg with teh same name into my public_html
    folder every time the form is submitted, therefore i have to click on the refresh button in IE to
    see the different picture. I have tried Code: but it doesnt seem to work in IE6 ....

    1. Looking for refresh, page, back, button, hit

Searching Video's for refresh, page, back, button, hit
See Also,
advertisement


Refresh Page After Back Button Hit

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com