GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes How to get the contents of a frame form another frame in javascript 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 "How to get the contents of a frame form another frame in javascript" Watch "How to get the contents of a frame form another frame in javascript" New topic
Author

How to get the contents of a frame form another frame in javascript

Mrutyunjay Hanchinal
Ranch Hand

Joined: Sep 26, 2001
Posts: 50
Hi
I have two frames and one will have a submit button and another will have a table containing plain text.This plane text is being produced by use of jsp dynamically.
I need to send the exact contents of the second frame to the server on click of submit button in frame1, that is basically to send the contents of the frame 2 as attachment to a mail using java mail.
So I need the contents displayed in frame 2 as a file to attach.
Please tell me How do I go about it?
Thanks in anticipation
Mrutyunjay
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
How to get the contents of the table into a file I leave up to you. To access one frame from another you can use:

substitute your frame's name for nameOfTheOtherFrame and substitute the element you are trying to get for nameOfTheElement.
 
GeeCON Prague 2014
 
subject: How to get the contents of a frame form another frame in javascript