Intranet Journal   Earthweb  
Events Jobs Premium Services Media Kit Network Map E-mail Offers Vendor Solutions Webcasts

   Intranet Journal Subjects
Search Earthweb

Privacy Policy



internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

internet commerce
Be a Commerce Partner
















 

[ Home | Discussion Forum | How Do I... | Lotus Notes Intranets | Microsoft SharePoint | Products | Shopping  ]

free news!


Re: disable button


[ Follow Ups ] [ Post Followup ] [ Intranet eXchange ] [ IDM Home ]


Posted by Kurt Preston on July 10, 2002 at 10:0:56:

In Reply to: disable button posted by Hitesh on July 9, 2002 at 17:56:28:

One way to accomplish this is to hide the button instead of disabling it. You can setup someting similar to the following HTML in your form (assuming you have the layout in a table, but it doesn't need to be):

<tr><td><input type=button onclick=playTrick() name=Submit><span id=MySpan style="display: none">Submitting</span></td></tr>

Then you can play a trick by adding javascript code to the onclick event function similar to the following:

function playTrick() {
window.event.srcElement.style.display = "none";
document.all.item("MySpan").style.display = "";
}

This hides the button and effectively replaces it with a text message saying the form is submitting.


Follow Ups:



Post a Followup

Name:     
E-Mail:   
Subject:  
Message:

Optional Link URL: 
Link Title:        

      




[ Follow Ups ] [ Post Followup ] [ Intranet eXchange ] [ IDM Home ]


email this page

Tutorials
and more at:
Intranet Journal's Tutorials
Intranet Journal Favorites

Creating a PHP-Based Content Management System

The Spyware Guide

Introduction to Microsoft SharePoint Portal

Intranet Journal
Part of the EarthWeb Network

Managing Editor
Intranet Journal

Tom Dunlap

EarthWeb Home Page
Jupitermedia Home Page

Media Kit




The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers