dojo

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...

Prototype, dojo or jQuery?

I am new here. If this is already asked, please delete it. Which one would you choose? ...

Performance of dojo (logging, comet, sliders)

I have some performance issues in my JavaScript, and I'm not having much success instrumenting it. One of the things I've tried is using firebug's profile tool. It reports that the top single call was to dojo's log(). Unhelpfully, it reports a line number from the compressed script, so I can't tell what's causing the problem. But it ...

dojo.keys.HELP - what key is it?

Hi! I'm working on context sensitive help in DOJO-based web UI. such help should be also accessible using keyboard. this has brought me to dojo.keys.HELP that seems to be created for such purpose. unfortunately I can't find what key is it:/ in dojo._base.event it's mapped to key code 47 which is '/' ('?'). but after pressing '/': conso...

How do I dynamically show and hide an entire TabContainer using DOJO?

DOJO seems to have some quirks here. I specifically need to have the TabContainer hidden when the page loads, but then become visible after the user clicks a button. The first thing I tried is setting style.display = "none" to start, and then setting style.display = "block" on the click event. Unfortunately, this only partially works- th...

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 ...

need Couchdb dojo api example

Would someone recommend me a good example for accessing couchdb from dojo using the Couchdbreststore api Thanks ...

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 ...

Dojo: Copying a node tree

I'm using Dojo as JavaScript framework. What I would like to do is copy a tree of nodes and put it under the copied tree. Specifically, I have a table row with plenty of code within it. I would like to add a new table row that is the exact copy of the above row, with some ids changed here and there. What would be the best way to do this...

Manipulate standard table with thead and tbody tags - to be later able to filter and sort

Hi there, I would like to modify a table that is generated by a wiki. This is why it has NO thead and tbody tags. What we try is to add these tags at the correct positions. Remember, the table itself is generated by awiki which means that lines can be added after a while. Here is my code (html and dojo): <script type="text/javas...

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 ...

Is it possible to do a "not equals" query in Dojo Grid?

I have a Dojo Grid that I'm filtering with a query that's set in a javascript function. function filter() { var grid = dojo.byId("gridNode"); grid.setQuery({fieldName:"Some Text"}); } What I'd really like to do, though, is filter it so that it shows all entries where the fieldName value is not empty. Does anyone know if there...

What are good practices for URL design in one page web apps (I use Dojo)?

I'm wondering about HTML reuse when using Ajax (specifically Dojo). So let me set the context: Context Say I have index.html with some *.js included files at http://host/site/ that consumes some REST service say http://host/rest/xxxx/yy The user interacts with http://host/site/{index.html} and everybody is happy. I'm pondering what h...

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"> ...

How can I add to a Dojo Grid Event instead of replacing it?

I have a dojo grid on which I want to perform some action when the "ENTER" key is pressed. However, I only want to add to what DOJO already does when a key is pressed. When I try to use a handler it replaces the onKeyDown function in dojox.grid._Events instead of adding to it. Is there any way I can make sure that the _Events function...

Seam and Dojo vs RichFace or IceFace ..

I am just scratching my head on using DoJo in Seam in place of RichFaces or IceFace. I couldn't find any article or tutorial out there in the web. The reason for my question is that Iam coming out of a DoJo/Domino project and like to have this project in J2EE/Seam/DoJo. Appreciate any input... TIA. ...

DOJO Filtering select, drop it

I found how to change the displayed value in a filtering select, but now I would like it to drop the list, however i don't know how to do it? Do you have any ideas? Have a good day and thanks for your help. ...

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...

Which is the best ESRI ArcGIS component library to use with GWT?

We are currently designing a GIS intranet application using GWT and ESRI ArcGIS. We are looking at 2 client side Javascript libraries: The ESRI Javascript API Open Layers The library will have to support fused and non fused map caching as well as some layers that are dynamic. Open Layers GWT integration exists but the ESRI library is...

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...