Hi All,
I know that one can disable the page by putting "disabled" into the
<body....> tag, but can this be done from a java script.
What I want to achieve is: once the user brings up a "child" window, the
child disables the parent until the user finished and closes the child, then
the parent is enabled again...
TIA,
Tom 4 4088
Tom Szabo wrote: Hi All,
I know that one can disable the page by putting "disabled" into the <body....> tag, but can this be done from a java script.
Works for IE, but not for Firefox and I suspect not for any similar
browser. I didn't test setting it using JavaScript. What I want to achieve is: once the user brings up a "child" window, the child disables the parent until the user finished and closes the child, then the parent is enabled again...
Effectively you want a modal dialog. You have to be careful with the
user interface - how will you determine when the user "finishes" with
the child? What if they just close the child? What if the child is
closed before it finishes opening, so any onunload you may have to
re-enable the parent have doesn't get activated? Does the parent stay
disabled?
If the parent page really does depend on the outcome of the child page
then it is likely much better to use traditional navigation.
Cheers, Rob.
Thanks Rob,
I understand the implication of this game, but I am implementing a lookup
form and this is the way it has to work.
The application mainly for internal use, so I don't really care if not 100%
compliant
Thanks,
Tom
"RobG" <rg***@iinet.net.auau> wrote in message
news:Ge*****************@news.optus.net.au... Tom Szabo wrote: Hi All,
I know that one can disable the page by putting "disabled" into the <body....> tag, but can this be done from a java script.
Works for IE, but not for Firefox and I suspect not for any similar browser. I didn't test setting it using JavaScript.
What I want to achieve is: once the user brings up a "child" window, the child disables the parent until the user finished and closes the child,
then the parent is enabled again...
Effectively you want a modal dialog. You have to be careful with the user interface - how will you determine when the user "finishes" with the child? What if they just close the child? What if the child is closed before it finishes opening, so any onunload you may have to re-enable the parent have doesn't get activated? Does the parent stay disabled?
If the parent page really does depend on the outcome of the child page then it is likely much better to use traditional navigation.
Cheers, Rob.
Tom Szabo wrote: Thanks Rob,
I understand the implication of this game, but I am implementing a lookup form and this is the way it has to work.
The application mainly for internal use, so I don't really care if not 100% compliant
I had a play with:
var b = document.getElementsByTagName('body');
b[0].setAttribute('disabled','true');
which would seem the correct way to do it according to Microsoft's
documentation, however it only partially works - buttons etc. are
greyed out and don't work the first time, however clicking them a
couple of times brings them back to life. Even using <body disabled>
does not fully disable buttons, you can't put content into fields but
the buttons still work (scripts still run, submit still submits,
reset resets, etc.).
Note that none of the above had any effect on non-IE browsers.
So I would guess you are out of luck, unless you want to go through all
the controls on the page and disable them manually using JavaScript...
Cheers, Rob.
"RobG" <rg***@iinet.net.auau> wrote in message
news:IX*****************@news.optus.net.au... Tom Szabo wrote: Thanks Rob,
I understand the implication of this game, but I am implementing a
lookup form and this is the way it has to work.
The application mainly for internal use, so I don't really care if not
100% compliant
I had a play with:
var b = document.getElementsByTagName('body'); b[0].setAttribute('disabled','true');
which would seem the correct way to do it according to Microsoft's documentation, however it only partially works - buttons etc. are greyed out and don't work the first time, however clicking them a couple of times brings them back to life. Even using <body disabled> does not fully disable buttons, you can't put content into fields but the buttons still work (scripts still run, submit still submits, reset resets, etc.).
Note that none of the above had any effect on non-IE browsers.
So I would guess you are out of luck, unless you want to go through all the controls on the page and disable them manually using JavaScript...
Cheers, Rob.
Actually the one-by-one is not a bad suggestion...:-)
I dont mind programming, have been doing it for many years....but I need to
get this ..
and thanks for the above,
Regards,
Tom This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: rathnesh |
last post by:
when using a web application which includes taking an asp
page then going to another asp page and coming back to
first page ...some times connection to iis gets terminated
and page canot be...
|
by: iMedia User |
last post by:
I have a site where I want to use the Web form validators in two separate
forms on a single page. One form allows existing users to log in while the
second one allows new users to register. The...
|
by: Poppy |
last post by:
I have a .net text field and a .net button on a form.
When the user leaves the text field server side VB.net code fires to check
if anything has been entered and if it has, enables the button.
...
|
by: ani |
last post by:
I have two submit buttons in my form which need to
validate two different controls on the page . How do I
validate portions of the asp.net page. The two submit
buttons should validate their...
|
by: Alan Silver |
last post by:
Hello,
I have just discovered that if you turn off Javascript, then cross-page
posting does not work. The postback goes to the originating page, which
basically means that nothing happens.
I...
| |
by: monomaniac21 |
last post by:
hi all
i want to use hyperlinks to 'load' content by changing the display of
div tags. the problem i have is that unless i specify a href the anchor
does not change the mouse pointer on hover...
|
by: vj |
last post by:
How i can populate all fileds dynamically in jsp page based on contents
found in xml file?
I have written jsp servlets and java class file.
i transferred automatic data from jsp to servlet then to...
|
by: laryten |
last post by:
Hi,
Is there a way to update the same web page instead of getting a new
page each time we click the submit button? The simplest thing to do is
to delete the current page (or go back to the...
|
by: smerf |
last post by:
Using javascript, is there a way to trap an external page inside a frame?
I've seen scripts to break out of frames, but nothing to keep a page trapped
in a frame.
|
by: justplain.kzn |
last post by:
Hi,
I have a table with dynamic html that contains drop down select lists
and readonly text boxes. Dynamic calculations are done on change of a
value in one of the drop down select lists.
...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |