Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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