 |
| 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
|
|
|
|

January 21st, 2005, 09:25 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
<input type="radio" name="oneret" value="R" checked onClick="enaridt();displayOpenJaw('oneret'); this.form.retdt.disabled='false'; this.form.retdt.style.background='FFFFFF';">
Return
<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
|
|

January 21st, 2005, 09:29 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
this.form.retdt.disabled='true'.Dont give 'true' in single quotes.
Set it as this.form.retdt.disabled=true.
|
|

January 21st, 2005, 09:32 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanks
|
|

January 21st, 2005, 09:37 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

January 21st, 2005, 09:38 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i dont want one that is depressed, if you know what i mean....
|
|

January 21st, 2005, 09:47 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Do you mean the property Type="Text".You can;t change it.
|
|

January 21st, 2005, 09:49 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
If you mean the look and feel of the textbox you can change it using style attribute.
|
|

January 21st, 2005, 09:54 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i mean how do i get a different TYPE of text box?
|
|
 |