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

Posted by Patrick Flaherty on 03/13/06 22:56

In article <1142281486.128350.236640@i39g2000cwa.googlegroups.com>, NC says...
>
>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
>

Thanx for your responses,

I'm actually asking on behalf of two other programmers here (at my company) who
are supposed to be more experienced Web/PHP programmers than myself.

Or rather one knows PHP/Xoops quite well. The other one PHP but not Xoops. The
first guy is out at the moment and the second (who has to actually do the work)
keeps insisting that this (disabling a button) must be a Xoops object property.

I guess it's a Submit button in the sense that we want the button initially
greyed out. Then once the user has filled in the required fields the button
will detect this and become Active.

And then clicking it will launch a perl script (that will reach over to another
platform [VMS] and generate a bunch of text data files).

My idea of Web programming (probaby primitive) is html and javascript (or ASPs).
Since, however, the platform we're given is all PHP/Xoops this considerably
muddies the waters for me.

pat

 

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

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