Login Register

events

Dialog does not suspend events on Firefox

I have defined some hotkeys via dojo.connect

When I show a dialog I assume all connected events to be suspended.

eg:I want to open an Opendialog with Ctrl-O and then want
to deactivate the Ctrl-O event until this dialog is hidden.

This works great on IE out of the box but fails on FFox, which keeps all events alive.

Anybody has a workaround or fix for this?

Thanks,
Horst

Proper way to communicate with widgets contained in a custom widget template?

So, I've been using dojo since v0.3. Currently, I'm using v1.2. One thing that has always bugged me is how to communicate with widgets contained in a custom widget's template. For example, say I have this widget:

dojo.provide("custom.CustomWidget");
...
dojo.declare("custom.CustomWidget", [dijit._Widget, dijit._Templated], {
    templatePath: dojo.moduleUrl("custom", "templates/CustomWidget.html"),
    widgetsInTemplate: true
    _doSomething: function(event) {
        alert("do something");
    }
});

And in my CustomWidget.html template:

...

Redirecting keyboard events

Is it feasible to trap keyboard events in a form and redirect them to another html element for the purpose of panning or zooming an image (or pdf) contained in that other element? The point is to fill out an HTML form while viewing an image, and being able to pan or zoom the image without switching focus from the form.

Thanks in advance,

Dale

is there an example that show how to connect to Slider events?

I'm using the digit not the dojo byId object, and I can setValue
it just fine. Sot its there, I think. But I have yet to figure
out how to fire a function of my own when it gets changed. The
example on the Slider page in the book just shows it getting its
value set, which isn't that helpful.

Any help greatly appreciated.
Britton

Grid bool editor

i have a grid with a bool cell editor, and i need to catch the onchange event on the checkbox or access to it's value but i don't know how...
so if something can help it would be greatful.
I'm using dojo 1.2 cuz it solve to me some xmlstore and grids issues,

i define the grid layout under script tags on a html file, and the xmlstore to populate the grid and the grid itself using the markup layout.

erick

thanxs in advance

GFX dragging mouse on canvas works strangely on Firefox 2

Hi, I have a simple piece of code:

dojo.require("dojox.gfx");

var containerEl;
var dojoSurface;
var hMouseMoveConnection = null;

function init()
{
containerEl = dojo.byId("canvas");
dojoSurface = dojox.gfx.createSurface(containerEl, 800, 400);

//cancel text selection and text dragging:
//dojo.connect(containerEl, "ondragstart", dojo, "stopEvent");
//dojo.connect(containerEl, "onselectstart", dojo, "stopEvent");

dojo.connect(containerEl, "onmousedown", null, "myHandleCanvasMouseDown");

dojo 1.1.1 connect bug?

I'm having trouble getting events to work correctly in my dojo app. I can connect a function to an event of a widget, and I can get that event to fire that function ( a keypress for example), but when I add in more than one widget and connect another widget to it, both functions are fired. What gives?

What is the actual events sequence used for drag-and-drop?

Hello.

I am not writing anything with dojo myself, but I have a related question anyway )

Charting Event Handling

Has anyone yet developed a work around for the dojox.charting package that will allow for clickable bars or points on the graphs that are generated? Our company would like to transition from static JFreeChart images to more dynamic dojo charts on our web interface, but this one feature is critical for us to be able to maintain curtain plotter functionality. If no one has a work around, does anyone in the dojo development community know when this feature might be introduced?

GFX Mover vs Moveable

Can anyone elaborate on the difference between dojox.gfx.Mover and dojox.gfx.Moveable?

Syndicate content