kvarnerexpress
Apr 20 2005, 11:19 PM
| | 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: <meta http-equiv="no-cache" but it doesnt seem to work in IE6
|
Reply
electriic ink
May 1 2005, 12:53 PM
You want a refresh button on your page? That how I understand it, here's the code: <form action="index.cgi"> <input type="submit" value="Change Image"> </form> index.cgi is your page you want to refesh to. The button will take you to index.cgi creating a refresh effect thus causing the image to change. So simple. Is that what you wanted?
Reply
spacemonkey
May 4 2005, 02:38 AM
I haven't tested this, but you could try a little javascript in an "onclick" event on your submit button, like so: CODE <input type="submit" value="Change Image" onclick="history.go(0)" /> "history.go(0)" takes you to the current page in IE's history, in other words, it refreshes the page. You can make an image change its source automatically (without a page refresh) with javascript. If that is something you think would work for you, just say so and I'll post an example.
Reply
palincs
Mar 10 2006, 06:39 AM
QUOTE(spacemonkey @ May 4 2005, 03:38 AM)  I haven't tested this, but you could try a little javascript in an "onclick" event on your submit button, like so: CODE <input type="submit" value="Change Image" onclick="history.go(0)" /> "history.go(0)" takes you to the current page in IE's history, in other words, it refreshes the page. You can make an image change its source automatically (without a page refresh) with javascript. If that is something you think would work for you, just say so and I'll post an example. Sorry, it refreshes only the active frame 
Reply
Inspiron
Mar 10 2006, 04:32 PM
Try this.. CODE <html> <head>
<script language="javascript"> function refreshpage() { window.location.reload(); }
</script>
</head>
<body>
<form action="" method="" name="" onsubmit="refreshpage();"> <input name="submit" type="submit" value="submit"> </form>
</body>
</html>
Reply
BuffaloHELP
Mar 10 2006, 04:52 PM
I am understanding the question as: after submit ==> see new page (with different jpg) is this right? If so, you can do HTML <form method="POST" action="run your script to submit" name="myform" > <input type="hidden" name="name of another function that redirects" value="the secondary file"> And on "the secondary file" you can do HTML <meta http-equiv="refresh" content="1"> This will refresh the secondary file's instruction in 1 second. This is useful if you enabled cookies and it needs to be forced refresh. You can adjust the seconds or not include it at all.
Reply
iGuest
Jun 4 2008, 06:25 AM
Javascript code for Page Refresh
Refresh Web Page
The code does work wonderfully. Though I am a novice, I could add the code to my Web Page: Http://www.Irtsa.Net/dlqb-01.Htm And it worked wonderfully well. Thanks and keep it up! -reply by Navtej Singh
Reply
Recent Queries:--
web page refresh - 0.36 hr back. (1)
-
auto refresh page without javascript - 0.56 hr back. (1)
-
javascript refesh page every 1 second - 1.25 hr back. (1)
-
how to refresh ie home page - 2.21 hr back. (1)
-
refreshing a web page using perl - 3.82 hr back. (1)
-
how to refresh web page, c# - 4.46 hr back. (1)
-
automatically refresh web page - 6.79 hr back. (1)
-
javascript refresh page without submit - 9.00 hr back. (1)
-
cgi refresh webpage - 9.73 hr back. (1)
-
refresh page action - 10.23 hr back. (1)
-
refresh a website after submit php - 10.29 hr back. (2)
-
how to refresh web page using jsp - 11.23 hr back. (1)
-
what codes to input to allow page refresh - 11.77 hr back. (1)
-
javascript submit on refresh - 13.72 hr back. (1)
Similar Topics
Keywords : refresh, web, page
- 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....
Refresh Page After Back Button Hit
(11) 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. ....
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....
Looking for refresh, web, page
|
|
Searching Video's for refresh, web, page
|
advertisement
|
|