onClick event problems with Internet Explorer 9 - javascript

I am having sporadic issues with fullCalendar and the click hook in Internet Explorer 9 (this is not an issue in FireFox, Chrome or Opera it seems).
The function I have attached to the click hook when a user clicks an event will only trigger if I first launch the developer console in Internet Explorer and refresh the page. I can then close the console again and use the page as normal, but if I return 24 hours later, I will have to repeat this step to be able to use the functionality again.
My Internet Explorer settings appear fine, as this is not a problem with just this one machine, but also with 5 other machines I have tested this on.

sounds like there is a console.log() included but without any code provided we can only take a guess.

Related

Microsoft Edge 12: Page gets refreshed without any action

I have experienced a strange behaviour of microsoft edge 12 .
It refreshes the entire web page whenever an onchange event gets fired.
This happened within my application .Tried a lot to debug and then found it is a bug with Edge 12.
So if u have a drop down with tags and if onchange event is configured, as soon as the user select an option from the drop down, the onchange event gets triggered and then the parent page itself gets refreshed.
Please let me know what is the reason for this.
Easily reproducible on : http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onchange.
Just try the above link on Edge 12 or you can use browserstack incase if you dont have any local copy of the Edge 12.
Please Note: Works fine without any issue on Edge 13.
Thanks
I just had a refresh issue today with edge 14. I deleted all my breakpoints, my watch items and closed all my tabs then reopened Edge and everything worked fine after that.
But sometimes all you can do is reset edge when things are broken.

window.focus() or window.blur doesn't work in modern browsers?

A project I'm working on requires that we create a pop up window and then change focus back to the parent window. Many solutions that seem to have worked in the past seem to not work at all in many new versions of Chrome, Firefox, and Safari and IOS 8 Safari. For example this W3C demo http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_blur does not work in those browsers but does work properly in IE10 and below.
It seems as though browsers might have started deprecating this feature but I've seen no documentation about it. Could anyone point me to an alternative to window.focus() and window.blur() that will work on IOS 8 Safari or at least some documentation about the methods being deprecated?
----- To elaborate a bit more for my colleague ----- Mike LP
The situation is as such:
We have a web application that requires the explicit use of a popup window. Overlays and iframes are an option due to some technical constraints.
While not desirable, it is okay that the newly created popup window receives focus upon opening, but we have a button on the popup that when clicked should return focus to the parent window, while leaving the popup open.
We've been unable to accomplish this using any of the modern browsers, though we do have a solution that works on iOS 7 Safari. Unfortunately even that appears to no longer work on iOS 8.

How to differentiate refresh page and close page function onunload

I need a help with this function onunload.
What I want is to differentiate those events close window and refresh page on Internet
Explorer and Firefox because on Google Chrome work fine.
To explain the issue, when I close a window and refresh a page on Internet Explorer or Firefox the function onunload is called; but in Google Chrome, only when you close windows.
Also I use the event onbeforeunload but the same issue occurs.
So the question is, how can I differentiate those event in Firefox and Internet Explorer?
Is this possible?
I will be grateful with your help or some information about this issue.

Latest Google Chrome stable not firing onhashchange event

I've noticed in the past week or possibly a little more google chrome has stopped firing onhashchange events after the first hashchange has been fired. Firefox + IE 8 and 9 work as expected and chrome did work. Has anybody else noticed this? I can't supply an example but could mock one up if necessary. Im running Google Chrome Version 19.0.1084.46. This also occurs in Google Chrome Frame which is suggesting its the latest update of V8 or something similar.
I've also tried in Chrome Beta V 20.0.1132.17 and it behaves as i'd expect, the same as firefox and IE.
The hash actually changes in the URL bar but nothing happens.

cross-browser Onunload and Onbeforeunload ? (particularly opera 11)

I have a form and I must notice user with alert() on exiting page while there are data in the form that had not been send.
I've read that opera has a lot of problems with this. Opera 11 that is, because I need take into account only last version.
So again, the alert should display on refresh, closing a tab, or closing whole browser.
It would be nice to set event directly to the <form> element that would be launched on anything that leads to destroying this element.
Opera does not yet support onbeforeunload. Opera's onunload support is incomplete - for example, it does not fire when you close a tab, or close Opera. As far as I know, while you can use onunload to show a warning if a user clicks a link to navigate away from a page with an unsaved form, there is no way you can prevent the navigation from happening when the unload event fires.
What I would do here is to listen for the onbeforeunload event, make it work in other browsers and wait for Opera to catch up. Whether it will be in Opera 12 or 13 or 15 I don't know, but when onbeforeunload is implemented it will work like it does in other browsers already.
The Disable Close will not help you yet because Opera does not support window.onbeforeunload at the moment. It will be supported in some future version. For now, Opera 11 doesn't implement it.
onbeforeunload is now supported since Opera 15 !
The JQuery framework is only a condensed Javascript language so it depends entirely on the browser you use, no magic here.

Categories

Resources