dojo

worklight fail to require DOJO Combobox on real device -fail to load … /dijit/form/nls/it/ComboBox.js

ⅰ亾dé卋堺 提交于 2019-12-13 18:38:04
问题 Dojo 1.8 Worklight 5.0.6 On Browser and android emulator all works, but if I execute the app on real the parse didn't works. This is Dojo.js function dojoInit() { require([ "dojo", "dojo/parser", "dojox/mobile", "dojox/mobile/compat", "dojox/mobile/ScrollableView", "dojox/mobile/ScreenSizeAware", "dojox/mobile/FixedSplitter", "dojox/mobile/Container", "dojox/mobile/ComboBox" ], function(dojo) { dojo.ready(function() { }); }); } This is browser's error on tablet: xxx.26.81:8080/apps /services

dojo 1.9: what annotation does declare.safeMixin add?

筅森魡賤 提交于 2019-12-13 16:27:53
问题 I have been reading through the dojo 1.9 documentation about declare.safeMixin(), focusing on the difference between it and lang.mixin. Here is the explanation I found... safeMixin() is a function defined in dojo/declare. It has the same functionality as dojo/_base/lang::mixin(), but additionally it annotates all copied methods compatibly with dojo/declare. This decoration can affect how this.inherited() works in mixed-in methods. I can follow the example but it doesn't really explain exactly

measure page rendering time on IE 6 or FF 3.x

寵の児 提交于 2019-12-13 16:24:46
问题 I have a page constructed using Dojo and I need to measure how long the page takes to complete rendering on my browser (NOT time-to-first-byte, or time-to-last-byte). In other words, the page (all bytes) might get downloaded to my broswer but the components I'm using (eg. calendar, grid etc) might still initialize and render long after the complete page has been downloaded. Are there any tools that would allow me to measure when the page and all its components have completely rendered,

dojo.parser.parse doesn't always return

微笑、不失礼 提交于 2019-12-13 15:54:30
问题 I have this bit of code. It is used to update the form after a select element changes. onChange an "ajax" call is made and this bit of code takes care of the response. The first time everything works as expected. However it the dojo.parser.parse fails to return about 50% of the time. At first it looked like this: var targetNode = dojo.byId(node); targetNode.innerHTML = data; dojo.parser.parse(targetNode); Then I read something about the objects existing. So I thought that maybe destroying

Loading Google Maps API V3 asynchronously with dojo.io.script fails silently

做~自己de王妃 提交于 2019-12-13 15:21:23
问题 Smushing Google's asynchronous loading docs into dojo's asynchronous loader yields: dojo.io.script.get({ url: 'http://maps.googleapis.com/maps/api/js', jsonp: 'callback', content: { sensor: 'false' }, load: function() { console.log('done'); }, error: function() { console.log('error'); } }); Or fiddle with it: http://jsfiddle.net/sKNmS/ The maps JS files are loaded, but the callback is never called. Why? 回答1: dojo.io.script.get is only usable for JSONP services. Your callback is never called

Implementing restful servers with Django for Dojo's JsonRestStore - Which tools for the job?

社会主义新天地 提交于 2019-12-13 15:21:02
问题 I'm writing some restful serverside resources which talk with dojo's JsonRestStore (JRS) on the client-side: http://dojotoolkit.org/reference-guide/dojox/data/JsonRestStore.html I notice that there are a couple of projects that I may be able to leverage to help create restful resources (i.e. to expose simple CRUD operations on Django models): http://code.google.com/p/django-rest-interface/ and http://django-rest-framework.org/ I'm confident that I could write the restful serverside interface

add bold and font to dijit/form/select programatically

时光怂恿深爱的人放手 提交于 2019-12-13 14:38:20
问题 Hi How do I add style such as bold and font size to each option in dijit/form/select programatically? ready(function()//This function won't run until the DOM has loaded and other modules that register have run { parser.parse(); var select_Card = new Select ({options: [ {label:"Select Card", value:"", selected:true}, {label:"Mk7ABC Card", value:"testdata1970_05", selected:false}, {label:"Mk7CBC Card", value:"testdata1970_10", selected:true}, {label:"Mk10DC Card", value:"testdata2060_03",

dojo listbox control

只谈情不闲聊 提交于 2019-12-13 13:42:13
问题 Is there any list box or similer control in Dojo/dijit/dojox ?? 回答1: You can take a look at dijit.form.MultiSelect. 来源: https://stackoverflow.com/questions/2902843/dojo-listbox-control

sorting dojox mobile ListItem against label

懵懂的女人 提交于 2019-12-13 12:51:19
问题 I want to sort dojox mobile ListItem by label alphabetically. The label in my DOM looks like: <div class="subject">Sort alphabetically against me only</div> <span class="bomtype"> don't sort against me. </span> I want to sort by the text in the label having class="subject" in ascending order. I am using Dojo 1.9.1. 回答1: You can use dojox/mobile/EdgeToEdgeStoreList or dojox/mobile/RoundRectStoreList, for instance: <ul data-dojo-type="dojox/mobile/EdgeToEdgeStoreList" data-dojo-props='store:

Worklight project searches for main.js and typematic.js when 'provide library resources' is disabled

北城余情 提交于 2019-12-13 12:22:30
问题 Worklight version v6.0.0.20130917-1749, Dojo 1.9 When I run the preview of an android project when 'provide library resources' is disabled I get the following errors: "NetworkError: 404 Not Found - http://10.99.8.72:10080/Klappr/apps/services/preview/Klappr/android/1.0/default/main.js" main.js "NetworkError: 404 Not Found - http://10.99.8.72:10080/Klappr/apps/services/preview/Klappr/android/1.0/default/typematic.js" typematic.js In android this results in a 'scriptError:21'. I copied all