Javascript hats components
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere HATS > Javascript hats components




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Javascript hats components  
Gary Pinkham


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-18-05 10: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.





[ Post a follow-up to this message ]



    Re: Javascript hats components  
Sebastian Lebryk


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-19-05 07: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.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:12 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register