dojo

How do I add a google map to a dojox mobile view?

♀尐吖头ヾ 提交于 2019-12-02 08:26:48
I am unable to successfully add a google map to my dojo mobile application. I have the following element in markup: <div id="venue" dojotype="dojox.mobile.View" style="height:100%"> <div id="map_canvas" style="width:100%; height:100%"></div> </div> And this script: function initializeMap() { var latlng = new google.maps.LatLng(-34.397, 150.644); var myOptions = { zoom: 8, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var node = dojo.byId("map_canvas"); var map = new google.maps.Map(node, myOptions); } Nothing appears when I execute the initializeMap function. I also tried to set

IBM Worklight - Unable to load index.html in a Dojo app

我只是一个虾纸丫 提交于 2019-12-02 08:25:45
I have created sample Wokrlight Project with Dojo library (default template project). The Android version of app runs fine in the Android Emulator showing the content of index.html. But When I run the same app in a device, it first shows IBM splash image and then the following error: Application Error The Connection to the server was unsuccessful. (file:///data/data/com.HelloWorklight/files/www/default/index.html) Here are the steps I followed. Create New Hybrid Application Worklight Project "HelloWorklight" with Application Name as "HelloWorklight". Added Dojo Library using "Configure

dojo declare correct way

允我心安 提交于 2019-12-02 08:00:43
问题 file: dojo/dir1/utils/XmlJsonUtils.js // Author: Rajat Khandelwal define([ "dojo/_base/declare" // declare ], function(declare){ return declare("dir1.utils.XmlJsonUtils",[],{ parseXml : function (xml) { var self=this; var dom = null; if (window.DOMParser) { try { dom = (new DOMParser()).parseFromString(xml, "text/xml"); } catch (e) { dom = null; } } else if (window.ActiveXObject) { try { dom = new ActiveXObject('Microsoft.XMLDOM'); dom.async = false; if (!dom.loadXML(xml)) // parse error ..

How do I connect a django rest framework json query result to dgrid/OnDemandGrid

北战南征 提交于 2019-12-02 05:41:19
My JSON store (django rest framework) returns keys for "count", "next", "previous", and "results". "count" is the number of rows available. "next" is the url for the next page of results (e.g. ids 26-50). "previous" is the url for the previous page of results (null in this case since this is the first page of results). The "results" key contains the actual data objects I'd like to display in the OnDemandGrid. How do I connect the "results" key data collection to the grid? Thank you for your help in advance. The returned JSON ( collection: new Rest({target: '/api/events'?format=json'),}) )

Want to create a combobox in dojo where the dropdown menu and autocompletion kicks in only after the user inputs 4 characters

青春壹個敷衍的年華 提交于 2019-12-02 05:41:06
问题 I wanted to create a combobox in dojo where the drop down menu and autocompletion kicks in only after the user inputs 3 characters. The current default will start showing the drop down menu and also autocomplete when the user enters the first character. Are there any attributes for getting this behaviour ? can i overload some functions ? Or should i write a separate widget of my own ? 回答1: I can point you in the right direction: navigate to the API page here: http://dojotoolkit.org/api/ and

Dojo TabContainer not styling

痴心易碎 提交于 2019-12-02 05:18:06
For some reason the style elements aren't getting applied to the TabContainer. The tab titles are showing up as plain black-on-white text jammed right next to each other. <script src="http://localhost/dojo/1.9.1/dojo/dojo.js" data-dojo-config="async:true,parseOnLoad:true"></script> <link href="http://localhost/dojo/1.9.1/dojo/resources/dojo.css" type="text/css" rel="stylesheet" /> <link href="http://localhost/dojo/1.9.1/dijit/themes/claro/claro.css" type="text/css" rel="stylesheet" /> <link href="http://localhost/dojo/1.9.1/dojox/grid/enhanced/resources/claro/EnhancedGrid.css" type="text/css"

Worklight 6.1 Android Applicaiton renders all views with no widgets

孤街浪徒 提交于 2019-12-02 04:36:28
I've developed a hybrid application using Worklight 6.1 + Dojo 1.8. The application tests out fine using Chrome "Common & Android". When I deploy the device to my Nexus-7 Tablet running 4.3 all of my views appear together, and the dojo widget are simply text content. I reviewd a previous post titled : " Worklight mobile app doesn't load dojo mobile widgets on android 4.x devices " I'm experiencing the same situation, and I also, have followed the steps mentioned in several posting found across the Web. •Make sure to have all dojo required files under www folder... •Uncheck "Provide Library

Dojo dGrid header checkbox to select all does not work

廉价感情. 提交于 2019-12-02 04:31:18
I created a dojo dgrid however i used a form wizard to seprate the fields on the form, however with the current structure i am having an issue with the select all feature on the grid. I cannot select all however if i remove the div Page2 and it content from the form it works. In firebug i also inspected the DOM and i saw the 'aria-checked = mixed' when i check the select all box when it should be 'aria-checked = true'. How can i get the header checkbox to allow all records to be selected when it is checked and the grid is in a Wizard form. Under is some screen shots and code: jsp <div data

dgrid 0.4.0 tree looks flat before user interacts

走远了吗. 提交于 2019-12-02 04:10:58
Trying to use dgrid 0.4.0 to display a tree structure. (no prior experience with previous versions 0.3.x). I built this sample with two folders : alice and bob ; each would have a few files (leaves) in it. The store ("astore.js") define(['dojo/_base/declare', './dstore/Memory', './dstore/Tree'], function(declare, Memory, Tree) { var store = new (declare([Memory, Tree], {}))(); store.add({node:'bob', id:1, parent:null, hasChildren:true}); store.add({node:'alice', id:2, parent:null, hasChildren:true}); store.add({node:'thesis', id:3, parent:1, hasChildren:false}); store.add({node:'game', id:4,

Dojo IE DataGrid inline editing

我只是一个虾纸丫 提交于 2019-12-02 04:07:58
问题 I have enabled inline editing of cells in DataGrid and it is working fine all browsers except IE. The problem is that after double clicking a cell and performing changed in values of cell, I have to double click on another cell within the grid. If I single/double click outside the grid, the cell which the user was editing still remains in edit mode. I have overridden the onApplyCellEdit event of datagrid to capture changes and submit to server. There is no javascript error in developer tools