dojo

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

Imitating excel sheet with Dojo Grid HELP?

I have a basic web page that I'm trying to capture the enter key when pressed. I will have a page with many rows( depending on what was pulled by the database ) where each field is editable. What I'm trying to do is when a user is focused on a certain column on a certain row, I want them to be able to press enter and their focus will go ...

How to use Dojo in my Django application?

How do I use Dojo in my Django application? Please show me comprehensive examples on how to do this. Any links to sample code for this combination will be appreciated NB: I also don't mind examples using Dojango. ...

How can I maintain the checkbox state on a page that is refreshed by Ajax?

I have a html table in my application that shows the state of various jobs running in the system. Each job has a state associated with it e.g a swirly gif for running jobs. New jobs have a checkbox next to them that allows the user to select and kick off the associated job. The table is a struts2 auto refreshing div (sx:div), it refres...

Dojo Tree Refresh

Using Dojo 1.3, after adding a child (i.e. folder or item) to a tree, is there a way to have it reflected immediately via refresh or some other method? ...

How do i set the border for a dojo text editor?

Guys, 1 How can i set a visible border around the the dojo RichTextEditor? 2 How can i set the inner bacground color for the same dojo RichTextEditor? 3 How can i set the height of the dojo RichTextEditor? Gath ...

Good Ajax framework for J2EE

I'm relatively new to J2EE and I'm in need of a framework that will simplify AJAX for me. At the moment I have code that uses the dojo toolkit to draw a graph, but I'd like to have the graph updatable via AJAX. is there a good framework that allows me to do Ajax call backs and insert and run javascript into a page? If so is there a goo...

How do use dojo TextBox attr function to get value?

How can i get the value of a Dojo TextBox? Am doing this; dijit.byId("textName").getValue(); But firbug tells me getValue() is deprecated! is use attr('value')! but i have no clue on how to use attr('value') function Help Gath ...

Self-closing popups in IE -- how to get proper onBlur behavior?

I want a transient window to close itself when the user clicks away from it. This works for Firefox: var w = window.open(...); dojo.connect(w, "onblur", w, "close"); but it doesn't seem to work in Internet Explorer. Some other sites made reference to an IE-specific "onfocusout" event, but I couldn't find a coherent working example of ...

Populating a FilteringSelect datastore from an onChange event.

I'm trying to bind an onChange event of one FilteringSelect to populate another FilteringSelect. // View dojo.addOnLoad(function () { dojo.connect(dijit.byId('filterselect1'), 'onChange', function () { dijit.byId('filterselect2').store = new dojo.data.ItemFileReadStore( { url: "/test/autocomplete/id/" + dijit.by...

dojo, prototype and jquery

Hi, I've been programming in PHP for some time now, and id like to start learning how to create more dynamic websites using AJAX. The question is - where do I start? Heres' what I'm considering: prototype + script.aculo.us dojo (with/without Zend Framework) jquery What book should I buy? Are these different libraries, or the same?...

DoJo get/set overriding possible.

I don't know much about Dojo but is the following possible: I assume it has a getter/setter for access to its datastore, is it possible to override this code. For example: In the dojo store i have 'Name: @Joe' is it possible to check the get to: get() if name.firstChar = '@' then just return 'Joe' and: set(var) if name.firstChar...

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

Dojo dialog nesting

can a dojo dialog bring up another dojo dialog? ...

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

Can JavaScript be used to detect a browser's (IE7) zoom level?

Duplicate: How to get zoom level in Internet Explorer 7? (javascript) I am working on a page that does not display correctly when zooming is used from IE7. I have a way to fix the display but I only want to apply it when IE7 is zoomed in. ...

Dojo: Get ID of inlineEditBox on OnChange

I'm using dojo and dijit and have an inlineEditBox widget. I'm trying to capture the onchange event and send a key/value post to a php page (to set into a database). The value is the new value just submitted, available from e.target.value. That's easy. I'd like the key value to be the id of the inlineEditBox widget. How can I access...

[Q] Dojo(x) Widgets within HTML table do not resize

I have the following page using Dojo 1.3.1 javascript toolkit Content Pane HTML table two columns, N rows Column 1 (left): text Column 2 (right) Dojo widget (can be any, but mostly Grids, pullodwn, etc) Problem: When page loads, it renders Ok (the type of widget and the number per page are determined at runtime, so I ca...