dijit

dijit.byId not ready at body onload? When are dijits actually available?

I'm using Dojo toolkit version 1.3.1. I have defined the following dijit in a jsp page: <div dojoType="dijit.layout.BorderContainer" gutters="false" id="ui_container"> <div dojoType="dijit.Toolbar" region="top"> <div dojoType="dijit.form.Button" id="zoomin" iconClass="zoominIcon">Zoom In</div> </div> <div dojoType="d...

How to put a Dojox.grid in a dijit.Dialog

I've read through the posts about dojox.Grid here, including the one about the tabcontainer, but it doesn't seem to solve my problem. I have a grid that I am adding programmatically which works a treat if the grid is in the "main" markup, but ceases to display if I put the grid in a dialog. Any ideas as to why? Using dojo 1.3.1. d...

Custom validation of dijit textboxes

Hello everybody, I was today seeking the net for information about textbox-validation, but even on Dojo-Homepage I couldn't get any useful information. My problem: I've got a NumberSpinner, in which only numbers in steps of ten (10, 20, 30, ...) should be allowed. But I've got no idea how to set a validator for this. In the 'constraint...

dijit.form.NumberSpinner arrows on IE6

Hi, When using the dijit.form.NumberSpinner widget, the arrow buttons don't show up on IE6, unless I throw a lot of alert()s during init. It seems they don't get rendered (properly) Any ideas? PS. I'm using dojo 1.3.2 with the tundra theme ...

Dijit.form.FilteringSelect initial display value

Is it possible to show and initial text in in a dijit.form.FilteringSelect wich is not an value. For example the search box on http://docs.dojocampus.org displayes the value "search" when it is not being used. I have tried using select.attr( "displayedValue", "My initial text" ) but becuase it is not an actual value the box will be mark...

Dijit Tree and postCreate event (dojo 1.3)

I have managed to write a function that focusses a given node. Now I want to call it after tree creation. Since I construct the tree with php an send it via AJAX, I want to send the node to focus with the tree. Therefore I found this solution: <script type="dojo/connect" event="postCreate">focusTreeNode("'.$this->focusitem . '");</scrip...

Dojo Dijit: Why does attr("required", true) fail to set the style "dijitRequired"? or Is there another class which indicates a Dijit is required?

As far as I can judge, the CSS-Rule "dijitRequired" is used to mark a required input field. Yet, this style is not set when I apply the "required"-Attribute to a dijit, for example, a date dijit: The Dijit is built as follows: <input dojoType="dijit.form.DateTextBox" class="l" id="datumsTestID" name="datumsTest" tabindex="5" value="20...

Dojo data api w/Dijit.Tree for file selector component

Hey! I am trying to get into Dojo so thought I'd create something I need: a file select component. I have dijit.Tree linked to a modified ForestStoreModel and just display the first level of the tree with each folder item having a temp 'please wait...' file to ensure the folder and '+' appear correctly. When I click the '+' I re-query ...

Dijit TabContainer tabs missing, serif fonts, all containers visible.

Hi, I have a small project I am doing, and am using Dojo for it. At the moment I can't get everything to load properly. I am trying to use the Tundra theme. Essentially, the issue is that the TabContainer is missing tabs, has serif fonts instead of sans-serif, and shows all ContentPanes inside it instead of hiding ones in non-active ...

Translating JSON into custom dijit objects

I am looking for an example where JSON constructed from the server side is used to represent objects that are then translated into customized widgets in dojo. The JSON would have to be very specific in its structure, so it would not be a very general solution. Could someone point me to an example of this. It would essentially be the ...

How do I use dijit.TooltipDialog on a div?

I would like to show a "drop down dialog" when I click my link/div. So far have the following code: <html> <head> <script type="text/javascript" djConfig="isDebug: false, parseOnLoad: true" src="lib/dojo/dojo.js"> </script> <link rel="stylesheet" type="text/css" href="lib/dojo/resources/dojo.css"> ...

When do I have to call the startup() method of programmatically instantiated widgets ?

I create instances of dijit.layout.ContentPane, dijit.layout.StackContainer and dijit.layout.BorderContainer from my JS code. It seems I have to call the startup() method of programatically created instances. However, I'm not sure I have to call it for every widget. For instance, when I do a 'new my.foo.widget()', the startup() is fired...

dojo js library + jsdoc -> how to document the code ?

I'd love to ask you how do the guys developing dojo create the documentation? From nightly builds you can get the uncompressed js files with all the comments, and I'm sure there is some kind documenting script that will generate some html or xml out of it. I guess they use jsdoc as this can be found in their utils folder, but I have n...

How to update a Dojo Grid cell value using a TooltipDialog (and DropDownButton)

I have a dojo grid which is using some editable dijit form fields. All is well, until I try ot implement an country (multi) select cell as an Tooltip Dialog; i.e., show a drop down button which opens the tooltip dialog populated with a checkbox array to select one or more country. Once checked and clicked OK, the cell should update with ...

Dojo InlineTextBox without autosave but save on enter

How can I have a dojo InlineTextBox that has autoSave="false" but saves changed text if the user hits the enter key? Is it possible to have the 'save' and 'cancel' buttons and the save on enter behavior of autoSave='true'? ...

How to preview Dojo/Dijit themes?

I bought the O'Reilly Dojo book by Matthew Russell. It says "in your toolkit checkout, you can find a theme tester at dijit/themes/themeTester.html. I downloaded 1.3.2 from here: http://dojotoolkit.com/downloads and cannot find such a file. I would like to see each of the three themes in action. How can I do that? Thanks, Neal W...

Dojo vs Dijit - files to include or reference?

I've been reading O'Reilly book "Dojo - The Definitive Guid" but somethings are still not definitive to me. They talk about "bootstrapping" and getting the dojo.css from the AOL CDN". When I'm testing on my machine, should I use the CDN? Or should I wait and use that only when I deploy? Secondly, the book talks about CDN for dojo...

Dojo/Dijit Trial and Error

I've been trying to get this page to run on my machine under Google App Engine. One file at a time, I think I have found all the missing files, and .gifs, and layouts, etc..., and now have them on my machine and being served properly. No more critical errors as observed from FireBug. Here are the differences between my test and the p...

Javascript intellisense with Dojo/Dijit is Visual Studio 2008

I know that Visual Studio 2008 support JavaScript intellisense as I am using it with Jquery. I am wondering if anyone has ever explored how to get other libraries like Dojo and Dijit to work with it as well. I would assume you would have to provide the ///reference tag to your custom code but would still need a vsdoc for visual studio ...

How can I set the initial value of a dijit.form.DateTextBox to today?

I've created a DateTextBox like: When the page loads there is no value in the field. I would like the value to default to today. Is there a way to handle this? I know I could use the "value" attribute and set it in the declaration, but that only allows me to put a static date in the field, not a dynamic date. It would also be good if...