Copy link to clipboard
Copied
Hi,
How to call a cfinput type="submit" by a normal button?
In javascript, i tried document.cfformName.submitButtonName. The result is undefined.
Is there any way to communicate between these two?normal input button and cfinput type=submit.
I just want that, when i click my button, it will simultaneously click the button also from cfform flash.
Anyway, these two buttons are in separate file.
Regards,
Jeff
Copy link to clipboard
Copied
Hi,
Anyone out there willing to help me.
<cfform format="flash" name="form_flash">
<cfinput type="submit" name="btnFlash">
</cfform>
<input type="button" value="BUTTON" onclick="chkFlash();">
<script>
function chkFlash()
{
document.form_flash.btnFlash.click();
}
</script>
This is not a working sample. I want to ask help if there any way to communicate with the cfform flash?Currently, it is undefined with function chkFlash.
Regards,
Jeff