Binding to HTML elements in GWT -


I am trying to figure out how to pair the JavaScript event for a selected element in GWT, but the selected element Is not being created in GWT, but comes from HTML that I am scraping from any other site (a report site from a different department). First of all, one more detail:

I am using GWT and load, I call an AJAX call to get some HTML in which there is a report, among other things, I want to keep on I am able to get HTML and parse that division, which I am interested in. It's easy to display on my page.

Here's where I'm stuck: On the part of the page I'm using, there is a select element that I can easily find (it has an ID), but if in my user The change is that value (I want to make changes in the selection box so that I can make another AJAX call to change the report, be bound to select on that page and then start the whole process).

So, I'm not sure how once I get HTML from a remote site, how an event handler is built for input on that piece, and then my goal Piece into the divas.

How about this:

  element domSelect = DOM.getElementById ("SelectId"); List Box List Box = List Box Stroller (domSelect); ListBox.addChangeHandler (New ChangeHandler) {Changes on Zero (ChangeEvent Event) {// Some items, like selected elements // Box through list. Selected indies (from the gate), etc.}});  

You should get general idea - a & lt; Select & gt; Wrap the element from there, it is a matter of adding through the method.


Comments