File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes how to get a updated webpage after submitting the form Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "how to get a updated webpage after submitting the form " Watch "how to get a updated webpage after submitting the form " New topic
Author

how to get a updated webpage after submitting the form

Chandhrasekar Saravanan
Ranch Hand

Joined: Jun 16, 2002
Posts: 57
Hi,
I am submitting a form, and on submit i am also loading a page in the top frame, but i noticed that the frame is not the current one. it is the previous version. i wanted to know how to get a recent version of the web page in the top frame.
<script language="JavaScript">
var OutT="This is testing";
function changeFrame_a(){
parent.frame_a.document.location="http://ecelx00.eng.uab.edu/twiki/bin/view/Zaurus5000d/NewTestpage";
}
</script>
</head>
<form name="main" action="/twiki/bin/save/Zaurus5000d/NewTestpage" method="post">
<input type="hidden" name="text" value="" />
<input type="submit" value=" Save Changes " CLICK="main.text.value=OutT;return changeFrame_a()" />
</form>
whenever i submit the form , a new version of webpage is created , i want that version of webpage to load in my top frame.
:roll:
Chris Baron
Ranch Hand

Joined: Mar 21, 2003
Posts: 1028
Hi Chandhrasekar,
i think it can be done without javascript:

cb
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
THe page might be cached and is not being updated, that could be the problem after the form is submitted. Search thj forum for no cache and I am sure you can find solutions if this is the case.
Eric
 
 
subject: how to get a updated webpage after submitting the form
 
Threads others viewed
document.write doesn't work in netscape
onSubmit
HELP! JSP doesn't SAVE VALUES to BEAN
trouble using javascript to select different buttons
How to keep a button from submitting a form.
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com