Click to See Complete Forum and Search --> : page submit
StyM
January 23rd, 2004, 02:27 AM
hello and Good Day.
i have 2 frames, my first frame is a button. i want my button to submit the page in the 2nd frame, how can this be done?
thanks for the help.
ZoSoo7
January 23rd, 2004, 01:18 PM
You'll have to use client side script to access it. I can't think of it off of my head, but I think you'll have to use document.parent or window.opener, and from there you should be able to access it via a couple more properties. Just navigate through the DOM until you can call the submit method.
beansoftware
January 23rd, 2004, 05:16 PM
Just add this code to onclick event of your button on first frame:
window.parent.frames("YourSecondFrameName").document.YourFormName.submit();
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.