Nov 8, 2009

Refresh Web Page

free web hosting
Open Discussion > MODERATED AREA > 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

Comment/Reply (w/o sign-up)

cmatcmextra
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?

Comment/Reply (w/o sign-up)

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.

Comment/Reply (w/o sign-up)

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

 

 

 


Comment/Reply (w/o sign-up)

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>

Comment/Reply (w/o sign-up)

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.

Comment/Reply (w/o sign-up)

FeedBacker
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

Comment/Reply (w/o sign-up)

(G)gautam
Page Reload when Page Time Ideal
Refresh Web Page

I have one page which is built with javascript and php.If I access that page at that time automaticaly refresh or reload event apply but I want when on this page any event is fire like mouse move,mouse click or key press at that time not refresh automatically but when it's ideal time limit is over then start refresh automatically.

 Is it Possible so please suggest me ...?????

-question by gautam

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)

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
    (14)
    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 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....
  5. 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....

    1. Looking for refresh, web, page

Searching Video's for refresh, web, page
See Also,
advertisement


Refresh Web Page

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