How to get Java Servlet output into a different HTML Frame.

Hi,
I have a HTML Form in a frame that sends information to a servlet.  I would like the output of the servlet to go to a different Frame.  How can I do this?

thanks

Sandy
hiderrt1Asked:
Who is Participating?
 
TimYatesCommented:
if you have named your frames, I *think* you can do:

parent.theotherframe.postData( "Tim" ) ;

------------

http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20287547.html

Seems to agree with me, but I am no Javascript expert :-(
0
 
TimYatesCommented:
I think you will need to do some Javascript jiggery-pokery to get the form to post from the other frame...

AFAIK, there is no way to redirect the servlet output back into another frame...

I may be wrong...
0
 
jimmackCommented:
LOL ;-)

>> jiggery-pokery

That's a technical term is it ?

;-)
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
TimYatesCommented:
errr...yes ;-)
0
 
hiderrt1Author Commented:
Can someone show me how this might work?  I am not aware how I can have Javascript on one frame comunicate with Javascript on another frame.
0
 
TimYatesCommented:
parent.frames[ 1 ].postData( "Tim" ) ;


then in the other frame, have a form with a hidden value (in this case name), and do:

function postData( name )
{
  document.forms[ 0 ].name = name ;
  document.forms[ 0 ].submit ;
}

I think...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.