Wow.  Mixing custom html and GWT looks painful.   I would never do
this.  I'll be curious to see if someone clears up how to make this
work.


On Sep 23, 3:41 am, newUser <[email protected]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to