Wrox Programmer Forums
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2003, 01:01 PM
Authorized User
 
Join Date: Sep 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to renee_santoscoi
Default disabled popup

hi,
I have an html page, which I need disable meanwhile it is submited. My trouble is: I have a popup where user selects an option, I code with onchange() the submit, and I included this code:

    frmMtRol.submit();
    window.disabled= true;
    document.body.style.cursor = "wait";

but the popup is not disabled, how do I disablethe popup?

thanks

renees
__________________
renees
 
Old November 9th, 2003, 01:04 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You can't disable a whole window. Disable any buttons that you don't want pressed or you could try disabling the form if you have one.


--

Joe
 
Old November 10th, 2003, 01:41 AM
Authorized User
 
Join Date: Sep 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to balakumar1000
Default

Of couse, why do u want to disable it?. After submitting it, you can close the popup using window.close.

Balakumar V.

 
Old November 11th, 2003, 12:29 AM
Authorized User
 
Join Date: Jun 2003
Posts: 46
Thanks: 0
Thanked 1 Time in 1 Post
Default

First, Renee, I don't quite understand what you're doing, so maybe you could clarify.

Second, Joe is right. There is no way to disable the entire page.

Third, I don't think the form has a disabled property.

Fourth, I sure wish a form did have such a property. It would save all of us a lot of work if we want to prevent the user from interacting with the form while something is happening (e.g., a postback)! I have spent considerable time disabling controls on a page, only to find out I missed one. And I've seen other web pages that try to do the same thing, so I'm not alone on this.

-Van
(Old dog learning new tricks...)
 
Old November 11th, 2003, 04:50 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Well in IE the form does have disabled property (5.5+) but I've never used it.

--

Joe
 
Old November 11th, 2003, 02:20 PM
Authorized User
 
Join Date: Sep 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to renee_santoscoi
Default

hi,
well I apreciate your suggestions, I added this to my code:
form.input_name.disabled = true;
I got an excellent result!!
thanks:D


renees





Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripting is disabled in IE or any other browser abhishekkashyap27 C# 2005 2 May 26th, 2008 04:25 AM
Trigger Enabled or Disabled? smshinde Oracle 2 March 1st, 2007 06:02 AM
enablement parameter when using disabled crmpicco Javascript How-To 3 April 13th, 2006 04:01 AM
Disabled icons EricJ VB How-To 0 July 12th, 2005 09:51 AM
Disabled textbox r_ganesh76 ASP.NET 1.0 and 1.1 Professional 4 October 4th, 2004 11:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.