dojo

Submit the dijit editor contents

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 16:59:21
问题 I am trying to learn the dijit editor. I want to replace an existing text area with dijit editor widget.So I wrote 2 jsps - one using the dijit.Editor which feeds another jsp with the editor contents. When I click submit the second jsp "result " comes up empty contents for the editor no matter what is typed in text area editor. dijitEditor.jsp <script type="text/javascript"> dojo.require("dijit.Editor"); dojo.require("dijit._editor.plugins.LinkDialog"); dojo.require("dijit._editor.plugins

What is the best practice for passing variables from one HTML page to another?

二次信任 提交于 2019-12-01 16:30:20
问题 I'm relatively new to web application programming so I hope this question isn't too basic for everyone. I created a HTML page with a FORM containing a dojox datagrid (v1.2) filled with rows of descriptions for different grocery items. After the user selects the item he's interested in, he will click on the "Submit" button. At this point, I can get the javascript function to store the item ID number as a javascript variable BUT I don't know how to pass this ID onto the subsequent HTML page.

Declarative coding or programmatic coding in Dojo Projects? [closed]

五迷三道 提交于 2019-12-01 14:53:24
In my own experience, I like programmatic coding. To name a few benefits at here: Better performance: no need to parse. No switch between html and javascript: no html, everything in code(use css to control layout.) Easy to dynamically change the content. Easy to be read and be maintained. But, it seams a lot of users at here using declarative coding. my question is : what's the benefit to use declarative coding? Which one is dojo gurus' favorite? Like fransisco said, you can seperate your code easier. I mean, if you instantiate all your widgets in your JavaScript code, your JavaScript will

Declarative coding or programmatic coding in Dojo Projects? [closed]

泄露秘密 提交于 2019-12-01 13:34:20
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . In my own experience, I like programmatic coding. To name a few benefits at here: Better performance: no need to parse. No switch between html and javascript: no html, everything in code(use css to control layout.) Easy to dynamically change the content. Easy to be read and

How do I use Dojo Toolkit in an Electron application?

坚强是说给别人听的谎言 提交于 2019-12-01 13:12:11
问题 I'm exploring Electron and I've run into a roadblock. I can't figure out how to load the Dojo Toolkit and use it in Electron. For example, here is the simple "Hello World" for Dojo: <!DOCTYPE html> <html> <head> <title>Tutorial: Hello Dojo!</title> </head> <body> <h1 id="greeting">Hello</h1> <!-- load Dojo --> <script src="//ajax.googleapis.com/ajax/libs/dojo/1.10.4/dojo/dojo.js" data-dojo-config="async: true"></script> <script> require([ 'dojo/dom', 'dojo/dom-construct' ], function (dom,

Dojo 1.9: Dijit: Disabling option items in a dijit/Form/FilteringSelect that was populated using a store

混江龙づ霸主 提交于 2019-12-01 10:49:41
I am trying to disable option items in a dijit/Form/FilteringSelect control that is populated using a store . Following this guide: http://dojotoolkit.org/documentation/tutorials/1.9/selects_using_stores/ It seems to be only possible if the Select control was created without using a store. I have deduced this from debugging the FilteringSelect example. I have tried two methods to disable an item: Following the advice in this thread: How to disable a single option in a dijit.form.Select? . However, the "stateStore" store object in the FilteringSelect example does not have an 'options' property.

img.onerror does not seem to work for IE8

↘锁芯ラ 提交于 2019-12-01 10:35:23
I am trying to load an image from a url to check internet connectivity. When no internet connection, it should display a dojo warning dialog. This works for Firefox but does not for IE8. Following is the code snippet: var img = new Image(); img.src = userGuideUrl1_img + '?' + (new Date).getTime(); img.onload = function() { window.open(userGuideUrl1); } img.onerror = function() { dojo.addOnLoad(warningDialogFunc); } Here warningDialogFunc is a dojo object. Any thoughts? Thanks Could it be that the page is already loaded by the time the img.onerror handler is executed, and IE doesn't rexecute

img.onerror does not seem to work for IE8

我与影子孤独终老i 提交于 2019-12-01 09:40:26
问题 I am trying to load an image from a url to check internet connectivity. When no internet connection, it should display a dojo warning dialog. This works for Firefox but does not for IE8. Following is the code snippet: var img = new Image(); img.src = userGuideUrl1_img + '?' + (new Date).getTime(); img.onload = function() { window.open(userGuideUrl1); } img.onerror = function() { dojo.addOnLoad(warningDialogFunc); } Here warningDialogFunc is a dojo object. Any thoughts? Thanks 回答1: Could it be

Dojo 1.9: Dijit: Disabling option items in a dijit/Form/FilteringSelect that was populated using a store

吃可爱长大的小学妹 提交于 2019-12-01 09:34:08
问题 I am trying to disable option items in a dijit/Form/FilteringSelect control that is populated using a store . Following this guide: http://dojotoolkit.org/documentation/tutorials/1.9/selects_using_stores/ It seems to be only possible if the Select control was created without using a store. I have deduced this from debugging the FilteringSelect example. I have tried two methods to disable an item: Following the advice in this thread: How to disable a single option in a dijit.form.Select?.

dijit.form.filteringselect dynamically change options

流过昼夜 提交于 2019-12-01 06:41:08
I have a dijit.form.FilteringSelect component and I want to change the options dynamically. But I get the store from the dijit.form.FilteringSelectwith its store property; there is no setter function in the store. (It may be a dojo.store.Reader) So how can I change the option of dijit.form.FilteringSelect ? Should I change it directly with DOM? Is there any way to update the store behind dijit.form.FilteringSelect ? there is two type of data store in dojo: dojo.data.ItemFileReadStore - readonly datastore dojo.data.ItemFileWriteStore - extension of ItemFileReadStore that adds on the dojo.data