Dojo setup is done and it's working. I'm trying the following in the
view script:

<?php
$this->dojo()->onLoadCaptureStart();
?>
function () {
    dojo.connect(dijit.byId("[form id]"), "onSubmit", function()
{alert('test')});
}
<?php
$this->dojo()->onLoadCaptureEnd();
?>

The issues are:

1) dijit is always undefined
2) if replace dijit.byId by dojo.byId the binding doesn't work and it
damages the page layout
3) if use dojo.addOnLoad instead of
onLoadCaptureStart()/onLoadCaptureEnd() the binding doesn't work and
it damages the page layout

Reply via email to