Refresh Web Page

free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

Refresh Web Page

kvarnerexpress
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
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
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
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 mad.gif

 

 

 


Reply

Inspiron
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
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
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



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*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. how to refresh a page in java script - 0.87 hr back. (1)
  2. javascript codes to make your page refresh - 1.58 hr back. (2)
  3. refresh web page - 3.45 hr back. (1)
  4. refresh webpage - 4.09 hr back. (1)
  5. after submitting page refresh - 5.05 hr back. (1)
  6. refresh page with form submit - 5.29 hr back. (1)
  7. how to refresh a web page - 2.03 hr back. (2)
  8. javascript code for refresh the page after click on submit button - 19.33 hr back. (1)
  9. javascript code for refresh the page after click on submit - 19.70 hr back. (1)
  10. cgi form submit without refresh - 22.52 hr back. (1)
  11. on submit refresh page - 25.92 hr back. (1)
  12. internet explorer force refresh javascript form post - 26.57 hr back. (2)
  13. refresh page no delete value in form - 30.91 hr back. (1)
  14. refresh after submit page - 31.40 hr back. (1)
Similar Topics

Keywords : refresh, web, page

  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. 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. ....
  4. 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....
  5. 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....

    1. Looking for refresh, web, page

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for refresh, web, page

*MORE FROM TRAP17.COM*
advertisement



Refresh Web Page



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE