dojo

How to handle a dynamic table with dojo.query()

Hi, This is going to be a meaty question because I am not sure the best way to handle this. I have a page that contains a number of dojo inline editors, to allow users to change values, when one entry had been changes a save button will appear to prompt the user to save the information. The page has a number of rows, contained within ...

Determing whether dijit.dialog content has displayed

Does anyone know of a way to determine whether the content of a dijit.dialog has become visible to the user? As in if the content of the dialog has actually been displayed yet or not. Thanks ...

posting an array of json using dojo

Hi I am trying to post an array of javascript objects back to the server, using dojo. I have an array of data that is like appears like this: var elements = [ myobj = {id:"1", name:"myname", title:"mytitle"}, myobj = {id:"2", name:"myname2", title:"mytitle2"} ] I want to post this as a json string back to the server to be handle...

calling webservice in asp.net by Dojo

Dear all I would like call my web service by using dojo,is it possible?would u help me becuze I cant find any useful code for helping me... ...

Page or Form First Control Focus Issue for dijit.Form.DateTextBox

I would like to inquire about the issue of dijit DateTextBox, When a DateTextBox is the first control in the page, the popup control is no longer shown since the toolkit probably waits for onfocus event to show the popup instead of the onclick. Is there anyway to make the first date textbox control to show the popup when the mouse is pl...

DOJO: what's the difference be design between JsonQueryRestStore and QueryReadStore

Hi, I'm learning Dojo 1.4. And I have difficulties with understanding all dojo's data stores. Particular I wonder what's the difference between JsonQueryRestStore and QueryReadStore ? JsonQueryRestStore has query facilities and Json support, ok. But QueryReadStore also expects Json in response (somebody knows where does the expected for...

Calling object methods internally in dojo

I am trying to create a dojo class which contains functions which in turn call other functions within this class, as follows: dojo.provide("my.drawing"); dojo.declare("my.drawing", null, { constructor: function(/* Object */args){ dojo.safeMixin(this, args); this.container = args[0]; }, addPoint: function...

Dojo: how to get row data in grid's context menu item handler?

I'm using Dojo 1.4. Given a dojox.grid.DataGrid in markup: <table jsId="grid1" dojoType="dojox.grid.DataGrid" structure="layout" delayScroll="true" columnReordering="true" selectable="true" onRowDblClick="onRowDblClick" onRowContextMenu="onRowContextMenu" headerMenu="grid1_headerMenu"...

dojo dojo.data.ItemFileWriteStore slow....?

Hi all, I've got some code that requests some data from a servlet, and renders it in a dojox.grid.DataGrid. This seems to be rather slow though! I'm stuck on how to make it faster. Can anyone help out? I'm testing with Dojo 1.34 FF & Chrome. My code remove all items in the dojo.data.ItemFileWriteStore, then adds new ones that come b...

Can you make a dojo.data store from properties of another dojo.data store?

The title says it all. Is it possible to make another dojo.data.ItemFileWriteStore out of the properties of items from an existing dojo.data.ItemFileWriteStore? For example, i have a store containing an item with an array as a property. I want to make a new store out of the properties of one of those arrays, like so: ... new dojo.data....

Dojo: How to get an element of an element variable

For example, ideally I'd like to go: newelement = myElement.query('whatever'); Basically how mootools does this: element = oldemement.getElement('whatever'); What the equivalent in dojo? If it makes a different, I am using this in a drag and drop creator function: function myCreator( item, hint ) { console.log(item); var a...

Get Zend Framework to return dijit initialization javascript for ajax call

Hi stackers, I want to get the action to output the necessary javascript for initializing the dijits in the Zend_Dojo_Form. When I have layouts enabled, it works. I want to disable layouts because this is an ajax response. With layouts enabled, I get a lot of javascript inserted into the header for initializing the Zend_Dojo_Form. For ...

Dojo lightbox problem - overlay not stretching to bottom of screen

I've created a lightbox effect using Dojo. Specifically, I've created is as a dojox.widget.Dialog. The effects work/displays fine in every browser except for Safari on an iPhone (no issue with Safari on the Desktop). On the iPhone, the bottom edge of the lightbox won't expand to the bottom of the screen. I've tried to test this on a des...

Dojo: How to use a DnD EnhancedGrid to change order of stored items?

Hey all, title says most of it. Im using Dojo and i want to have a grid (currently using an EnhancedGrid with the DnD plugin) in which i can drag and drop items to change their stored order. So, if i had items [1][2][3], and dragged [1] behind [3], i would have (in the store) [2][3][1]. Currently with DnD i can move rows about how ever...

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

Hi, 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' }] }, { ...

Accessing form variables in a dynamic dijit.dialog (content of which is from href)

Hello, I have the following code to create a dijit.diagram which loads a form from an external link: function openDialog(userID) { composeDialog = new dijit.Dialog({ id: 'composeDialog', title: 'Compose a Message', style: 'width: 400px', href: 'myform.php?userID='+userID }); composeDialog.show(); } now inside m...

dojo.parser.parse doesn't always return

I have this bit of code. It is used to update the form after a select element changes. onChange an "ajax" call is made and this bit of code takes care of the response. The first time everything works as expected. However it the dojo.parser.parse fails to return about 50% of the time. At first it looked like this: var targetNode = dojo...

Dojo vs YUI javascript framework

I want to know what you guys think of these 2 frameworks, in terms of: robustness, code quality, core developers moving forward with new features, cross browser problems, module components, easiest to learn and integrate I already know and use jQuery, I recently found it lacking in terms of 'enterprise ready' components for large w...

Dojo: ComboBox / FilteringSelect

I'm wanting to do a load of several combobox / FilteringSelect. What happens is that I have 4 combobox / FilteringSelect. Country Destination Hotel Comfort Classes these combos is related, when you load the page first loads the Country combobox depending on the country that bear the combobox is selected Destination So far so good when ...

how to associate (bind) a dijit.Menu with specific nodes of a dijit.Tree

I have been able to bind a simple dijit.Menu with two MenuItems to the nodes of a dijit.Tree wtih Menu.bindDomNode(Tree.domNode), but I would like to refine what nodes get the context menu and am having trouble getting domNodes from Tree items to bind the menu to. I am hoping there is a much easier way of doing this? datStore = thi...