dojo

Dojo Datagrid throws "Cell is undefined"

cell = document.createElement("td"); cell.setAttribute("colspan", "1"); cell.setAttribute("valign", "top"); var grid = new dojox.grid.DataGrid({ id: "gridID", store: new dojo.data.ItemFileWriteStore({data: {items: []}}), elasticView: "2", selectionMode: "single", autoWidth: "true", rowCount: "4", layout: [{fie...

Dojox charting, problem with Columns chart type

I can't figure out what's wrong. Using the latest everything from dojotoolkit.org. My chart renders fine for a Marker or Line chart: this.chartVol.addPlot("default", { type: "MarkersOnly", lines: false, markers: false, gap: 1, hAxis: 'volX', vAxis: 'volY' ...

HTML and Javascript: How to manage element focus?

I have some questions about focus in general (adhering to WC3 format, screw IE). I'm having problems with unintended actions occurring on a widget i am building (using the Dojo Toolkit), and i believe a better general understanding of focus will allow me to solve my problem myself, so here goes: First of all, which common HTML element a...

dojox.charting: how to align the plotArea of 2 charts, one above another?

I'm trying to layout 2 linked charts, one above the other, similar to what you might see on the Google Finance page. I can render both charts just fine, but getting the plotAreas to line up exactly is a bit of a mystery. The chart.plotArea.width of each chart seems to depend on the width of my Y axis labels. Thus the 2 charts are not t...

Dojo: BorderContainer and ContentPanes not working inside of a custom widget template

Hey guys, im trying to create some custom templated widgets with dijit.layout objects (BorderContainer, ContentPane) in the template, and i just can't get it to work. Maybe SO can steer me in the right direction... here's my code so far: test.html <html> <head> <title>Test Page</title> <style type="text/css"> @import "http:...

Dojo's dijit.Editor not editable in Adobe AIR application?

Maybe someone has some idea what I'm doing wrong here. I'm writing an AIR application and I'm trying to embed a dijit.Editor on my page - I've tried both with a simple: <div dojoType="dijit.Editor"></div> And doing it programmaticly: <div id="editor"></div> ... // in the onLoad function var editorwidget = new dijit.Editor({height:...

dojox.grid.DataGrid checkbox in heading resets its value.

Hi, I've got a DojoGrid with a Dojo checkbox in the heading, but when I select the checkbox it loses the state (ticked/unticked). <table id="gridDeltas" jsId="gridDeltas" dojoType="dojox.grid.DataGrid" store="deltaInfo" style="height: 276px; width: 100%;" > <thead> <tr> <th field="other" ><input type="checkbox" dojoType="dijit....

Adding a series to a simple dojo chart

I have constructed a simple function that programatically builds charts using dojox.charting. I'm a bit puzzled as to how to cast variables correctly when passing them to the chart via addSeries. Consider this: function buildChart(targetDiv){ //grab the destination var bc = dojo.byId(targetDiv); //define the da...

dojo charting - problem with onmousemove over chart plotArea

I'm trying to build a chart which draws a vertical line to the X axis under the cursor. Using this as a guideline: http://dojo-toolkit.33424.n3.nabble.com/Charting-events-td40659.html I am using the following code to catch 'mouseout' & 'mousemove' for the chart plot area (excludes the chart margins and labels) chart = new doj...

Skinning Dojo to coporate identity

Does somone knows good ressources about customizing the Dojo Dijit Themes ? Or has expierence with it? We are planning to change them to our coporate identity and i have no idea how much time does this can cost. ...

dijit.form.Combobox show label Instead of value

I've a dijit.form.Combobox field which uses a ItemFileReadStore to pull Its data. Teh ItemFileReadStore has two attribute per Item value which will be used for form submission , generally Unique Integers and label which is Human Understandable String. In ComboBox HTML I've done searchAttr="value" labelAttr="label" When the ComboBox Shows...

Which Javascript framework to choose?

Possible Duplicate: Which Javascript framework (jQuery vs Dojo vs )? There are many Javascript Frameworks over the Web Development World. Among them most people choose JQuery but I am really complex which one to choose for the following reasons: Accessibility Input form widgets & validation Back button support (or) history...

Dojo // dijit.form.FilteringSelect // How to add a class to a <select> field in Dojo's filter Select

Hi, I am trying to add a class to some of my dojo.filterselect in order to color them in Blue. Does anyone know how to do that? thanks, Alon ...

Setting cross-browser width of Dijit.form.Select element

Title pretty much says it all, I have a dynamically generated Dijit.Form.Select element. I have been trying all kinds of CSS workarounds but the only browser that seems to tolerate what ever I try is Firefox. Does anybody know the correct way to set the the width of this element. I use span tags rather than the regular select/option...

Aribitrary location match for a Dojo ComboBox

When ever you type anything in Dojo's ComboBox you get a list of possibilities based on the options that it has set but the matching only happens at the beginning of the string. I was wondering if there is a way to match any position in the option string. For example if you options are: "Windows", "Linux", "OSX", "AIX", "Solaris" and yo...

How do you format data for a dijit.form.Select?

What are the requirements for formatting a 'store' used by a dijit.form.Select? Currently i'm pulling a json style db (backend is a mongoStore) and using THE SAME DB in a dojox.data.DataGrid and a dijit.form.Select. I set the db as the 'store' attribute for both, and for the datagrid it works perfectly (after specificying the layout). ...

DOJO Filtering Select

I have a filtering select emplemented on a large dataset (~10,000) and it works rather well. However, what I would like to do is as the user is typing, display how many records match. So let's say you have the data set: 1A 1B 1C 2A 2B 2C ...and the user types the number 1, the number I would like to return to the users is (3 matches). ...

howto Zend_Dojo_Form_Element_FilteringSelect onchange submit

Well the title pretty much says it all. I had $strata = new Zend_Form_Element_Select('strata'); $strata->setLabel('Select a strata: ')->setMultiOptions($this->stratalist)->setAttrib('onChange', 'this.form.submit()'); Then I need to use some fancy dojo form elements in other forms. So I decided to make them all look the same and did th...

How do I dynamically add a Dijit widget to a Dojo form?

I'm trying to add a new FilteringSelect widget dynamically to a preexisting form I made out of declarative tags (on page load). prereqs = 0; function addAnotherPrerequisite(){ var newPreReqCursor = dijit.byId("Prerequisite"+(prereqs-1)).domNode; dojo.create("input",{ id:"prerequisite"+prereqs, jsId:"Prerequisi...

programmatically firing a click handler

I'm using dojo. I've got something like this: <a id="fooBar" onclick="foo();bar();">Foo then Bar</a> I want to trigger fooBar's click handler from another button. Something like: <a onclick="dojo.query('#fooBar')[0].click()">Do FooBar</a> Can I do that? ...