Ok. I did something based off what you said. I did implement some javascript, though.
- <form name="ParentForm" id="ParentForm" action="action.cfm" method="post">
-
-
<input type="hidden" name="TestFormField" value="booyah" />
-
<input type="submit" value="Submit the Parent Form" onclick="showCfWindowConfirm(); return false;" />
-
-
</form>
-
-
<script type="text/javascript">
-
function showCfWindowConfirm() {
-
ColdFusion.Window.show('cfwinconfirm');
-
}
-
-
function hideCfWindowConfirm() {
-
ColdFusion.Window.hide('cfwinconfirm')
-
}
-
-
function hideAndSubmit(cfwindowname,formID) {
-
ColdFusion.Window.hide(cfwindowname)
-
document.getElementById(formID).submit();
-
}
-
</script>
-
-
<cfwindow initShow="false" title="Confirm" name="cfwinconfirm" modal="true" center="true" source="confirm.cfm" width="300" height="150"/>
and in confirm.cfm:
- <a href="" onclick="hideAndSubmit('cfwinconfirm','ParentForm'); return false;">Confirm</a>
-
<a href="" onclick="hideCfWindowConfirm(); return false;">Cancel</a>
Note: this is the the skeleton of what I did just for demonstration purposes. It does not reflect how the scripts and files were placed in my actual application.
As always, I really appreciate the help!