This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pass parameter to applet in another window

 
Chad Clites
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to load an applet in a new window, and pass it a (dynamic) parameter? I can do it using javascript if everything is in the same window, but I can't figure out if it is possible to pass parameters to a different window. I am trying to add some functionality to a pre-existing web site, and my only option (that I an think of) is to use javascript. I can't tinker with the html without causing huge problems.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try appending a parameter to the URL of the page that contains the applet, and then read that via "getDocumentBase" in the applet. I think that should return the full URL of the page, including the parameter.
 
Chad Clites
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did finally find a javascript method. In my new window, I use document.opener.my_element.my_value. That gets the element I need from the parent window. I've been trying to figure this out for two weeks, and it turned out to be a simple one-line piece of code. :roll:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic