Get your CodeRanch badge!*
The moose likes HTML, CSS and JavaScript and the fly likes returning the result in different frame 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 "returning the result in different frame" Watch "returning the result in different frame" New topic
Author

returning the result in different frame

ashok ganesan
Ranch Hand

Joined: Jan 02, 2007
Posts: 50
hi, in my html page i have got two frames frame1 and frame2 . in frame1 i have got a form tag which on clicking the submit button will call a servlet and the servlet will return the result to frame1. instead of frame1 i want the result to be shown on frame2 .is there any chance of doing this.



regards and thanks

ashok
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Make the form post to frame two by setting the target.

Eric
Subhadip Chatterjee
Ranch Hand

Joined: Dec 12, 2006
Posts: 93
Hi Ashok,
to do as Eric has said, i am writing a sample code for you:
on click of link in Frame1, execute this script->
parent.<FRAME2_name>.location.href = "<your action to call servlet & get response>";

i think this will solve your purpose...


Refreshing life every moment...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: returning the result in different frame
 
Similar Threads
JFrame focus
How to make a frame modal
how to Deiconified the JFrame????
Multiple Frames Updated by One Servlet?
jsp + frames