I assume you mean "you have to use both java
and javascript to achieve the above steps<this>"
you can use only javascript if you attempt
what peter describes in 2-4 of his reply.
for small amounts of cross reference data
i have done it this way and it works well.
it is much faster than making a round-trip
to the server.
one tricky part is "resizing" a combobox
based on the new data. IE does it automatically,
Netscape has to be coaxed.
-Chip
Team NetDynamics
"Venkat" <[EMAIL PROTECTED]> wrote:
>
>Hi,
> If you are developing thin clients ,You can achieve this if u do the following.
>I dont know whether this is right or not but it will work fine.
>
>1. Create a button in your page and onBeforeDisplay of that button give return SKIP.
>(To hide the button)
>
>2. You have to set the field values and call load(false) in onWebEvent of the above
>button
>
>3. Then onChange of each combo (Javascript)you have to invoke the onWebEvent method
>of the above button so that the same page will be loaded again with new values.
>
>You have to use both java and javascrpt to achieve this.
>
>Thanks
>Venkat
>"peter cheung" <[EMAIL PROTECTED]> wrote:
>>
>>1. If you are using java client that is a subject I'll let others answer.
>>2. If you are using html client this is not easy.
>>3. In html (assuming you are supporting ie and ns both) all the data must be already
>sent and stored in the html the browser is displaying
>>(ignoring objects that can using tcpip and talk to the server directly and by pass
>the http connection)
>>4. If you have the data already stored in the html you can use javascript and
>rebuild your combo box.
>>5. The other alternative is to use frames and load the new combo box from the server
>into another frame.
>>6. Another alternative is to put the two combo box in two different pages. Load the
>second page when the user change the 1st combo box.
>>
>>
>>"Manisha" <[EMAIL PROTECTED]> wrote:
>>>
>>>Hi All,
>>> I want to fill second combo box based on user selection of an item in the first
>combo box.
>>> I have to execute a query each time the user selects an item from the 1st combo
>box and then fill the second combo box with the query results.
>>> How can I call java event in the onchange event of the first combo box ???
>>>
>>>Thanks
>>>Manisha
>>>
>>
>
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]