Browser Window Minimizes when Links are Clicked

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
rklockner
Forum Newbie
Posts: 22
Joined: Tue Feb 09, 2010 9:56 am

Browser Window Minimizes when Links are Clicked

Post by rklockner »

I have just finished a migration of a client's software to a new server, and a strange bug started occuring.

When a user opens Internet Explorer, They log into the website, and the browser window immediately disappears. It is listed in the application bar at the bottom of the screen, but it is not minimized. The browser has moved behind all other open windows.

When you click on the browser in the application bar at the bottom of the screen, it still acts as though it is the current window. By that I mean that instead of bringing it to the front, it then minimizes, upon clicking a second time, it is now the current window, and I am free to click another link, just to start the process all over again.

From what I can tell, the issue only occurs in Internet Explorer which is the client's preferred browser (I know... try to get him to change, but let's suppose that isn't possible.).

My fix so far has been to open a second tab in Internet Explorer. By having the second tab open (doesn't have to be on a webpage), the issue goes away until I close that tab.

Why is this posted in a JavaScript forum? When I disable Active Scripting from the Tools menu, this bug goes away, but this is not a workable solution either.

Has anyone come across this? I have done some searches, but haven't come up with much. Perhaps it is in how I am searching...

Any help is greatly appreciated!
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Browser Window Minimizes when Links are Clicked

Post by Weirdan »

Is it reproducible on any computer except your client's one?
rklockner
Forum Newbie
Posts: 22
Joined: Tue Feb 09, 2010 9:56 am

Re: Browser Window Minimizes when Links are Clicked

Post by rklockner »

Yes. I have had a number of other users experience it, and it is occurring on my computer as well.
rklockner
Forum Newbie
Posts: 22
Joined: Tue Feb 09, 2010 9:56 am

Re: Browser Window Minimizes when Links are Clicked

Post by rklockner »

I should also note that this only occurs while using my client's software. If you browse away from his site, the issue goes away.
rklockner
Forum Newbie
Posts: 22
Joined: Tue Feb 09, 2010 9:56 am

Re: Browser Window Minimizes when Links are Clicked

Post by rklockner »

OK, here we go... Maybe I need to reclassify this in jQuery/AJAX, but if I remove

<script src="http://ajax.googleapis.com/ajax/libs/jq ... "></script>

the page does not jump to the back, but obviously my jQuery stops working.

It seems there is a bug in there, but that would be a nightmare to go through. Any thoughts?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Browser Window Minimizes when Links are Clicked

Post by Weirdan »

This test is not really indicative because for a site that relies on jQuery removing it is often pretty much the same as turning Javascript off.

For IE9 (you didn't specify the version in your post btw) you could try 'No addons' mode (Start / All Programs / Accessories / System Tools / Internet Explorer (No Addons) ). If that works while the version with addons fails this would indicate that one of your addons is the culprit.
rklockner
Forum Newbie
Posts: 22
Joined: Tue Feb 09, 2010 9:56 am

Re: Browser Window Minimizes when Links are Clicked

Post by rklockner »

Just so everyone can rest easy tonight...

The problem had to do with a .blur() called within a jQuery function (by removing jQuery it just hid the problem). It appears to be that if .blur() is called on a non-Object it has funky results...
Post Reply