this code adds listener to the page... i got it works fine on FF... but it
does not work fine on IE.... the alert does not even show up..... here is
the code
DOM.addEventPreview(new EventPreview(){
public boolean onEventPreview(Event event) {
if(DOM.eventGetType(event) == Event.ONKEYDOWN){
if( event.getKeyCode() == EventObject.ENTER){
if
(event.getTarget().getId()==DOM.getChild(DOM.getChild(DOM.getChild(DOM.getChild(DOM.getChild(DOM.getElementById("pagingToolBar"),
0), 0), 0), 4), 0).getId()){
Window.alert(event.getTarget().getId());
return false;
}
}
}
return true;
}});
thanks
--
~~~With Regards~~~
Muhannad Dar-Nasser
~~Computer Systems Engineering~~
~~0598-534520~~
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---