Hi All,
I am a newbie here so please excuse me if I write a silly question.
I have a html code like:
<div id="navhome">
<ul>
<li><a href="Home.html">HOME</a></li>
</ul>
</div>
<div id="navcontrol">
<ul>
<li><a href="">CONTROL ROOM</a></li>
</ul>
</div>
Now, what i want to do is, whenever the user clicks on the "control
Room" link (as above), only some part of the web page is updated.
However, i am unable to catch the click event on the "Control Room"
link. What I have tried is :
DOM.sinkEvents(DOM.getElementById("navcontrol"), Event.ONCLICK);
DOM.setEventListener(DOM.getElementById("navcontrol"), new
EventListener() {
public void onBrowserEvent(Event event) {
mainPanel.setSize("10px", "10px");
}
});
Can someone help me identify the mistake? Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---