Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 21st, 2005, 09:25 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default text box be enabled and disabled

The Radio Buttons:

<td colspan="3">
           <input type="radio" name="oneret" value="O" onClick="disaridt();displayOpenJaw('oneret'); this.form.retdt.disabled='true'; this.form.retdt.style.background='ECECEC';">
           One way &nbsp;
           <input type="radio" name="oneret" value="R" checked onClick="enaridt();displayOpenJaw('oneret'); this.form.retdt.disabled='false'; this.form.retdt.style.background='FFFFFF';">
           Return &nbsp;
           <input name="openjaw" type="radio" value="J" onclick="displayOpenJaw('openjaw'); this.form.retdt.disabled='false'; this.form.retdt.style.background='FFFFFF';">
           Open-Jaw
</td>

+++++++++++++++++++++++++++++++++++++++++++++++

The text box:

<input type="text" class="input" tabindex="5" name="retdt" maxlength="5" size="13" onfocus="removeYear('retdt')" onblur="return checkdate('/T2AgIBE/html/calendar.html','document.fexp.retdt.value','docume nt.fexp.rettm.value','ret',document.fexp.crdate.va lue,document.fexp.seldate.value,'retdt')" onChange="javascript:this.value=this.value.toUpper Case();">

Should the text box be enabled and disabled correctly with this code?

Picco


__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old January 21st, 2005, 09:29 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

this.form.retdt.disabled='true'.Dont give 'true' in single quotes.
Set it as this.form.retdt.disabled=true.

 
Old January 21st, 2005, 09:32 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

thanks


 
Old January 21st, 2005, 09:37 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

how do i change the TYPE of text box? i am looking for the same type of text box as is on this page at the top 'search p2p for'

thanks,

Picco

 
Old January 21st, 2005, 09:38 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

i dont want one that is depressed, if you know what i mean....

 
Old January 21st, 2005, 09:47 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Do you mean the property Type="Text".You can;t change it.

 
Old January 21st, 2005, 09:49 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

If you mean the look and feel of the textbox you can change it using style attribute.
 
Old January 21st, 2005, 09:54 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

i mean how do i get a different TYPE of text box?

 
Old January 21st, 2005, 10:00 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

EG. number one: this page at the top.
EG number two: http://www.sitescripts.com/ASP.NET/C...L_TextBox.html

know what i mean?>






Similar Threads
Thread Thread Starter Forum Replies Last Post
Trigger Enabled or Disabled? smshinde Oracle 2 March 1st, 2007 06:02 AM
check if element is disabled or enabled crmpicco Javascript How-To 1 November 10th, 2005 07:21 PM
Applying CSS to a disabled List Box in ASP.net imsuneeta ASP.NET 1.0 and 1.1 Basics 1 May 2nd, 2005 08:56 PM
"New Full-text Catalog" Disabled jdebelen SQL Server 2000 3 February 24th, 2005 06:53 AM
Set font for DataGrid text enabled = false humour General .NET 3 August 26th, 2004 12:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.