Vbscript event handling with frames & document.write
Posted on 2006-04-19
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!