problem in javascript for select enabled/disabled by checkbox in a list with in logic iterate

2003-12-11 Thread Udaya Allu
Hi All,
Please help me on 
select enabled/disabled by checkbox in a list with in logic iterate
I am not able to pass the index for disableing select box basing on check box 
enale/disable
please look at  the code part  onclick="this.form.subscriptions['<%=index 
%>'].selectedWalletItemId.disabled=this.checked?false:true;"
in the following code.
I tried it different ways ...but no success.
Other wise also if  I want to use simple onclick=" sumbit()", to do something action 
class and refresh,
I do not know how to pass the index or other parameters through 
Any amount of help is really appreciated as this is code in production.
Thank you
-Udaya Allu



Select Credit 
Card


">

   - 
/






 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem in javascript for select enabled/disabled by checkbox in a list with in logic iterate

2003-12-11 Thread Firat TIRYAKI
Well, sorry but you can't use the disabled property for one of a select
element's options, you can use it for the whole select.

F.

- Original Message - 
From: "Udaya Allu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 11, 2003 5:17 PM
Subject: problem in javascript for select enabled/disabled by checkbox in a
list with in logic iterate


Hi All,
Please help me on
select enabled/disabled by checkbox in a list with in logic iterate
I am not able to pass the index for disableing select box basing on check
box enale/disable
please look at  the code part
onclick="this.form.subscriptions['<%=index
%>'].selectedWalletItemId.disabled=this.checked?false:true;"
in the following code.
I tried it different ways ...but no success.
Other wise also if  I want to use simple onclick=" sumbit()", to do
something action class and refresh,
I do not know how to pass the index or other parameters through
Any amount of help is really appreciated as this is code in production.
Thank you
-Udaya Allu



Select Credit Card


">

   - 
/






 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem in javascript for select enabled/disabled by checkbox in a list with in logic iterate

2003-12-11 Thread Udaya Allu
HI Firat,
I am using it for for the whole select.

It is working fine out side logic iterate in normal html select when I tried as follws.
But in logic iterate I could not provide reference of name for select
like sampleSelect in indexed way like sampleSelectArray[index].sampleSelect 
dynamically.
Thank you for understanding.
-Udaya Allu



Select Card
Visa -5678 10/2005
Amex -6854 12/2005
Amex -4211 10/2005
Visa -5678 10/2004
 


 

-Original Message-
From: Firat TIRYAKI [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 10:25 AM
To: Struts Users Mailing List
Subject: Re: problem in javascript for select enabled/disabled by
checkbox in a list with in logic iterate 


Well, sorry but you can't use the disabled property for one of a select
element's options, you can use it for the whole select.

F.

- Original Message - 
From: "Udaya Allu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 11, 2003 5:17 PM
Subject: problem in javascript for select enabled/disabled by checkbox in a
list with in logic iterate


Hi All,
Please help me on
select enabled/disabled by checkbox in a list with in logic iterate
I am not able to pass the index for disableing select box basing on check
box enale/disable
please look at  the code part
onclick="this.form.subscriptions['<%=index
%>'].selectedWalletItemId.disabled=this.checked?false:true;"
in the following code.
I tried it different ways ...but no success.
Other wise also if  I want to use simple onclick=" sumbit()", to do
something action class and refresh,
I do not know how to pass the index or other parameters through
Any amount of help is really appreciated as this is code in production.
Thank you
-Udaya Allu



Select Credit Card


">

   - 
/






 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]