Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 2nd, 2006, 05:00 PM
Authorized User
 
Join Date: Jan 2005
Location: Sao Paulo, SP, Brazil.
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.


Reply With Quote
  #2 (permalink)  
Old January 2nd, 2006, 05:14 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
  #3 (permalink)  
Old January 2nd, 2006, 05:23 PM
Authorized User
 
Join Date: Jan 2005
Location: Sao Paulo, SP, Brazil.
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Simple and perfect, Imar.

Thanks a lot!

Regards,
Fábio.







Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:43 PM.


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