[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • Last Modified:

Vbscript event handling with frames & document.write

I have a HTLM page using frames.     In one frame, I have some VBSCRIPT that has a form, and in response to user input on the form, triggers an event handler script.      The event handler uses document.write    to write a new page.       Everything works perfectly (so far).       [The pages I am referring to are not ASP, just HTML]

The issue is that I would like to have the form in frames(1), and have a new page produced in response to the form (as currently), BUT I would like the resulting page that gets written to be displayed in frames(2).

I have tried lots of variations on the syntax (such as parent.frames(2).write ... )   but I haven't been able to make this work.       Another technique I tried was to write the event handler onto a page in frames(2), hoping it would detect the event produced in frames(1).

I can't believe it isn't possible to do this, but I can't seem to figure out a way.      Can someone please advise me?   thanks!

          Peter vB
1 Solution
To write in your frame 2, use: parent.frames["frame2"].document.write("Hello World"), where "frame2" is the name of your frame.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now