Discussion:
[Dojo-interest] dijit.byId("elementName") in 1.8
c.sennewald
2012-08-18 18:34:38 UTC
Permalink
Hy
I tried version 1.8.0 a few minutes ago.
Suddenly I got an javascript warning that the byId() Method is not supported
by the dijit object.

When I switch back to version 1.7.2 all work fine.

Does anyone has an idea whats join wrong for me?

thanks and kind regards

Chris



--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dijit-byId-elementName-in-1-8-tp3988673.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
Kitson Kelly
2012-08-18 18:55:15 UTC
Permalink
If you are using Firefox+Firebug+Dojo Plugin, this is because that plugin
has not been updated for AMD.

If it is your own code, and you are trying to use dijit.byId, and your code
is AMD and in async mode, it is because you aren't supposed to access it
this way anymore:
http://dojotoolkit.org/reference-guide/1.8/dijit/registry.html#dijit-registry-byid
Post by c.sennewald
Hy
I tried version 1.8.0 a few minutes ago.
Suddenly I got an javascript warning that the byId() Method is not supported
by the dijit object.
When I switch back to version 1.7.2 all work fine.
Does anyone has an idea whats join wrong for me?
thanks and kind regards
Chris
--
http://dojo-toolkit.33424.n3.nabble.com/dijit-byId-elementName-in-1-8-tp3988673.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
darthvader
2012-08-19 11:38:37 UTC
Permalink
I,m surprised u can access dijit.byId in 1.7.1 usually i work with the
dijit/registry to get widget id and that works with dojofirebug in async
mode without any issue. No sure dijit.byId is he right way anymore.



-----
"Everybody Lies"
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dijit-byId-elementName-in-1-8-tp3988673p3988684.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
Jim Quill
2012-11-27 10:04:52 UTC
Permalink
Hi Chris,

we also encountered this recently on upgrade from dojo 170 to 181, and came
across your question, and was also wondering why.

In 1.7 there is a dependency chain dijit/focus -> dijit/ally ->
dijit/_base/manager
that brings the dijit.byId() into the dijit namepsace.

dijit/a11y doesn't use any of the dojo/_base/manager APIs so in Dojo 1.8.0
the unused dependency was removed
http://bugs.dojotoolkit.org/browser/dojo/dijit/trunk/a11y.js?rev=27551

so now you would have to explicitly import dijit/_base/manager

but as the other posters note you shouldn't really access it this way any
more and use the dijit/registry.byId() API.

Thought it might be of interest,
Jim



--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dijit-byId-elementName-in-1-8-tp3988673p3991611.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.

Loading...