Login Register

event

Emulate onclick event on link

Hello!
I'm trying to refactor script from jquery to dojo and have a problem with call event onclick on link from script.
How to make .click() from dojo on a link?? Any suggestions?

struts2 : Problem with events in autocompleter

I am using struts2 autocomplete tag

<s:iterator value="orderFormList" status="count">
               <s:autocompleter forceValidOption="true" autoComplete="false" listKey="id" maxLength="6"
                    id="orderFormMemberList${count.index}" keyName="orderFormMemberIdList[${count.index}]"
                    name="orderFormMemberNameList[${count.index}]" theme="simple" list="portraitClassMemberList"
                    onchange="changeForm()">
               </s:autocompleter>
           </s:iterator>

struts2 : Problem with events in autocompleter

I am using struts2 autocomplete tag

Chart and Event

Hello,

Can I attach some events on the chart, for example onmouseover, onclick etc.. ?

Thanks,

Youngho

Programatically trigger keypress event from a dom node?

I've got a textbox which I programatically want to trigger a keypressed event from. The event must be "custom" with certain attributes set (shiftKey).

I've got this to work successfully in FF, but in IE it refuses to take in my custom event. Here's my IE code:

// create custom event
var newEvent = document.createEventObject();
newEvent.shiftKey = true;
newEvent.type = "keypress";
newEvent.charCode = dojo.keys.ENTER;

// fire event from dom node
var domNode = dojo.byId("somenode");
domNode.fireEvent("onkeypress", newEvent); // this line don't work :(, event never gets fired

How do I cause dojo to stop an event after calling to my event listener

We are using the dijit.form.DateTextBox dojo object. We need to register on the OnBlur event in order to cause the page to be recreated when the date is changed.
While the page is being recreated the original controls are deleted and the whole page is recreated, there for after calling this event listener dojo is continuing with its own code but the object doesn't exist anymore so we get an error:
'this.domNode' is null or not an object
Can we use another way to register the OnBlur event in order to avoid this situation?
Or is there a different solution?

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?

Order of executed event handlers

Hi,

I assume that the event handlers used by dojo.connect() are executed in the order they are registered when the particular event fires.
Is there a way to specify the order of a connected event, for example "execute before all others" ?If not possible via API does somebody have an idea for a workaround to achieve exactly this?

Thanks in advance,

Philipp

Button with an onclick event next to a DateTextBox

Hi,

I have a DateTextBox on my page and I was wondering how to put a button next to the calendar, so when the user clicks on the button, the calendar is displayed. Another question is how to disable the default behavior, which is showing the calendar when the text field is focused.

Thanks in advance.

Regards,

Marco

Alex Russell Webinar Thurs, 3/20 at 12 PST on the Zen of Dojo

Alex Russell will be presenting at the Bay Area Visual Ajax Group meeting Thursday, March 20 at 12 PST. He will be talking about "The Zen of Dojo - Making Ajax Development Effortless"

To register for the webinar, send an email to rsvp@visualajax.org

If you are in the Bay Area, you can also attend in person at 301 Howard St, 22nd Floor

Syndicate content