Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 8th, 2003, 01:01 PM
Authorized User
 
Join Date: Sep 2003
Location: , , Mexico.
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
Reply With Quote
  #2 (permalink)  
Old November 9th, 2003, 01:04 PM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
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
Reply With Quote
  #3 (permalink)  
Old November 10th, 2003, 01:41 AM
Authorized User
 
Join Date: Sep 2003
Location: Trivandrum, Kerala, India.
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.

Reply With Quote
  #4 (permalink)  
Old November 11th, 2003, 12:29 AM
Authorized User
 
Join Date: Jun 2003
Location: Lexington, KY, USA.
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...)
Reply With Quote
  #5 (permalink)  
Old November 11th, 2003, 04:50 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
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
Reply With Quote
  #6 (permalink)  
Old November 11th, 2003, 02:20 PM
Authorized User
 
Join Date: Sep 2003
Location: , , Mexico.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.