Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 2nd, 2006, 05:00 PM
Authorized User
 
Join Date: Jan 2005
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default "onchange" not fired


Hello Imar and others,

Happy 2006 programming for you all!

To make it possible to every sequential dropdown list "filter" the possible values of the next one, I put all my dropdown lists in the same form (say form1) and used the "onchange=document.form1.submit();" event in everyone of them.

My only problem is: when one of the dropdown lists contains only one possible option, I cannot "select it" to fire this "onchange" event, but I would like a form variable to "get" the ID related to this only one option offered too...

Please help!

Thanks,
fskilnik

P.S.: this "request.form get" technique is presented in Imar´s "Beginning Dreamweaver MX 2004" Wrox book, page 367.


 
Old January 2nd, 2006, 05:14 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi fskilnik,

You too have a happy New year!

The easiest, and probably best way is to add a non-databound item like "Please select an item from the list". This way, there will always be an onchange....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old January 2nd, 2006, 05:23 PM
Authorized User
 
Join Date: Jan 2005
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Simple and perfect, Imar.

Thanks a lot!

Regards,
Fábio.












Similar Threads
Thread Thread Starter Forum Replies Last Post
OnRowCreated fired twice TweeZz ASP.NET 2.0 Basics 1 August 26th, 2008 03:08 AM
DataGrid ItemCommand not fired jigsawcube1 General .NET 0 September 13th, 2007 06:33 AM
Submit button not fired. r_taduri ASP.NET 2.0 Professional 1 August 30th, 2006 12:51 AM
SortCommend event is being fired twice anup_daware .NET Framework 2.0 2 August 9th, 2006 12:19 AM
SortCommend event is being fired twice anup_daware .NET Framework 1.x 1 August 4th, 2006 05:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.