NetTalk Central

Author Topic: Manually Open a Drop  (Read 3615 times)

wvanderstek

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Email
Manually Open a Drop
« on: April 08, 2009, 01:36:08 AM »
Hello,

I have 2 dropdowns. The second dropdown has a filter on the value chosen by the first dropdown. I want to open/drop the second dropdown automatically when a new value has been chosen by the first dropdown. Is there any way to achieve this ?

Thanks,
Wilco

bshields

  • Sr. Member
  • ****
  • Posts: 392
    • View Profile
    • Inhabit
    • Email
Re: Manually Open a Drop
« Reply #1 on: April 08, 2009, 06:46:44 PM »
Hi Wilco,

Refreshing a second dropdown based on the first on is pretty standard. I'm guessing your real problem is forcing the second dropdown to "drop" automatically?

This would require client-side javascript. The theory is straight forward but my javascript isn't good enough to help. I've checked the javascript DOM regarding SELECT HTML controls and their doesn't appear to be an event or property you can set to make it open. It might be possible to do it pretty much like normal clarion where you select the control (which is easy in javascript) and then post an event into the control causing it to open.

You are outside the scope of nettalk here and into standard web programming so googling the problem is likely to assist.

Sorry I couldn't be more helpful.

Regards
Bill

wvanderstek

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Email
Re: Manually Open a Drop
« Reply #2 on: April 08, 2009, 11:37:58 PM »
Hi Bill,

The only problem I have is indeed to drop the second dropdown automatically.

I already suspected that the only solution was java.

Thanks for the assistance.

Best,
Wilco