dojo

dojo: Set ValidationTextBox to blur

给你一囗甜甜゛ 提交于 2019-12-24 10:58:55
问题 I can't make ValidationTextBox to lose focus and I can't see the method blur() either. How can I make it lose focus? 回答1: The blur() method works on dom nodes. A widget is often backed by an html template. If you look at dijit/form/templates/ValidationTextBox.html, you will see that there is a dom node which has a dojoAttachPoint containing "focusNode". Here is the code of the template on dojo 1.7, for reference : <div class="dijit dijitReset dijitInlineTable dijitLeft" id="widget_${id}" role

Creating Google Maps' interface in Dojo

时光毁灭记忆、已成空白 提交于 2019-12-24 10:57:00
问题 I am trying to use the ArcGIS 2.1 JS API to create a custom interface that looks similar to Google Maps. What is confusing me (particularly with Dojo's layout scheme) is how Google Maps has a map pane that extends the whole width of the page and has a left search results panel that seems to be floating above the map pane. How does this work in terms of Dojo layouts? I have frustratingly worked with BorderContainers and looked at the documentation for a FloatingPane with no avail. Any

Dojo build requesting already inlined Dijit templates

放肆的年华 提交于 2019-12-24 10:48:28
问题 I am a developer on a large Dojo project and I am having some issues with the Google Closure compiler. We have around a hundred templates for Dijit widgets so the plan was to make the Closure compiler inline the HTML in the JavaScript file rather than require them AMD style. To achieve this I changed the "mini" parameter in /profiles/app.profile.js from true to false. When compiling, everything seems to work fine, even when running the app i have no issues but something strange happens. Even

dojo.connect in dojox.enhancedGrid plugin IndirectSelection

♀尐吖头ヾ 提交于 2019-12-24 10:45:51
问题 I stumbled about a strange circumstance. We use dojo AMD Vers. 1.9. in which dojo.connect is replaced by dojo.on So far all is okay. Now i want to connect an Eventlistener ( Checkbox is Selected) to the IndirectSelection-plugin of my EnhancedGrid. I search for a solution with dojo.on but just find dojo.connect?! Is that correct? I mean dojo.connect is deprecated generaly in dojo 1.9? This is the code i find in the dojo-side: dojo.connect(grid.selection, 'onSelected'|'onDeselected', function

Dojo - How to refresh combobox with updated ItemFileReadStore data

我只是一个虾纸丫 提交于 2019-12-24 09:39:43
问题 I changed ItemFileReadStore for combobox in Dojo. My code looks something like <span dojoType="dojo.data.ItemFileReadStore" jsId="comboStore" data="transformData"> <select dojoType="mywidget.DropDown" id="transformCombo" value="" store="comboStore" searchAttr="name" name="state" maxHeight="100"/> My widget is similar to dojo combobox widget. I changed transformData but the combobox is not updated until the page is entirely reloaded again. Any idea? 回答1: If the content is changing server side

searchAttr combobox array

只愿长相守 提交于 2019-12-24 08:47:07
问题 I was wondering how could I have mutli-search Attr in my combobox. I would like to have someting like : var cb = dijit.byId('myCombo'); cb.attr('store', store); cb.attr('searchAttr', ["name","age"]); So I can make autocomplete on two criterias. 回答1: I will assume you are using a dojo.data.ItemFileReadStore. The searchAttr is only for the attribute you're typing in the ComboBox. For example, if you're typing a name, but you also want to filter by age, you add a field to the query parameter: //

Struts2 back button and linking

会有一股神秘感。 提交于 2019-12-24 08:22:41
问题 I am using Struts 2.1.6 with Dojo plugin, whole app has ajax links (sx:a). Did anybody succeed to implement back button functionality and linking to certain content? Does anybody have any experience how to implement? I am planning to implement (if there is no good solution already) something like so: changing address bar link (adding parameters) with js which I can then read and get proper content and then publish it with notifyTopics. Or should I just change whole app to use jQuery plugin?

Dojo themePreviewer stuck “Loading…”

我的未来我决定 提交于 2019-12-24 08:12:54
问题 I downloaded the latest Dojo and Dijit to my local Windows 10 computer. My disk structure is: C:\webapps c:\webapps\dojo c:\webapps\demo c:\webapps\dijit I'm clicking on this file to load with Chrome browser: c:\webapps\demos\themePreviewer\demo.html It shows the following, and is stuck forever with the "Loading..." message. Internally, I see the following references to css files: <link rel="stylesheet" href="../../dijit/themes/claro/document.css"/> <link rel="stylesheet" href="../../dijit

Adding new node to Dijit.Tree at a particular place in the tree

谁都会走 提交于 2019-12-24 07:51:28
问题 I am running into a strange error while adding a new Tree node to dijit.Tree. var rawdata = [{ label: 'Date', id: '1', children: [{ label: 'Life', id: '1.1' }, { label: 'Liberty', id: '1.2' }] }, { label: 'Some links (note: the link is <b>not</b> clickable)', id: '2', children: [{ id: '2.1', label: '<a href="http://dojotoolkit.org">Dojo Toolkit</a>' }, { id: '2.2', label: '<img src="http://dojofoundation.org/media/img/dojo.logo.png" alt="greatest ever" height="32px" />' }, { id: '2.3', label:

How to check field sizes and make radiobutton required with Spring, Spring-JS and DOJO (dijit)

你。 提交于 2019-12-24 07:17:31
问题 I am working on my first project with Spring, Spring-JS and DoJo(dijit) and I have two questions bases on the following coding example. 1) How do I check with Dojo (dijit) that the phone number field is the right size and also how do I check that the name field is bigger then 3 and less then 50? 2) As you can see my form has radio buttons which I need to set as required. How do I do that with Dojo (dijit). Thanks <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%> <%@ taglib prefix=