Open Source & Stuff  
  |     Main Site     |      Forum     |     Contact     |
Ajax Linked Select boxes :  forum.Salix.gr forum.Salix.gr
Comments, questions, usage, bugs. 
Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
messageConsecutive fields should be greyed out if the former has no value.
Posted by: Goody (IP Logged)
Date: October 22, 2008 04:56PM

Hello folks,

I would like the consecutive fields to be greyed out if the former has no value.

For instance if a country is chosen in the first field and the second field has no state value, the second field should show "None" (without any value sumitted, not even 0) and the consecutive boxes should be greyed out.

Any help will be much appreciated.

Cheers!

messageRe: Consecutive fields should be greyed out if the former has no value.
Posted by: panos (IP Logged)
Date: October 23, 2008 06:54AM

Well, that one is harder.

Take a look at class file around line 713, that is the loop that adds options to the select box.
There are always (except case of error) options to add. The case you want to catch is when
1 option is selected and sValue (line 715) is 0 (if not changed the way suggested to your other post).
Dont know what is you relation with javascript is, but a check if tagRecords lenght is 1 and just to be sure if sValue is zero and you will chatch it.

Hope this helps.

Best regards
Panos

messageRe: Consecutive fields should be greyed out if the former has no value.
Posted by: Goody (IP Logged)
Date: October 23, 2008 09:05AM

Thank you for the hints.

I shall give it a go.

Kind regards



Sorry, only registered users may post in this forum.

All Rights Reserved 2006 Salix.gr  |  Design by Ades Design |  Hosting by e-emporio |  forum.Salix.gr powered by Phorum