blur

JavaScript: How to simulate a click to make the current input lose its focus

I have an input which at some points happens to have the focus. If the user click in the "background" of the page, the input loses its focus. I was trying to simulate the click on the background with the following code, but this doesn't work (you will notice that the input still has the focus). Any suggestion on how to write code that si...

Full Page Blur in CSS

How can I blur a whole page using CSS? Other elements such as images are allowed. ...

Using Stacks in ImageMagick to Selectively Blur Part of the Image

I'm trying to annotate some text onto a base image with a dropshadow. I don't like the results I get from using the -shadow option, so I'm putting down the text, blurring it, then putting down the text again in white, a few pixels offset from the shadow. Here's the command I'm using: convert base_image.jpg \ -font TT0590M_.ttf \...

Blurring fisheye effect on a vertical text menu

I'm searching for existing scripts that will animate a vertical text menu by blurring text and zooming it according to the mouse pointer. I'm trying to accomplish these actions: 1. OS X-like movement on mouse hover that can 'zoom' the text in and out 2. In an un-focused state, the text would be blurred 3. When a user moved their point...

Vista glass border effect in Java Swing/AWT

I'm trying to create an overlay with a Vista Aero Glass -like background in place of a normal window. Part of my answer seems to be here, but I'm wondering how to get a blur effect in Swing/AWT. This looks like a start: public BufferedImage processImage(BufferedImage image) { float[] blurMatrix = { 1.0f / 9.0f, 1.0f / 9.0f, 1.0f / 9...

jQuery + IE Blur Firing on Mouseout

ok, so I have a popup search box that is shown when the user mouses over a hyperlink, when the user mouses out of the search box, the box disappears. this all works fine. When the textbox has focus, the search box is supposed to stay visible until the textbox loses focus, at which time the box will hide if the cursor is not over the b...

Javascript blur() command in IE8 on Vista doesnt work

I have a project that pops up a window with a message for the user. It is displayed for 10 seconds and then is sent to the background using the javascript "self.blur()" command. I dont want to close it as it has information that the user might need to see agian. This currently works for IE7/IE8/FF2/FF3 on windows XP, but on Vista it doe...

Emulate Windows 7 "Connect To" Dialog

In Windows 7, the Connect To dialog opens over the taskbar tray. When you go to any other application or the desktop, the window disappears. I would like to be able to do this in C#. Right now, I am capturing the Leaving event of the form, but this doesn't work in every case (i.e. switching from my application directly to the desktop)...

OpenGL - Copy texture from screen smaller than that screen.

I'm trying to capture the screen to a texture with a lower resolution than the screen itself (to render back onto the screen and create a blur/bloom effect), and it doesn't work quite well. I understand mipmaps can be used to do this, but I just can't get the correct sequence of commands to work. My current code: width=1024; height=102...

jQuery Blur Fires Before href

I am trying to use an Ajax search\suggest box. I use jQuery to handle the textbox losing focus. However, when I click on a link in the suggestion list jQuery fires the blur event and the link is not followed. Here is the jQuery code: $(document).ready(function() { $('#lstxt').click(function() { this.value = ''; }); ...

Keep focus on blur event

I am using jquery to keep the focus on a text box when you click on a specific div. It works well in Internet Explorer but not in Firefox. Any suggestions? var clickedDiv = false; $('input').blur(function() { if (clickedDiv) { $('input').focus(); } }); $('div').mousedown(function() { clickedDiv = true; }) .mouseup(function() {...

How to implement a box or gaussian blur on iPhone

I want to be able to take an image and blur it relatively quickly (say in 0.1 sec). Image size would almost never be larger than 256 x 256 px. Do I have to loop thru every pixel and average them with neighbors or is there a higher-level way that I could do this? PS: I am aware that multiple box blurs can approximate a gaussian blur. ...

Why is my UIImageView blurred?

I have a really weird problem with UIImageView. I have an image (an RGB png) 45x45 pixels which I add to the view. I can see that image is blurred after added to the view. Here is the same image in the simulator (left) and in Xcode (right): I have custom UIImageView class with this initWithImage code: - (id) initWithImage:(UIImage*) ...

How to blur the div element?

I have a dropdown menu inside a DIV. I want the dropdown to be hide when user click anywhere else. $('div').blur(function() { $(this).hide(); } is not working. I know .blur works only with <a> but in this case what is the simplest solution? ...

Blur Event Does not get Fired in IE7 and IE6

I have a dropdown Menu where in a div is clicked and List is shown. On focus out I am supposed to hide the list(i.e. when the user clicks or focuses on some other element and not on mouse out) Hence my obvious choice was 'onblur' . Now the javascript seems to work in firefox but not in IE thats because my div has a sub div with a hei...

How to hide jQuery UI Slider on blur?

I have an image that opens the jQuery UI Slider div on click and allows users to set a value by dragging the handle. What I'm trying to do now is hide that handle when the user clicks anywhere else on the page, but the regular .blur event doesn't seem to work. $("#openPriceToSliderGif").click(function(){ $("#slider-vertical").sh...

jquery validate bind blur event

Hi, I'm using Jquery validate plugin.I need to validate two fields. I have some problems with the following code.I'm checking whether the given element valid and if it is valid I make an ajax call to check for few values and hide or show elements based on that. The problem is when the blur event happens, the validation is done. But th...

Using JQuery to bind "focus" and "blur" functions for "window", doesn't work in IE

I need to use JQuery like the follwoing: var focusFlag = 1; jQuery(window).bind("focus", function(event) { focusFlag = 1; }); jQuery(window).bind("blur", function(event) { focusFlag = 0; }); Does anyone know why this doesn't work for IE? ...

How to operate on a certain element when blur?

When focusing,we can do something like: $('#target').focus(function(){$(this)..}); Because "this" is just the one that's focused($(this) == $('#target')). But can't do the same for "blur",because $(this) != $('#target'). How to do it the right way? NOTE: in my application,I can't assign an id to the target,and '#target' here is jus...

Issues with jQuery .blur() and .focus() events

I have a form with a few input fields. When a user clicks on an input field, a hidden div appears with some selections for that field, they can then choose an option, and this set as the field value. Currently, the way the div gets hidden is when the user selects an option. This works fine, but what if a user does not want to select...