I am using IE only for this control I am building. I have created a
rich text box that the user can popup (using dhtml and a div tag) to
allow the user to enter wiziwig html text. However, when the popup is
displayed, I would like to pervent the user from clicking outside of
the popup. I can get it to partially work by putting an onclick event
in the body tag and setting focus back to an element of the popup.
However, buttons are still activated before this body tag event is
called.
I thought maybe I could cover the entire page with a div and put the
rich text box div on top of it. Then the on click event for the page
covering div could put focus back on the Rich Text Box Div.
Then I thought that I must be tring to reinvent the wheel and that
someone must have a good solution for this!
Thanks for your help
Earl 2 1842
Earl T wrote: I am using IE only for this control I am building. I have created a rich text box that the user can popup (using dhtml and a div tag) to allow the user to enter wiziwig html text. However, when the popup is displayed, I would like to pervent the user from clicking outside of the popup. I can get it to partially work by putting an onclick event in the body tag and setting focus back to an element of the popup. However, buttons are still activated before this body tag event is called.
I've seen the whole-page div used as an event blocker (even did it
myself to implement a wait cursor...) but if it's IE only, and you're
emulating a "dialog like behavior" why not use the real thing?
Say it with me slowly, MSDN is my friend. http://msdn.microsoft.com/workshop/a...odaldialog.asp
--
Alex Fitzpatrick https://sourceforge.net/projects/jseditor/
Thanks Alex, That nails it!
Alex Fitzpatrick <al************ *********@video tron.nospam.ca> wrote in message news:<To******* **************@ wagner.videotro n.net>... Earl T wrote: I am using IE only for this control I am building. I have created a rich text box that the user can popup (using dhtml and a div tag) to allow the user to enter wiziwig html text. However, when the popup is displayed, I would like to pervent the user from clicking outside of the popup. I can get it to partially work by putting an onclick event in the body tag and setting focus back to an element of the popup. However, buttons are still activated before this body tag event is called.
I've seen the whole-page div used as an event blocker (even did it myself to implement a wait cursor...) but if it's IE only, and you're emulating a "dialog like behavior" why not use the real thing?
Say it with me slowly, MSDN is my friend.
http://msdn.microsoft.com/workshop/a...odaldialog.asp This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jun |
last post by:
How can I catch onMouseDown event on a frame/frameset?
When I right mouse click at the border area of a frame, I can still
get the Window's standard popup menu.
How can I catch the mouse click to pop up my own menu when use click at the
border?
thanks
|
by: lauren quantrell |
last post by:
I have a command button on a continuous subform and I want the user to
click it to open a small popup form that opens in the position of the
mouse (which is the same as the position of the command button on each
record of the continuous subform.)
I'm hoping someone can tell me how to do this.
Thanks,
lq
|
by: Tyron |
last post by:
I need to know if the Left Button of the Mouse is clicked in the
WM_NCMOUSEMOVE Notification but this Message doesnt
contain the Mouse Button States as WM_MOUSEMOVE does.
So how can I get them?
Thanks
|
by: S³awomir Speth |
last post by:
hi all
How trap mouse click outside my control - like close popup menu
|
by: 6tc1 |
last post by:
Hi all, I've got a UserControl that contains a few PictureBox objects.
If I click on outside of the Picture in the UserControl, the scrolling
with the mouse button works - however, no amount of clicking on the
PictureBox objects will get that scrolling working. However, after I
click on outside of the PictureBox object, then click as many times as
I like on the PictureBox the scrolling with the mouse wheel continues
to work.
I found...
| |
by: Pucca |
last post by:
How can I tell a mouse right clicks over a listview item that's in a
container panel. I only want to display a popup menu if the user right click
the mouse over an item on the Listview. I don't not want to display this
menu if a node selected on the listview but user right click over the empty
space of the panel that contain the listview.
The problem here is when I use the Listview's Click Event, I don't have ways
to verify if the...
|
by: stoprsi |
last post by:
RSI Warrior 4.0 is an award-winning ergonomics software package helping
thousands of computer users prevent and recover from computer-related
Repetitive Strain Injuries such as carpal tunnel, tendonitis and
deQuervain's syndromes.
Features include:
* Intelligent strain monitoring system.
|
by: atn2002 |
last post by:
How can I track the mouse coordinates outside the active window? No
one can tell me its not possible because Google Spreadsheets and
EditGrid both do it. When you drag down to select cells these
spreadsheet programs are capable of properly selecting the cells based
on where the mouse is, even though the mouse is way outside the
browser. I haven't been able to find any info on it or figure it out
myself. How is this possible?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: 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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: 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: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |