Login Register

dijit

Commas in dijit.form.FilteringSelect value clause cause unexpected results

If a FilteringSelect dijit contains a comma in the value clause, things don't work as expected. Consider the following code:

<select value="comma, test" dojoType="dijit.form.FilteringSelect">
    <option value="value one">one</option>
    <option value="comma, test">two</option>
    <option value="value three">three</option>
</select>

You'd expect that the option with the label "two" would be selected. In Firefox 3, nothing gets selected, but Firebug reports no errors. In IE 6, an error is thrown: '0.oper' is null or not an object.

The Gui layouts are not displaying correctly on my page, they don't show up

Hey I am trying to get the tests from dojo toolkit working at my site http://andydaykin.com/tests/container.html but nothing shows up, the original code is at http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/layout/te...

I have dojo 1.2 installed on my server, I copied the code except for the paths to the libraries and css. I don't understand why mine isn't working. I tried a simpler example to at http://andydaykin.com/tests/container1.html, but I still couldn't get it to work.

What am I doing wrong?

[SOLVED] Is there a way to explicitly tell the tree not to expand all subnodes?

Hi,
I'm using a dijit Tree widget hooked into a read-only data store, based on the one given here:

http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/data/demos/demo...

dijit.byId vs jsId

Does the jsId attribute work in all dijit declarations?

For example, if I have

<div id="foobar" jsId="jsFoobar" dojoType="dijit.Dialog">...</div>

Can I access the dijit object by either jsFoobar or dijit.byId('foobar')? I've been using the jsId way and it seems to work fine. Any downsides to it (besides it being a global variable)?

Thanks in advance.

Problem with templateString of dijit.tree and TreeNodes

Hi,

right now I'm totally lost with 2 Problems with dijit.Tree and templating.

Problem 1:
I already managed to modify the template String of my dijit.Tree. But how do I modify the template String of the TreeNodes?

right now I got:

<code>
var sitemap=new dijit.Tree({
   id:'sitemap',
   store:sitemapStore,
   query:{top:true},
   templateString:"someHTMLstuff"
  }
   ,dojo.byId("sitemap"));
</code>
but this only modifies the Tree container, not the template of the tree nodes.
I'm looking for something like:

a question about dijit 1.2

When a template file includes widgets,the top widget will call the included widgets's destroy() twice.One happened in the destroyDescendants() of the dijit._Widgets. Other happened in the empty() of the dojo.html.

destroyDescendants():

dojo.forEach(this.getDescendants(), function(widget){
                        if(widget.destroy){
                                widget.destroy(preserveDom);
                        }
                });

empty():

dojo.forEach(this.parseResults, function(w) {
                        if(w.destroy){
                                w.destroy();
                        }
                });

Please help me. Thank you!

Problems when dynamically adding dijits to a form

I'm fairly new to Dojo, but wasn't able to find any information on this by searching (perhaps my search-fu is weak).

I'm attempting to have some local javascript add a second set of fields to a form. After running the function that adds them (and calls the parser), they work fine, but the previously generated versions get broken.

You can see the problem here:

http://geeklair.net/~dluke/dojo_problem.html

Here's an excerpt of the code:

dojo.require("dijit.form.Form");
dojo.require("dijit.form.TextBox");

dijit _calendar isDisabledDate

I have two dijit _calendar thingies on a page, one for a "from" date and another for a "to" date.
Is it possible to override isDisabledDate to disable "from" dates later than the "to" date & "to" dates earlier than the "from" date? If so, any help would be most appreciated. I do know how to do basic stuff with isDisabledDate like, for example, making all days in the future invalid, but all my attempts to do this from/to filtering have met with tears.

Page fails to load with 50+ dijits

I have a page with more then 50 dijit.form.FilteringSelect dijits, a dijit.layout.TabContainer, and a few tabs as dijit.layout.ContentPane...

If I cut down the number of FilteringSelect, hence cutting the total number of dijits under 50(ish) the page loads fine...but if I add just one more dijit the page fails....is there a known limitation? Is there something I should add to djConfig?...

I am using markup to create the dijits:

get toolbar width and height

I have created a toolbar and added buttons to it. After that I would like to get its width and height. I thought that would be an easy task but I have spent a long time searching and have yet to find anything that works. Can someone help me out?
Thanks
Mike

Syndicate content