dojox

How do you manage your DojoX code?

How are you managing your usage of DojoX code or widgets in a production application? The Dojo Toolkit is comprised of Core, Dijit, and DojoX. As an incubator for new ideas to extend the toolkit, DojoX code and widgets are functional with varying degrees of instability. DojoX Code like QueryReadStore (for fetching batches of data from...

Why does tabbing to a DojoX grid result in a JavaScript "Can't move focus to control" error?

Problem I've got a number of Dojo components on a page. When the user tries to tab from an input like component to a grid like component, I get a JavaScript "Can't move focus to control" error. The user base uses IE6. Solution The first element in the DojoX Grid layout cannot be hidden. If it is hidden, you get a a JavaScript "Can't ...

how can I make a column unsortable when using the dojo toolkit's grid?

I've got a grid (dojox.grid v1.2) that I don't want to be sortable. How can I disable that? ...

FilteringSelect with a QueryReadStore: selection doesn't stick

I am using a dijit.form.FilteringSelect backed by a dojox.data.QueryReadStore in order to allow the user to select a region (think "auto-complete" mechanism). On each character entered by the user, the QueryReadStore sends a request to the server, awaiting a json list of matching regions (with associated IDs). By the time a short enoug...

Problem accessing remote CSV using dojo

Hi, I am trying to create a website where I host my data on google spreadsheets, and show data to the user in his browser using dojo. However, I am getting the error Access to restricted URI denied" code: "1012 when the browser encounters: var stateStore = new dojox.data.CsvStore( {url: "http://spreadsheets.google.com/pub?key=p0jvMl...

dojo.xd.js not recognizing dojox.data.CsvStore

Hi, When I use an import such as <script type="text/javascript" src="http://o.aolcdn.com/dojo/1.2.3/dojo/dojo.xd.js" djConfig="parseOnLoad:true, isDebug: true"></script> I get the error dojox.data.CsvStore is not a constructor for lines such as var stateStore = new dojox.data.CsvStore({url: "dojo-passcsv.php", label: "name"...

Does anyone have a simple example of a working DojoX Grid control?

I'm trying to add a DojoX Grid control to my website, but I can't get it to work. I'd like a simple example to start from, but there doesn't seem to be one anywhere. These are my requirements: I need an example of the 1.2 Grid It should load the Dojo libraries from googleapis.com (or AOL's servers; not the trunk code or the Dojo code...

Why is the legend in my Dojo charting chart not showing the colours?

I'm using dojo charting and for some reason the legend for my chart is showing x's instead of the colours. Here is my code: dojo.require("dojox.charting.Chart2D"); dojo.require("dojox.charting.themes.PlotKit.blue"); dojo.require("dojox.charting.widget.Legend"); dojo.require("dojox.layout.FloatingPane"); dojo.require("dojox.charting.the...

Remove all the children DOM elements in div

I have the following dojo codes to create a surface graphics element under a div: .... <script type=text/javascript> .... function drawRec(){ var node = dojo.byId("surface"); // remove all the children graphics var surface = dojox.gfx.createSurface(node, 600, 600); surface.createLine({ x1 : 0, y1 : 0, x2 : 600, y2 : 600 })....

How to add a div dynamically by using Dojo?

I have a the following static div: <body> <div id="div1"></div> .... I want to add a div with id "div1_1" within div1 dynamically by using dojo. How can I do it? ...

How to unregister legend in dojox.charting?

I have the following codes to create chart graphics by dojox.charting: function createChart() { var node = dojo.byId("surfaceDiv"); while (node.hasChildNodes()) { node.removeChild(node.lastChild); // remove all the children graphics } var nodes = "<div id='chart1' style='width: 10px; height: 10px;'></div><div id='legend1'...

How to change alignment of Legend for dojox.chart graphics?

By default, the legend created by dojox.charting.widget.Legend(...) is aligned left side: ... // myChart is a var with a dojox chart var myLegend = new dojox.charting.widget.Legend({chart: myChart}, "legend1"); Any settings in the Legend() constructor to set legend as centered legend? By the way, I realize that dojox actually convert...

Issues with dojox.charting and xDomain reference to dojo/dojox library

I have a web HTML page with some client-side JS codes based on dojox.charting. I don't have dojo library in my local web site (actually no web server). I use dojos' xDomain reference feature with src to google's hosting site like this: <head> ... <script type="text/javascript" djConfig1="isDebug:true" src="http://ajax.go...

WebSphere Application Server Feature Pack for Web 2.0

We are in the process of doing a POC on AJAX push technology. Some of the things we are looking at are Ice Faces Push Technology, Richfaces a4j:push and WebSphere Application Server Feature Pack for Web 2.0. We find an issue with WebSphere Application Server Feature Pack for Web 2.0 in that going down this road we become a slave to th...

Why does dojo grid need a name column in the json data source

In the following sample data is only shown in the grid if the json data contains a name column -> the first grid shows data, the second not. Why is this the case? index.html: dojo grid <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.3/dijit/themes/tundra/tu...

Providing links and markers [label] in each bar in a bar chart

I have recently started working on dojo. I am facing problems in the following cases. How can i provide a unique link (href) in each bar in the bar chart? When a user clicks on a bar, he should be taken to a related jsp/html page.Basically, i am looking for a clickable bar. How do i provide a label or note (Ex:10,12,a name etc) inside ...

Dojo Tooltip. dojo.data fetch(). Problems in opera

Weird problem with dojo.data. var store = new dojo.data.ItemFileReadStore({ url: "[myUrl]" }); console.log(temp.fetch({ query:{id:'*'}, onComplete: functionOnComplete, onError: functionOnError })); functionOnError show such trace in opera only: message : Statement on line 16: Syntax error Backtrace: Line 16 of linked scri...

Text length with dojo gfx

While rendering text with dojo's gfx, is there a way to tell how much space the text would take, just in case I need to wrap it so it fits a given width? How would you manage to print text of arbitrary lengths if you had to make them fit areas of restricted width? Update: Sorry, I should have mentioned I need to do the wrapping on the s...

Dojox.grid.DataGrid - in a widget - only renders on visible tab

I am using a Widget that contains a DataGrid object. The Widget works fine when included in the first tab (this is the visible tab), but not when I use the same code on a second tab. The code is the same I have done several checks to make sure there are no other problems - and non Grid code is rendering fine - only the grid that has a p...

how can we resize a row in dojo grid

Hi all, I want to resize the dojo grid row by dragging it as we can do with the column. I want it some thing like Excel row which we can resize(minimize or maximize its height), is there a way to do this in dojo grid? Thanks Faz ...