This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Mrutyunjay Hanchinal
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic