
dojo
mathgl
这个作者很懒,什么都没留下…
展开
-
handcrafted json rpc on dojo
default method is GET, need POST. <script> require(["dojo/on","dojo/dom", "dojo/request/xhr", "dojo/json", "dojo/domReady!"], function(On, Dom, Xhr, Json) {原创 2013-05-16 12:19:11 · 111 阅读 · 0 评论 -
"vertical layout" in contentpane
well it's actually not a vertical layout but a work around. I spent a few hours on internet for how to place some widgets in contentpane with vertical layout. (the default layout is horizontal). and...原创 2013-05-22 19:27:35 · 94 阅读 · 0 评论 -
show up label for dynamic created checkbox
when creating checkbox on fly like var cb = new CheckBox({}); you may find there is no label, the default checkbox is based on <input checkbox> so you need to add label manually. Based...原创 2013-05-23 18:12:25 · 173 阅读 · 0 评论 -
make sure async:true in dojoConfig
when dojo version >= 1.7 make sure async: true is in you dojoConfig, otherwise, it may incur some very weird problems which wasted me two hours to figure out.原创 2013-05-27 12:19:03 · 97 阅读 · 0 评论 -
fadeTo in dojo
Jquery has a method called fadeTo can do animation for opacity change. equivalent version of dojo is require(["dojo/_base/fx"],function(BaseFx) { BaseFx.anim("divId", {opacity: your desired v...原创 2013-06-03 15:00:10 · 120 阅读 · 0 评论 -
customized event
make sure the type of event is lower case otherwise it won't work.原创 2013-07-03 10:15:48 · 130 阅读 · 0 评论 -
setting css properties with hyphens on the fly
well it has nothing to do with dojo but I don't bother to create another tag, so I keep using it. when dealing with setting css properties on the fly we may come across some names with hyphens li...原创 2013-08-23 16:13:00 · 148 阅读 · 0 评论