Search the web
Sign In
New User? Sign Up
forms-dev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Linked selection box   Message List  
Reply | Forward Message #924 of 945 |
Re: Linked selection box

Hi Manuel;

Thanks for replying;

This is where is think the error is... See the onchange line...

<td><select name="TheaterName"
onchange="p_PreformanceDay_switch_group(this.form
['TheaterName'].options[this.form
['TheaterName'].selectedIndex].value,this.form)
p_PreformanceDayNut_switch_group(this.form['TheaterName'].options
[this.form['TheaterName'].selectedIndex].value,this.form)"
id="TheaterName" size="1">
<option value="" selected="selected">Please choose a Theater</option>
<option value="BrowardCenter">Broward Center (Fort Lauderdale)
</option>
<option value="CarnivalCenter">Carnival Center (Miami)</option>
<option value="KravisCenter">Kravis Center (West Palm Beach)</option>
</select></td>
<td>

In the onchange there are 2 selction box "PreformanceDay and
PreformanceDayNut" that need to populate based on the selection of
the "Theater Name".

$form->AddInput(array(
"TYPE"=>"select",
"NAME"=>"TheaterName",
"ID"=>"TheaterName",
"VALUE"=>"",
"SIZE"=>1,
"OPTIONS"=>$TheaterNames,
"ValidateAsNotEmpty"=>1,
"ValidateAsDifferentFromTextErrorMessage"=>"Please
choose a Theater.",
"ValidationErrorMessage"=>"Please choose a Theater.",
"LABEL"=>"Select <u>T</u>heater",
"ACCESSKEY"=>"T"
));

$form->AddInput(array(
"TYPE"=>"custom",
"NAME"=>"PreformanceDay",
"ID"=>"PreformanceDay",
"VALUE"=>"",
"SIZE"=>1,
"CustomClass"=>"form_linked_select_class",
"Groups"=>$PreformanceDays,
"LinkedInput"=>"TheaterName",
"AutoWidthLimit"=>0,
"AutoHeightLimit"=>1,
"ValidateAsNotEmpty"=>1,
"ValidateAsDifferentFromTextErrorMessage"=>"Please
choose a preformance day.",
"ValidationErrorMessage"=>"Please choose a
preformance day.",
"LABEL"=>"Select Pre<u>f</u>ormance Day",
"ACCESSKEY"=>"f"
));

Then I have an other AddInput for PreformanceDaysNut same as
PreformanceDays;

When I comment one of them out each one works good. This is why I
think the porblem is in the onchange line.

Thanks again,

Kurt


--- In forms-dev@yahoogroups.com, Manuel Lemos <mlemos@...> wrote:
>
> Hello,
>
> on 09/10/2007 10:34 AM kurt_leyba said the following:
> > Hello;
> >
> > I'm trying to use the linked selection box... I want to get 2
> > differnt selection boxes (Preformance time and Seating Section)
to
> > pupulate based on the selection of 1 selction box. (Preformance
> > Theater). I noticed that the javascript gets errors when more
then one
> > item is linked. Is there a way to solve this?
>
> Can you please provide a minimal example that exhibits the problem
so I
> can understand what is wrong?
>
> --
>
> Regards,
> Manuel Lemos
>
> Metastorage - Data object relational mapping layer generator
> http://www.metastorage.net/
>
> PHP Classes - Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
>





Tue Sep 11, 2007 11:24 am

kurt_leyba
Offline Offline
Send Email Send Email

Forward
Message #924 of 945 |
Expand Messages Author Sort by Date

Hello; I'm trying to use the linked selection box... I want to get 2 differnt selection boxes (Preformance time and Seating Section) to pupulate based on the...
kurt_leyba
Offline Send Email
Sep 10, 2007
5:46 pm

Hello, ... Can you please provide a minimal example that exhibits the problem so I can understand what is wrong? -- Regards, Manuel Lemos Metastorage - Data...
Manuel Lemos
mallemos
Offline Send Email
Sep 11, 2007
2:18 am

Hi Manuel; Thanks for replying; This is where is think the error is... See the onchange line... <td><select name="TheaterName" ...
kurt_leyba
Offline Send Email
Sep 11, 2007
11:25 am

Hi Manuel; I've been looking at the classes more carefuly and I think the problem is in the GetEventsActions. This populates the onchange field but does not...
kurt_leyba
Offline Send Email
Sep 12, 2007
7:50 am

Hello, ... Yes, there was a bug in the forms class that was not making it not generate the necessary semi-colons in the event handling Javascript code. The bug...
Manuel Lemos
mallemos
Offline Send Email
Sep 14, 2007
10:10 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help