medesi73
2014-11-08 16:36:52 UTC
<html>
<head>
require([dijit.form.RadioButton, dojo/domReady!],
function(RadioButton) {
console.log("Radio Button :", dijit.byId("selection);
console.log("Radio Button :", registry.byId("selection);
}
</head>
<body>
<input id="selection" type="radio"
dojo-Type="dijit.form.RadioButton"/>
</body>
</html>
In above pseudo code both console.log functions are giving undefined. As i
am giving domRady! id specified in require the function will wait until the
dom is loaded (i.e the content in body tag) , as the dom is already loaded
why the console.log are giving undefined ? Is my understanding is worng ?
how to get the selection widger reference ?
Thanks,
Durga
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dojo-domReady-vs-dijit-byId-vs-registry-byId-tp4004238.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
<head>
require([dijit.form.RadioButton, dojo/domReady!],
function(RadioButton) {
console.log("Radio Button :", dijit.byId("selection);
console.log("Radio Button :", registry.byId("selection);
}
</head>
<body>
<input id="selection" type="radio"
dojo-Type="dijit.form.RadioButton"/>
</body>
</html>
In above pseudo code both console.log functions are giving undefined. As i
am giving domRady! id specified in require the function will wait until the
dom is loaded (i.e the content in body tag) , as the dom is already loaded
why the console.log are giving undefined ? Is my understanding is worng ?
how to get the selection widger reference ?
Thanks,
Durga
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dojo-domReady-vs-dijit-byId-vs-registry-byId-tp4004238.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/
Dojo-***@mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/
Dojo-***@mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest