Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Transfer variables in frames  RSS feed

 
chiu pong
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i have a question on frames and variables transfer. i have a page (mainFrame.jsp) with two frames (frameA.jsp and frameB.jsp). i get a variable (LoginName) in mainFrame.jsp and transfers it to frameA.jsp. In frameA.jsp, i get the variable and use it to retrive another varibale (pathname) and then transfer it to frameB.jsp. Can anyone suggest me a method to do so?
Thanks!!
PS. Is it a good way to pass the variables by using hidden form?
ypc
 
Winston Smith
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When using forms, you can specify the target frame and page to send the data to. For instance:
<FORM method="POST" action="projects.jsp" target="center" onSubmit="true">
This will send the data to "projects.jsp", which will appear in the frame titled "center".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!