Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Disabling control (button)


Message #1 by "Don Woo" <dwoo@r...> on Fri, 5 Jan 2001 14:52:19 -0000
Correct. Netscape doesn't support this.
Either don't show the button by hiding its parent element, or set a flag 
which you check for when running code attached to the click event of the 
button. Then based on the flag perform certain actions. This is not really 
disabling it, but it's as close as it gets in NN.

HtH

Imar


At 02:52 PM 1/5/2001 +0000, you wrote:
>I am having trouble disabling a button via client-side script.
>I've tried the following code:
>           document.formname.controlname.disabled = true;
>
>Which works fine under IE, but does nothing under Netscape.



--- 
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS?  Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development, 
Web Development, Networking & Communications, and Hardware & Systems.  
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
---
You are currently subscribed to javascript as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-javascript-$subst('Recip.MemberIDChar')@p2p.wrox.com

  Return to Index