submit iframe with button

Hi,

I’ve got an iframe:
{ view:“iframe”, id:“SignatureFrame”, name:“SignatureFrame”, loading:true, height:“100”, src:“XML/Report/Signature.php”},

This iframe has a form in it, how can i submit that form with a button outside the iframe?

Tried stuff like this:
document.getElementById(“SignatureForm”).submit();

Thanks!

Not sure if you can do what you’re asking, but with iframes in dhtmlx you use the getWindow() method to get a window object for the iframe, so this might work:

var sframe = $$('SignatureFrame').getWindow();
sframe.document.forms['SignatureForm'].submit();

I say “might”, never tried it myself :slight_smile: