The attached code contains a keypress event handler, which will click an element on the page, depending on the key pressed. The DOWN_ARROW clicks the label and the UP_ARROW clicks the button
When executed in Firefox or IE, both events fire correctly, while the Notes client and Chrome can't seem to find the click method. Lotus Notes reports an error like:
dojo.query("*[id$='label1']")[0].click is not a function
Shouldn't this work across all clients?
Thank you,
refreshMode="partial" refreshId="input1">
refreshMode="partial" refreshId="input1">
if(e.keyCode == dojo.keys.DOWN_ARROW)
{
dojo.query("*[id$='label1']")[0].click();
e.preventDefault();
};
if(e.keyCode == dojo.keys.UP_ARROW)
{
dojo.query("*[id$='button1']")[0].click();
e.preventDefault();
};
}) ;]]>