dojo

Populating ComboBox dynamically in dojo

蓝咒 提交于 2019-12-11 20:39:54
问题 I am trying to populate a ComboBox dynamically in dojo. I have declared it in html and I am trying to created the Memory store in js and then setting the store attribute for the ComboBox with that value of store which I am creating in js. Here are my html and javascript files. I am calling a function in js which get a json response( item ) as its argument and in that response values are coming( ResultData1,ResultData2,ResultData3 ) I have tested that by keeping alert boxes. But when running

Getting different date pattern when using dojo.formToJson

左心房为你撑大大i 提交于 2019-12-11 20:36:54
问题 I have changed the datePattern of dijit/form/DateTextBox by providing an attribute <form dojoType="dijit.form.Form" data-dojo-id="calc_form" id="calc_form"> <input type="text" data-dojo-type="dijit/form/DateTextBox" data-dojo-id="CONTRACT_DATE" id="CONTRACT_DATE" name="CONTRACT_DATE" constraints="{datePattern:'MM-dd-yyyy', strict:true}" /> </form> i.e the attribute is constraints="{datePattern:'MM-dd-yyyy', strict:true}" and I got the date pattern shown correctly in the page as '01-28-2016' .

Dojo.request.post - returned promise says “rejected”, but server seems to have accepted the request

杀马特。学长 韩版系。学妹 提交于 2019-12-11 20:23:23
问题 I try to add a feature to an ArcGIS feature service through Arcgis JavaScript API and dojo/request . I've already been pointed to how to include the request module and I get some response from the server, but after few days of exploring different solutions I didn't manage to execute the callback function. My code: esri.config.defaults.io.corsEnabledServers.push("remotearcgisserver.com"); var uri = "http:/remotearcgisserver.com/arcgis/rest/services/foo/bar/FeatureServer/0/addFeatures" //no

Altering the check-in dialogue in ICN (IBM Content Navigator)

空扰寡人 提交于 2019-12-11 20:20:56
问题 In IBM Content Navigator, The "Check In" dialogue contains a Properties Pane, that in turn contains a Class Selector drop down box. ClassSelector image I want to keep the check-in functionality, but would like to have that Class Selector box not appear (There is no use case where a user would need to change the document class). What would be the proper way to achieve this? Is there a way to extend the ecm/widget/CheckInDialogue.js file AND make the default checkIn action use my new js? Do I

Integrate Dojo Build into Grails Build?

偶尔善良 提交于 2019-12-11 20:06:32
问题 I understand dojo's build system, but I'm rather new to Grails. Does anyone know how, or have a resource for, integrating dojo's JS build into Grails? I'd like to be able to use the JS sources during development, and then switch to the built version of JS for production. So far, I am envisioning just having the dojo-src directory in js dir, and using that during development. Then, when I want to deploy to prod, I'll manually run a dojo build and output it also in the /js dir. (I'm planning to

Running dojo dgrid : subrows is undefined

流过昼夜 提交于 2019-12-11 20:05:57
问题 I have tried implementing a class for a grid layout using dgrid (using their sample), but I get this error when loading my grid ( subRows is undefined ). My code looks something like this: define([ "dojo/_base/declare", "dojo/_base/lang", "dgrid/Grid", "dgrid/Keyboard", "dgrid/Selection" ], function( declare, lang, Grid, Keyboard, Selection ){ return declare([Grid, Keyboard, Selection], { columns: { first: "First Name", last: "Last Name", age: "Age" }, selectionMode: "single", // for

focus filtering select on page load

≯℡__Kan透↙ 提交于 2019-12-11 19:59:30
问题 why does the following code don't focus the filteringselect? <!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://yandex.st/dojo/1.6.0/dojo/dojo.xd.js" djConfig="parseOnLoad: true"></script> <style type="text/css"> @import "http://yandex.st/dojo/1.6.0/dijit/themes/claro/claro.css"; </style> <script type="text/javascript"> <!-- dojo.require("dijit.form.FilteringSelect"); dojo.addOnLoad(function(){ dijit.byId('dept').focus(); }); --> </script> </head> <body class="claro">

Tabbar fixed:bottom. Buttons shift right slightly after transition from portrait to landscape

大憨熊 提交于 2019-12-11 19:58:39
问题 Worklight 6.1 Dojo 1.9 Created a ScrollableView with a tab bar fixed:top with two buttons, and a tab bar fixed:bottom with three buttons. When the application starts the tab bars, and buttons are centered correctly for both top and bottom. Test scenario for both Android emulator, and Nexus 7 device: 1) In portrait mode the application initializes, and the main view shows both tab bars with buttons centered correctly. 2) Rotate the device to landscape mode, and both tab bars transition

Dojo is not working

自古美人都是妖i 提交于 2019-12-11 19:39:51
问题 I am new at dojo and here is my code: <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.9.1/dojo/resources/dojo.css"></link> <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.9.1/dijit/themes/tundra/tundra.css"></link> <link rel="stylesheet" type="text/css" href="../../../../resources/themes/default/styles/layout.css" th:href="@{/resources/default/styles/layout.css}"></link> <script type="text/javascript" src="http:

dojox/mobile/SearchBox 'onSearch' event runs twice on webkit

馋奶兔 提交于 2019-12-11 19:37:25
问题 I'm using Dojo 1.9. It happens that the onSearch event runs twice instead of once in Safari and Chrome. In Firefox it runs OK. SearchBox.onSearch = function(){ console.log("it ran"); } I need it to run once. How can I manage to do that? This jsfiddle reproduce this issue. 回答1: I think you are using the SearchBox in an unsupported case, that is without specifying its "store" property nor its "list" property. I've put here: http://jsfiddle.net/adrian_vasiliu/g4yLQ/2/ a modified variant of your