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 switch link from two url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "switch link from two url" Watch "switch link from two url" New topic
Author

switch link from two url

anna yin
Greenhorn

Joined: Jul 11, 2001
Posts: 5
Hi
Can I have a html with frame ( when do action in the main frame, I also need the top frame send request to another url ( may be different web server) for reload the top frame?
Why I need this, I have two web server to switch the link, and I need keep the session active when I am on the other webserver link and do not want when I come back, time out...

Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Anna
In the first frame have an onsubmit java script function that just calls submit on the form in the other frame.
Something like this in the frame that gets submitted should do it for you. This would go in the onsubmit() of the frame that is submitted, it will call the submit method of the other frame.
parent.frameName.document.formName.submit();
frameName si the name of the frame that holds the form you want submitted.
formName is the name of the form you want submitted.
hope that helps
Dave


Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: switch link from two url