WebSphere HATS - Javascript hats components

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HATS > July 2005 > Javascript hats components





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Javascript hats components
Gary Pinkham

2005-07-18, 5:45 pm

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.
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.



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com