Is events processing in dojox.gfx Surface supported by browsers other than Firefox 3?
Say, i have a variable named surface that is an instance of a gfx surface, i then listen to click events on it using
surface.connect("onclick",null,function(e){
console.debug("clicked on the surface");
});
It works in Firefox 3, but it doesn't...
I'm totally new to Dojo (using 1.3 via Google's XD), and want to try to do things the 'right way', but don't see an obvious dojo.layout.*Container for this.
Basically, I have a UI with a list of categories on the left, and then a list of data on the right.
So say there are 20 categories and each one has 20 items in it. I want to be ...
I am having hard time filtering a datagrid. Please help!
This is how I draw a grid.
var jsonStore = new dojo.data.ItemFileWriteStore({data:columnValues});
gridInfo = {
store: jsonStore,
queryOptions: {ignoreCase: true},
structure: layout
};
grid = new dojox.grid.DataGri...
I'm new to dojo and could really use some help with the following 2 field validation examples.
In the following example of a dijit.form.ValidationTextBox field specifying the validator property seems to override the use of the regExp. (ie the field no longer adheres to the regExp rule). How to I make it do both?
<input dojoType="dijit....
I have an input box that is inside of a div, the div has a background image and the input box inside of it is positioned and limited in size / font to work nicely with the background image. In FF everything works as expected, in IE though there is a major issue. I can't select the text inside of the input box using the mouse or use sho...
Hello!
I am using Struts 2.1.6 with Dojo plugin, whole app has ajax links (sx:a).
Did anybody succeed to implement back button functionality and linking to certain content?
Does anybody have any experience how to implement? I am planning to implement (if there is no good solution already) something like so:
changing address bar li...
Hello,
I am trying to raise an event to all of the widgets that catch it.
I have an authentication widget and other widgets that depeand on the fact that the user is logged in.
I would like to raise an event to all of those widgets when a user is logged in without connecting them manually.
How can it be done?
Thanks in advnace,
Omer.
...
My question is: can we use dojo.xhrPost to post some Json data? More detail:
I have been experimenting with Dojo code to POST JSON data to a RESTful service. It seems to be that the behaviours of dojo.xhrPost and dojo.rawXhrPost are different, or to be more accurate rawXhrPost() works and xhrPost() does not. This is not consistent with ...
I am using dijit.form.FilteringSelect to provide a way to select values from a . The problem is, when using dojo, the label is returned instead of the value of the s.
For example:
<select name="test" dojoType="dijit.form.FilteringSelect">
<option value="1">One</option>
<option value="2">Two</option>
</select>
Dojo is returning the lit...
I am referring to use http://www.sitepen.com/blog/2008/03/17/jsonpath-support/
This is what I am doing (spent two days but no luck):
first drawing a datagrid with integer column and a date column and also able to sort the columns values by clicking on the column header..
now using dojox.jsonPath.query to query numbers using syntax lik...
I'm attempting to create some simple UI components with dojo.gfx. I've managed to extend dojo.gfx.Group, but am out of my depth getting any of the default shapes drawn to the surface. Inspecting the rendered SVG in Firebug, there's rightfully a node but no rect.
The simplified class looks like this:
dojo.provide("gfxui.SimpleButton")...
I wish to do something like as follows:
When the mouse goes over to some element, record it
If the mouse stays there for 3 seconds, then execute some action f() for that element
If the mouse leaves that element before 3 seconds, then the action should not be executed.
How can I implement this delayed execution with possible cancella...
I've dijit BorderContainer overlaying a gfx surface which is movable (dojox.gfx.Moveable). Is there any way of disabling BorderContainer completely from catching mouse events and letting the Surface get them instead?
I've been thinking of publishing the BorderContainer events to Surface, but that's seems like an overkill and might run i...
Hi there,
I'm using dojo dataGrid (1.2.2), just wondering if there is a way for me to update data in a give row, and reflect the change in the grid without reloading the whole grid?
For example, I'd like to set the 5th row column "x" from 1 to 5
console.info(thisGrid.getItem(5).i.x); //1
thisGrid.getItem(5).x = 5;
??update the row
conso...
I need to find all dijit.form.CheckBox widgets inside a DIV and enable/disable them all. I am not able to form appropriate query for it.
I tried dojo.query("[dojoType~=dijit.form.CheckBox]") but it gives me an empty list.
What is the appropriate query for it? Can DOJO query return a WidgetSet or does it always returns DOM ids? Is ther...
I use dojo 1.3.2 with the Zend Framework 1.10 JSON Server.
I can successfully execute my method getTreeByScope defined as SMD via JSON-RPC 2.0
myService.getTreeByScope({scopeId:1,nodeId:0});
this sends this POST request:
{"id":1,"method":"getTreeByScope","params":{"scopeId":1,"nodeId":0},"jsonrpc":"2.0"}
All is fine.
Now i wanted...
I have a table in which I am adding some rows dynamically and in the new rows, I add one input text element. When the text in the input element changes, I wish to access the parent row and do something around it. But my code isn't able to access the parent node for input element. Following is the code sample. What is the reason for this?...
We are in mid of a project where we have used an extended Dojo 1.1.1 to meet the customer requirement and add richness.
But there are quite some bugs and performance problems with this version of Dojo and
we are looking ahead to migrate the Dojo version to overcome both the issues, but the migration cycle seems to be quite painful and ...
I've been trying to use dojo.require(If) with a local variable to dynamically load a module on a page based on a condition.
// note: dojo v1.4
djConfig = {
debugAtAllCosts: true
};
Example 1 (does not work):
(function() {
var nameOfClass = "Two";
dojo.require("my.namespace." + nameOfClass);
dojo.addOnLoad(function() {
...
I want to perform some client side form validation and I was thinking to use Dojo to do it.
I want the user to be able to insert what he wants in the text boxes, but when he clicks submit, the form to be validated. If a field is invalid I want to display a red border around the textbox and a message to the right, also in red.
If user c...