kvarnerexpress
Jan 1 2006, 07:29 PM
| | Hi. I have a page that is dynamically build through DOM manipulation. So, when I browse outside the page, and then click back, those dynamically created DOM objects are gone. Since I am also using JSP / Servlet technology, I can rebuild this page easily, which I have done.
Here is my dilemma. If the user leaves the dynamic page, then clicks back on their browser, I need the page they are going back to to refresh. I can't figure out how to do this. I've tried using the META tag, but it won't do it. Help would be appreciated. Thanks.
|
Reply
SqlByte
Jan 2 2006, 02:09 AM
uhm.. you cant do that, i think. Becouse it wont be the same on every web browser. Try to view that page in IE then try in Opera... then try all of browsers  Do you see that Opera uses page from cashe memory... im not some exprert but this may help you, or not
Reply
beeseven
Jan 7 2006, 07: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 -->
Reply
beeseven
Jan 7 2006, 07:41 PM
Oops, I appear to have missed part of your post. Did you use any or all of those?
Reply
Trap FeedBacker
Sep 27 2007, 11:33 PM
Someone new, responding with same problem as SqlByte. I tried this solution and it didn't work. Just letting you know. Using Mozilla Firefox. I used all 3 lines. I tried another meta tag, with <meta http-equiv="refresh" content="2"> which does work, but after the initial refresh, I don't want the page to reload each and every time thereafter (always shows it's loading, something people round here would get real antsy about).
Reply
Trap FeedBacker
Mar 30 2008, 08:03 PM
Replying to Trap FeedBackerHttp://digg.Com/programming/Force_browser_refresh_when_pressing_the_back_button_in_Opera
Reply
Recent Queries:--
refresh page when click back - 1.54 hr back.
-
refresh page from back button - 2.14 hr back.
-
php submit refresh back - 2.42 hr back.
-
hitting back button reloads dynamic images - 2.57 hr back.
-
refresh html back button - 3.14 hr back.
-
html forms submit then refresh - 4.38 hr back.
-
do not refresh iframe on back button hit - 4.61 hr back.
Similar Topics
Keywords : refresh, page, back, button, hit
- Refresh Main Window By Clicking Link In Popup?
(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....
Multiple Drop Down Menus W/ Submit Button
(6) 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 ....
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....
Making A Refresh Link On Your Website.
refresh local webpage (16) /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> post it on ur website
CODE <a href="javascript:this.location.reload();" style="color:
#000000; font-weight: normal">refresh</a> 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 w....
Auto Refresh
after page loads (9) 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....
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. <form name="FormPictureInfo"> 2.....
Radio Button
(3) 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.....
Substitute Form Button For An Image
homemade images in forms buttons (3) Hi, I have the next formular : CODE <form method='post'
action='index.php?mode=2&id=1'> <input type='hidden'
name='name' value='Canon Digital Ixus 700'/> <input
type='hidden' name='id' value='1'/> <input
type='hidden' name='qty' value='1'> <input
type='hidden' name='cost' value='40'> <input
type='submit' value='Add to ca....
Button To Print Current Web Page
(13) 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.....
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....
Refresh Web Page
(5) 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 ....
Looking for refresh, page, back, button, hit
|
|
Searching Video's for refresh, page, back, button, hit
|
advertisement
|
|