| Sebastian Lebryk 2005-07-19, 2:45 am |
| Hi
You can inherit some Widget from HATS and simple
ovverride drawHTML() method. In this method you simply call super.drawHTML()
what returns StringBuffer.
In this buffer you can add string that causes calling of your JavaScript
code.
Other solution is to define global rule for inputs that you can drive with
Your JavaScript code.
Uzytkownik "Gary Pinkham" <gpinkham@comcast.net> napisal w wiadomosci
news:dbgaom$4jsm$1@news.boulder.ibm.com...
>I want to have a dropdown component that when changed fires a Java script
>function to set the value of other HATS components on the host screen.. I
>know how to do this in javascript.. What is troubling me is the names of
>the input fields.. Names like "in_973_35"...
>
> Any help would be greatly appreciated!
>
> Also.. I had thought about extending some of the hats widgets so I could
> add some "stuff" to the outputted Html.. But it seems like the actual
> output happens in some IBM utility classes which I don't think we are
> supposed to extend... (Or I could be missing something)
>
> Thanks!
> Gary.
|