You are here: Re: PHP & Javascript insanity « PHP Programming Language « IT news, forums, messages
Re: PHP & Javascript insanity

Posted by Jerry Stuckle on 04/13/06 15:35

fletch wrote:
> Here's how I disable a button on submit
>
> <input type="submit" onclick="PleaseWait(this)" />
>
> the javascript is
>
> function PleaseWait(button)
> {
> button.value='PLEASE WAIT';
> button.style.color='red';
> button.onclick= function() {
> alert('Please Wait');
> return false;
> }
> return true;
> }
>
> We also do server side checking for duplicate form posts on all forms
> received.
>

You can't unless you send the page back to the client. Javascript is
client-side, while PHP is server-side.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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