my dog learned polymorphism
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

switch link from two url

anna yin

Joined: Jul 11, 2001
Posts: 5
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
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.
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

I agree. Here's the link:
subject: switch link from two url
It's not a secret anymore!