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
没有评论:
发表评论