dijit

How to position a dijit.menu relative to its trigger?

I've got a couple menus like this: // Contextual Menu // triggers <div id="contextMenuTrigger0">0</div> <div id="contextMenuTrigger1">1</div> // menu <div dojoType="dijit.Menu" targetNodeIds="contextMenuTrigger0, contextMenuTrigger1" leftClicktoOpen="true" style="display:none"> <div dojoType="dijit.MenuItem" class="fir...

Dojo element/widget targeting, what am i doing wrong?

I'm totally new to dojo ... and am drawing from my experience with jQuery somewhat ... I have several elements like so: <input name="info1" value="" style="width:52px" contstraints="{pattern:'#'}" dojoType="dijit.form.NumberTextBox"/> <input name="info2" value="" style="width:52px" contstraints="{pattern:'#'}" dojoType="dijit.form.Num...

Setting the value (selected option) of a dijit.form.Select widget

I have a dijit.form.Select widget. It's tied to a data store, if that matters. It's filled with several options already. All I want to do is programmatically set its value. I can get its value using myWidget.attr('value') but if I try to do myWidget.attr('value', 5) for example (where 5 is one of the valid values), all it does is reset t...

Dojo/Dijit: Can't get filtering select to work

I have a page with some JavaScript and it includes dojo.parser and has parseOnLoad set to true and whatnot. Later in the page, I have another JavaScript tag that has: dojo.require('dijit.form.FilteringSelect'); dojo.registry.remove('ID OF SELECT BOX'); After all that, I have a select box with dojoType="dijit.form.FilteringSelect". W...

Is there an easy way to create a confirmation dialog using dojo-toolkit or spring-js?

Hi, In my spring webapplicaiton I would like the user to confirm the deletion of an item before actually do it. I've looked for a simple example using dojo, but so far I didn't come up with a solution that suits such a simple and common use case. Any hints? ...

How to access a Container Node as a Node List for a custom dojo/dijit Widget

I am trying to create a custom Templated Widget in dojo. I need to do some manipulation of the containerNode of the template and want to use the node as a dojo.NodeList. I cannot seem to get things to function like I want. For example, I need to be able to "push/pop/shift/unshift" children from the containerNode. If I do the followin...

Using dijit.filteringselect in a Spring MVC environment

Hi! I am trying to code two filteringselects which should both change according to data entered into any of the forms. So data entered into fs1 should trigger changes in fs2. Data entered into fs2 should trigger changes in fs1. I am in a spring environment which in my case means that the dojo code is in a jsp file and the filtering se...

Dojo FilteringSelect: Can't Add Options

I can't add any options to my FilteringSelect dijit. Here's my code: var options = { identifier: 'abbr', label: 'name', items: [{ abbr: 'ec', name: 'Ecuador', capital: 'Quito' }, { abbr: 'eg', name: 'Egypt', capital: 'Cairo' }, ...

Open/Close Dojo Menu with mouse over event

Does anyone know how to open/close a dojo dropdown menu with the mouseenter/mouseleave events? Actually, I've successfully opened the menu with the mouseenter event, however, the menu wont close when the mouse moves off the button (or the subsequent opened menu). ...

Is there something special required to use dijit widgets within a Struts2 application with the DOJO plugin?

I am taking a prototype of a web page and implementing it. The prototype makes heavy use of DOJO for some fancy UI elements. The application is built using Struts 2.1.8.1 with the DOJO plugin enabled. I am able to use the dojo specific tags within struts but I can't get the any of the dijit widgets to work. <%@ page contentType="text/ht...

Properly destroying dojo DataStore

I am extensively using declarative dojo DataStores in my application and connecting them to various declarative data driven Widgets. The problem comes in when I attempt to "destroy" the ContentPane that contains the DataStores. All the declarative examples using datastores use the attribute jsId to have the dojo parser set the datastor...

Manipulating DOM of Multiple dijit Widget Instances

I have developed a custom dijit Templated Widget. I have to do some DOM manipulation of the children of the containerNode. Everything works fine, except when I have two of the Widgets loaded, and the manipulation of the children of the containerNode seems to affect all of the Widgets of the same type, not just the particular instance o...

Is there a way to connect dijit.form.DropDownButton.openDropDown() (or closeDropDown()) on mouse up ?

Hi. In dojo 1.4 default, dijit.form.DropDownButton.openDropDown() and closeDropDown() are connected to mouse down event. Is there a way to connect them not to mouse down but to mouse up event ? I want to realize draggable DropDownButton and open/closeDropDown() invoked just after mouse down is too early. ...

Modify scrollbars in dojo -- dijit.layout.BorderContainer

I'm using dijit.layout.BorderContainer for layout on a page. The regions present are top, leading, and center. The top and leading regions appear just like I want them to. The center region, however, has a scrollbar. Instead of a scrollbar for just the center pane, I want one scrollbar for the entire window. That is, I want to move the t...

hidden element dojo parsing

How can I avoid the dojo parser showing a hidden element after it's parsed? <input type="checkbox" dojoType="dijit.form.CheckBox" style="display:none"> When the dojo parser is done, the dijit checkbox will be shown, but the input "inside" it, will still be hidden. I want the dojo parser to create the dijit checkbox, but keep it hidden...

Problems with Widgets in dojox DataGrid

I am trying to include some editing Widgets in my dojox.grid.DataGrid seem to be having a lot of difficulty. I have tried everything I can think of to get it to work, but something just isn't going right. When I started having problems, I tried to copy almost exactly from the grid tests and model my "breakout" of code just like that, b...

Dojox Datagrid contains data, but shows up as empty

I'd really appreciate any help on this. There is this Dojox Datagrid that I'm creating programatically and supplying JSON data. As of now, I'm creating this data within JavaScript itself. Please refer to the below code sample. var upgradeStageStructure =[{ cells:[ { field: "stage", name: "Stage", width:...

Dojo Parseonload:false Then not loading Dojo modules

Hello, I have some Dijit Tabs, and in those tabs I have some Dojo Text boxes and Fields. Some of my Dojo Tabs load when the page is loaded, and some load only when clicked on. My issue is that I cant get the Tabs that load only when clicked, to work with the Dojo modules. Its hard to explain, so I made a simple example to help. I h...

Loading javascript in a Dojo ContentPane

Hello, I am stuck again. I am trying to load some javascript (a number spinner) into a Dojo content pane. And I get a nice ugley message: Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917) Here is my code. Any ideas? <html> <head> <script type="text/javascript" ...

what is difference between dijit and dojo

I am new to dojo . i se ethis term like dijit . what is this actually . ...