dojo

How do I get the contents from dijit/Editor?

五迷三道 提交于 2019-12-11 05:43:48
问题 I want to use dijit/Editor to allow users to enter formatted text on a form. The documentation is here. I set up a div on my form and added attributes for the HTML Editor. <label for="eed-event-description" class="required">Event Description</label><br /> <div id="eed-event-description" data-dojo-type="dijit/Editor" height="120px" title="required: brief description of what someone attending can expect at the event" required> <p></p> </div> This results in a lot of new code, including an

How To reset the OnDemandGrid

烈酒焚心 提交于 2019-12-11 05:42:15
问题 I am using OnDemandGrid with JSONrest store in my application.For the first time,the grid is loading fine , if i search again for other data,the data already in the Grid is getting overlapped with new data.Can someone tell me how to reset or refresh the OnDemandGrid? Here is my code, function (request, Memory, OnDemandGrid,JsonRest) { var jsonstore = new JsonRest({target: url,idProperty: "srno"}); grid = new OnDemandGrid({ store: jsonstore, columns: Layout, minRowsPerPage : 40, maxRowsPerPage

unregister/delete all child nodes of a div tag in dojo

假装没事ソ 提交于 2019-12-11 05:37:53
问题 I have a div tag, lets say "mydivTag" It has a child node under it with an ID of "childID" I want to delete/unregister/whatever "childID" and then recreate a different node with the same ID, "childID" How do I achieve removal of the first object with ID "childID" so that when I make my new object with that same ID, I don't get an error about there already being a widget registered with the ID "childID" Thanks 回答1: have you tried something like dojo.query("#childID", mydivTag).orphan() then

Possible bug - Event change fires after widget.set('options', [])

霸气de小男生 提交于 2019-12-11 05:35:01
问题 Currently I am using dijit/form/Select to display a list of options and I need to programmatically update content for the dijit/form/Select . Currently I am using .set('value', ...); but I have noticed that event change is fired (which is in my case is not wanted). I need to be able to update the widget and selecting a value without having fired change event. The change event, afaik, it should be fired only when an user "change" the value of the Select list clicking on it. require(["dijit

In progress wheel in Dojo

戏子无情 提交于 2019-12-11 05:32:54
问题 Is there a "in progress" wheel as a dojo/dijit widget? My json request takes quite some time and I should show the user that something is going on. Thanks! 回答1: I use the StandBy widget to do this. The following snippet shows how. The code is a bit old and doesn't use the deferred technique that Philippe mentioned, but you could easily do so. var url = ... var xhrArgs = { url: url, handleAs: "text", load: dojo.hitch(this, function(data) { this._standby.hide(); ... do work ... }), error: dojo

How to remove extra padding in dijit.form.Button in IE?

狂风中的少年 提交于 2019-12-11 05:31:37
问题 In our application there are many dojo buttons of type dijit.form.Button. It works fine in Firefox. However, in IE, there are extra padding to the left and right of the texts in the button. The length of the padding is proportional to the length of the text in the button. Is there any way to remove those paddings? I searched the web and found ways for Buttons, for example: http://www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ However, it does not work for dijit.form

How to do something while a dojo xhr request is waiting or loading

强颜欢笑 提交于 2019-12-11 05:29:22
问题 I'm relatively new to dojo, and although I've managed to do all I need , there are certain things I just can't figure out how to do with it. Simply put, I have a form and when I click the submit button the request goes in fine and for the most part all is good. However, now I want to have in a div or some content that changes every 10 seconds or so while the user been waits for the request to go through... this is what I can't figure out how to do. The content I want to put in the div is

Dojo DnD acceptance of outside objects

痴心易碎 提交于 2019-12-11 05:29:21
问题 Is it possible to code a Dojo DnD target to accept external objects, such as files or folders from a file explorer? Windows Explorer, for example. 回答1: I doubt it, because it will be the browser that will receive the DnD event... At best you can count on a plugin or extension to handle it, like the excellent DragDropUpload extension does for file upload fields in Firefox. 回答2: What kind of file explorer are you talking about? From what I can recall you'd be lucky to get dnd working properly

Using Durandal dojoConfig and ESRI Maps

南楼画角 提交于 2019-12-11 05:29:07
问题 I'm trying to get ESRI maps working with Durandal and came across this link in the Durandal docs DurandalEsri This seems to work but now Durandal is having problems finding some of my .js files. If I leave the following dojoConfig out my scripts are found but then the maps won't work. `var dojoConfig = { baseUrl: './', async: true, tlmSiblingOfDojo: true, parseOnLoad: false, aliases: [['text', 'dojo/text']], packages: [ { name: 'esri', location: '//serverapi.arcgisonline.com/jsapi/arcgis/3.5

Dojo. Set attribute from JSon as HTML attribute

非 Y 不嫁゛ 提交于 2019-12-11 05:26:07
问题 I have dojox.form.CheckedMultiSelect : <span dojoType="dojo.data.ItemFileReadStore" url="..." jsId="listStore"></span> <select id="unsubscribedList" class="soria" dojoType="dojox.form.CheckedMultiSelect" multiple="true" onchange="..." store="listStore" title="title"></select> The JSon for store looks like: {"items":[{"title":"ESC, MICHAEL (MESC)","value":"1000","label":"ESC, MICHAEL"},...}] ,"totalCount":7,"endList":7,"label":"label","identifier":"value","startList":1} How I can set " items