• 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: 42968
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