Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to cause a sub in an iframe to execute

Status
Not open for further replies.

TravisLaborde

IS-IT--Management
Nov 4, 2002
84
US
I have a page, with a "Save" button, with client side script, which is trying to cause the form in an iFrame to submit itself.

I'm having trouble with the syntax to call the subroutine..

This code works:

window.frames(0).location.href = "
So, I am referencing the frame properly, but I just can't get the subroutine to fire.. I've tried all sorts of combinations of things like this:

window.frames(0).document.all.SaveTheForm()

Where "SaveTheForm" is the name of a VBScript client side subroutine that works fine when I call it from WITHIN that same page...

All clients are using IE6. Please help if you can.

Thanks,
Travis
 
I don't have any experience calling a VB script but I would think that you would have to use the onload comment to get it to execute.

Don't know, but it's worth a try...

There's always a better way...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top