Connecting Tech Pros Worldwide Help | Site Map

Urgent form help required please

  #1  
Old May 16th, 2007, 01:05 PM
David
Guest
 
Posts: n/a
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, 01:25 PM
ASM
Guest
 
Posts: n/a

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, 02:35 PM
David
Guest
 
Posts: n/a

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 !




Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent help required ASAP Please!!! robert10 answers 13 November 30th, 2006 03:01 AM
Validation Of ASP Form HELP URGENT SpiderSwamy answers 1 April 6th, 2006 09:25 AM
Urgent help required: The object is currently in use elsewhere JJ answers 4 March 14th, 2006 01:45 PM
URGENT HELP REQUIRED John answers 3 November 13th, 2005 04:59 AM