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'...
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...
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...
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 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.
...
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...
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?
...
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
...
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 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
...
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 ...
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...
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?...
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...
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...
can a dojo dialog bring up another dojo dialog?
...
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...
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.
...
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...
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...