Login Register

dynamically

url parameter in ItemFileReadStore

Hello,
How to change dynamically the url parameter in ItemFileReadStore for the ThumbnailPickere widget ?
This approach does not work

This <a href="javascript:onReadyState('images.json')">Thumbnail A</a>
<a href="javascript:onReadyState('francis.json')">Thumbnail B</a>.
<div id="top">       
<div id="thumbPicker2" dojoType="dojox.image.ThumbnailPicker" size="400"></div>
</div>                     
<div id="thumbPicker1Clicker"></div>

function onReadyState(url) {
var console=document.getElementById('top');

Basic BorderContainer Functionality

It would seem that I don't fully understand the way BorderContainer is suppose to function. I've boiled down my code to what I hope is a short enough example. First the code, then I'll note the issues I am having with this test case.

@import "dojo/dijit/themes/tundra/tundra.css";
@import "dojo/dojo/resources/dojo.css";

 

dojo.require("dojo.parser");
dojo.require("dijit.layout.ContentPane");

Dynamically adding items to FilteringSelect

Hello all,

I have a FilteringSelect which I have created from markup like so

<select dojoType="dijit.form.FilteringSelect" id="cmb1">
        <option value="1">aaa</option>
        <option value="2">bbb</option>
        <option value="3">ccc</option>
</select>

and now I want to add an Item dynamically to this list on the click of a button. I have tried the following.

var combo = dijit.byId("cmb1");
combo.store.newItem({text:"ddd", value:"4"}, null);

but I get the error "combo.store.newItem is not a function" in firebug.

Syndicate content