clicking title bar fires onBlur in Opera - opera

I am closing a popup window at 'onBlur' defined for 'BODY' of an ASP webpage, so when a user clicks outside the popup the popup closes. I want the popup to be moveable around the screen and it works for all browsers but Opera.
In Opera the 'onBlur' event is fired when clicking the titlebar of the popup - this seems weird for me, as the titlebar is a part of the popup window, right?
What can I do about it?

Perhaps close the popup from the parent window's onfocus instead?
I can confirm the problem based on this test:
javascript:void(window.open('data:text/html,window.onblur=window.close', '', 'width=100,height=100'));
Perhaps you could report a bug on https://bugs.opera.com/wizard/ ?

Related

How to bring popup to foreground?

I have a dynpro which creates a popup ALV (using a dialog container). A button on the popup will display another popup in the same way. My problem is that the last popup goes into the background, the selection going back to the first popup. Is there any way to fix/control this?

Is there way to close popup when swiping between tabs

I have a popup menu in one tab which not close automatically between swiping from tab to tab. Clicking outside of the popup window closing it, but the swipe is not detected as click so the popup stays on the screen as long as I click outside of it.
Have Googled this issue for a couple hours now with no results.
Can you give me any glue how handle this problem? I want that popup close when swipe, but don't know how.
I added id="somethinghere" for the tab, and for the popup menu element I added attach="somethinghere". Now it is attached to one tab and not following to other tabs, but it is not still closing. But this is better than nothing.

Issue with parallax/smooth-scolling and mouse wheel scrolling of Bootstrap modal popup windows

I am having issue with parallax/smooth-scolling and mouse wheel scrolling of Bootstrap modal popup windows.
The Bootstrap modal popup appears when user clicks "Learn More" button.
The modal popup window have the scrollbar. The issue is that user is not able to scroll using mouse wheel because that event is intercepted by parallax/smooth-scolling script.
I am not able to insert code here because the amount of code is too big.
The issue can be reproduced on this website.
Is it possible to solve this issue with adding custom javascript to the website?
I think the issue stems from adding parallax-3d to the body tag which is adding an onscroll event listener to your popups. I can see this from inspecting the events for the popup elements in developer tools.
I would suggest adding parallax-3d to main-container.
<div class="main-container parallax-3d">
Edit: Ok, so the parallax-3d library adds for all elements in the body, irrespective of placement.
I just removed the scroll events for the modals and it works.
Try this to remove scroll events.
$('.foundry_modal').unbind('scroll');

How do I detect when modal title bar is done blinking with WndProc?

I have a VB.net MDI app that contains a modal window (normal window shown as modal). I have a custom title bar button that disappears if the user clicks outside the modal area.
Normally, clicking off a modal will cause the system to beep and then flash the title bar of the modal window.
I want to know how to detect when the flashing is complete (using WndProc if possible) so I can redraw the custom button.
Anyone know how this could be done? Thanks!
It's been a while, but I believe your window should be receiving a WM_NCPAINT message when the frame needs to repaint.
It turns out that I had the WndProc(m) line in the wrong spot.

model window shows up behind the iPhones status bar

When opening a modal window, if the windows navBarHidden property is set to true, opening it the first time is fine. After open another model window within it and ,by clicking 'Back' navButton and reopening it, the modal window shows up behind the iPhones status bar at the top (where the signal, clock etc is) It seems good on Android.
Any help appreciated!!
-gangaraju
Maybe add a listener to the focus event to the first modal window and hide it when it's called.
var win = Ti.UI.currentWindow;
win.addEventListener('focus', function(e){ win.navBarHidden = true;});