You are here: Re: Disable (grey out) a button. « PHP Programming Language « IT news, forums, messages
Re: Disable (grey out) a button.

Posted by NC on 03/13/06 22:24

Patrick Flaherty wrote:
>
> Experienced programmer but new to PHP. Moreover I'm to use PHP
> with Xoops on top (this adds object orientation?).
>
> I don't seem to find a xoops Usenet group?

There's a support forum:

http://www.xoops.org/modules/newbb/

But I see that you already posted there...

> Whatever the case (and presumably a Xoops property): how does one
> disable (grey-out) a button?

The easiest way to disable a button is not to show it in the first
place. This is HTML, not desktop programming; a button is either a
submit button or a reset button. There is no such thing as a "do
nothing" button (unless it is defined outside a form). You can
override the button's default behavior using JavaScript's onClick event
hadler, but if the client has JavaScript disabled, the default behavior
will still occur.

Cheers,
NC

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация