Connecting Tech Pros Worldwide Help | Site Map

Urgent form help required please

 
LinkBack Thread Tools Search this Thread
  #1  
Old May 16th, 2007, 12:05 PM
David
Guest
 
Posts: n/a
Default Urgent form help required please

Hi,

I have an asp page for a product which has a tabbed section on it.
Each of the tabbed sections displays different data for the product -
1 database field under each tab.

I can write Plain/HTML text into the fields and the HTML will display
correctly on the page as if it was written normally in the body of the
page, rather than comming from a database field.

1 of these fields has a form written into it (crazy huh !) , a product
specific configurator.
All I want is for one of the check boxes to be disabled when the tab
opens or when the form loads.

I have tried putting onload into the body tag, but this does not work
as the form is not displayed at that moment, only when a specific tab
is selected.

I have the code to enable/disable the checkbox based on another
checkbox working fine, but when the form loads initially, the checkbox
is always enabled which needs to be disabled.

I hope there is some light for this one.

Thanks in advance

David


  #2  
Old May 16th, 2007, 12:25 PM
ASM
Guest
 
Posts: n/a
Default Re: Urgent form help required please

David a écrit :
Quote:
Hi,
>
All I want is for one of the check boxes to be disabled when the tab
opens or when the form loads.
Quote:
I have the code to enable/disable the checkbox based on another
checkbox working fine, but when the form loads initially, the checkbox
is always enabled which needs to be disabled.
<body onload="document.myForm.truc.disabled=false" ... >
<form name="myForm" onsubmit="this.truc.disabled=true;" ... >
<input name="truc" type=checkbox disabled ... >



about the tabs loading : of what are you speaking ?
- what is your tabs ?
- how something loads in them ?

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
  #3  
Old May 16th, 2007, 01:35 PM
David
Guest
 
Posts: n/a
Default Re: Urgent form help required please

On 16 May, 13:20, ASM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
Quote:
David a écrit :
>
Quote:
Hi,
>
Quote:
All I want is for one of the check boxes to be disabled when the tab
opens or when the form loads.
I have the code to enable/disable the checkbox based on another
checkbox working fine, but when the form loads initially, the checkbox
is always enabled which needs to be disabled.
>
<body onload="document.myForm.truc.disabled=false" ... >
<form name="myForm" onsubmit="this.truc.disabled=true;" ... >
<input name="truc" type=checkbox disabled ... >
>
about the tabs loading : of what are you speaking ?
- what is your tabs ?
- how something loads in them ?
>
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
---------------------------------------

Thank you Stephane,

I just needed to add 'Disabled' next to the checkbox code .... DOH !




 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.