Hello,
We have a requirement that when a user click a button to signify he
wants to edit a certain area, everything else on the browser screen but
that area will be disabled. In effect, it's analogous to a modal dialog
box, the difference being the "dialog box" in this case is within the
screen itself, not a separate popup one like a modal dialog box. It's
just a certain area of the screen that becomes enabled when the user
clicks the "Edit" button.
Of course the browser itself is not disabled, so the user can still
type another address and click Go, or click the back button, etc. But
within the page, while editing, the user can't do anything. It'll be
fantastic if we can have a visual indication for this, e.g.: the rest
of the screen gets blurred or something.
Is there a way to achieve this with JavaScript?
Thanks!
Ray 9 4745
Ray wrote:
Hello,
We have a requirement that when a user click a button to signify he
wants to edit a certain area, everything else on the browser screen but
that area will be disabled. In effect, it's analogous to a modal dialog
box, the difference being the "dialog box" in this case is within the
screen itself, not a separate popup one like a modal dialog box. It's
just a certain area of the screen that becomes enabled when the user
clicks the "Edit" button.
Set the other inputs to readonly.
--
Ian Collins.
Ian Collins wrote:
We have a requirement that when a user click a button to signify he
wants to edit a certain area, everything else on the browser screen but
that area will be disabled. In effect, it's analogous to a modal dialog
box, the difference being the "dialog box" in this case is within the
screen itself, not a separate popup one like a modal dialog box. It's
just a certain area of the screen that becomes enabled when the user
clicks the "Edit" button.
Set the other inputs to readonly.
OK, obviously this is the obvious one, but it won't work for buttons
and other elements. Basically we want something like a modal dialog but
without the popup effect. Any ideas?
>
--
Ian Collins.
Ray wrote:
Ian Collins wrote:
>>>We have a requirement that when a user click a button to signify he wants to edit a certain area, everything else on the browser screen but that area will be disabled. In effect, it's analogous to a modal dialog box, the difference being the "dialog box" in this case is within the screen itself, not a separate popup one like a modal dialog box. It's just a certain area of the screen that becomes enabled when the user clicks the "Edit" button. Set the other inputs to readonly.
OK, obviously this is the obvious one, but it won't work for buttons
and other elements. Basically we want something like a modal dialog but
without the popup effect. Any ideas?
Use the disabled attribute?
--
Ian Collins.
Ray a écrit :
>
OK, obviously this is the obvious one, but it won't work for buttons
and other elements. Basically we want something like a modal dialog but
without the popup effect. Any ideas?
<button onclick="swithe r('modalDiag'); ">help</button>
<div id="modalDiag" style="visibili ty:hidden">
<pblah : <input ... >
<pblah : <input ... >
<pblah : <input ... >
<p><button onclick="swithe r('modalDiag'); ">Cancel</button>
<button onclick="valid( );swither('moda lDiag');">OK</button>
</div>
function switcher(divId) {
divId = document.getEle mentById(divId) .style;
divId.visibilit y = divId.visibilit y=='hidden'? 'visible' : 'hidden';
}
See also :
subModal: http://www.subimage.com/dhtml/subModal/
TinyBox: http://alexei.417.ro/node/4
ModalBox: http://okonet.ru/projects/modalbox/
With a bit of Ajax : http://jquery.com/demo/thickbox/
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Ian Collins wrote:
OK, obviously this is the obvious one, but it won't work for buttons
and other elements. Basically we want something like a modal dialog but
without the popup effect. Any ideas?
Use the disabled attribute?
Hmmm, no :) But thanks for replying :)
>
--
Ian Collins.
ASM wrote:
<button onclick="swithe r('modalDiag'); ">help</button>
<div id="modalDiag" style="visibili ty:hidden">
<pblah : <input ... >
<pblah : <input ... >
<pblah : <input ... >
<p><button onclick="swithe r('modalDiag'); ">Cancel</button>
<button onclick="valid( );swither('moda lDiag');">OK</button>
</div>
function switcher(divId) {
divId = document.getEle mentById(divId) .style;
divId.visibilit y = divId.visibilit y=='hidden'? 'visible' : 'hidden';
}
See also :
subModal: http://www.subimage.com/dhtml/subModal/
TinyBox: http://alexei.417.ro/node/4
ModalBox: http://okonet.ru/projects/modalbox/
With a bit of Ajax : http://jquery.com/demo/thickbox/
THIS is what I'm looking for. Many thanks, Stephane!
>
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Ray wrote:
ASM wrote:
><button onclick="swithe r('modalDiag'); ">help</button>
<div id="modalDiag" style="visibili ty:hidden"> <pblah : <input ... > <pblah : <input ... > <pblah : <input ... > <p><button onclick="swithe r('modalDiag'); ">Cancel</button> <button onclick="valid( );swither('moda lDiag');">OK</button> </div>
function switcher(divId) { divId = document.getEle mentById(divId) .style; divId.visibilit y = divId.visibilit y=='hidden'? 'visible' : 'hidden'; } See also : subModal: http://www.subimage.com/dhtml/subModal/ TinyBox: http://alexei.417.ro/node/4 ModalBox: http://okonet.ru/projects/modalbox/ With a bit of Ajax : http://jquery.com/demo/thickbox/
THIS is what I'm looking for. Many thanks, Stephane!
But that won't be modal!
Try http://www.jackslocum.com/blog/index.php
Use the BasicDialog widget which can be set to modal.
Click the "DOWNLOADS" link to see an example of a modal BasicDialog.
TheBagbournes wrote:
But that won't be modal!
Try http://www.jackslocum.com/blog/index.php
Use the BasicDialog widget which can be set to modal.
Click the "DOWNLOADS" link to see an example of a modal BasicDialog.
Great site! Thanks!
Ray
Ray wrote:
Hello,
We have a requirement that when a user click a button to signify he
wants to edit a certain area, everything else on the browser screen but
that area will be disabled. In effect, it's analogous to a modal dialog
box, the difference being the "dialog box" in this case is within the
screen itself, not a separate popup one like a modal dialog box. It's
just a certain area of the screen that becomes enabled when the user
clicks the "Edit" button.
Of course the browser itself is not disabled, so the user can still
type another address and click Go, or click the back button, etc. But
within the page, while editing, the user can't do anything. It'll be
fantastic if we can have a visual indication for this, e.g.: the rest
of the screen gets blurred or something.
Is there a way to achieve this with JavaScript?
Thanks!
Ray
raise the z-index of the active element to ~100
document.getEle mentById('activ eDiv').style.zI ndex=100;
activate a division with a z-index of ~50 or so. absolutely position
the division at 0px top, 0px left and stretch this division to be equal
to the offsetHeight and offsetWidth of body. If desired you can shade
the division with filter and opacity to let the user know that the page
proper has been disabled. (This is how Digg display's their on-site
embedded videos).
offsetHeight and offsetWidth are relatively new properties so if you
have to deal with older browsers you might want to find alternatives in
finding the width and height of the current page (I'm sure there's a faq
somewhere or another).
-- http://www.hunlock.com -- Musings in Javascript, CSS.
$FA This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: KS |
last post by:
Im trying to prevent the user from clicking any other links on my page when
the user have selected/clicked a href once.
Sometimes it takes a while before the next page loads so some user will try
clicking other links or the same link.
I can prevent this when i use buttons by calling onclick and in a javascript
getElementsByTagName("input") and then check the type to be type of "button"
or "submit" which i then disable. It works.
This also...
|
by: kj |
last post by:
Is there any way to disable text selection in a web page (or at
least render it invisible to the user)?
If there is a way to control how selected text and its background
are rendered, then the desired effect could be achieved by setting
these parameters to match those of regular text. In this way, even
if text was selected, the user would not see that it was.
(I thought that this is something that may be controlled through
css, but I...
|
by: Greg |
last post by:
I am developing an application where I need to secure a
workstation for periods of time. I can use BlockInput to
stop users from task switching or messing with the
keyboard, but I would like to disable Ctrl-Alt-Delete.
It seems there seems to be only one real way I know
about: Write a replacement Gina Driver to eat the
keyboard events I dont want. Does anyone have a good
template for this in Visual Basic .Net?
|
by: Dw70 |
last post by:
I need write simple program with work in background
and have only one function when it is run F1 I disable
and when I pres for example ctrl+k it (program is terminate)
maybe somebody have similar program or part of code I don't know
how get signal F1 pressing and neutralize it?
|
by: richardkreidl |
last post by:
How to disable the security popup message from Outlook2003?
I get the following message when a rule trys to fire off an executable
script:
A program is try to access data from Outlook that may include address
book information. Do you want to allow this?
How do I disable it???
By the research I found on disabling it, it's almost impossible unless
| |
by: MLH |
last post by:
If I give someone a runtime app,
they can open the database
window by pressing the F-11
key. How to prevent???
|
by: FAQ server |
last post by:
-----------------------------------------------------------------------
FAQ Topic - How do I disable the right mouse button?
-----------------------------------------------------------------------
The oncontextmenu intrinsic event is the only safe and reliable
method. Of the other approaches often presented, most depend on
an alert box interrupting the process and rarely work. Note that
oncontextmenu is a non-standard event and is not...
|
by: tshad |
last post by:
I have a page that has about 20 textboxes and dropdowns that I want to
disable until a button is pushed.
I don't want them to be hidden which I can do with <div visible=false
runat=serveror <asp:panel visible=false runat=server>. I want them to see
the whole page but just disable all the controls on the bottom 3/4 of the
page.
I could do it by just doing each control one at a time but then if I add or
take a control off the page I...
|
by: Cirene |
last post by:
I have an ajax enabled asp.net webform.
I coded a button that does a bunch of stuff. It could take up to 30 seconds
to process.
How can I disable everything on the screen immediately when the person
clicks the button and enable everything after the processing is completed?
Thanks!
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |