popup-blocker

Open new tab without popup blocker after ajax call on user click

坚强是说给别人听的谎言 提交于 2019-11-27 11:27:30
I have a page that enable user to perform image manipulation via HTML5 canvas, on the page, there's a facebook share button for sharing a generated image of the canvas on facebook. When the link is clicked, an ajax request is sent to the server (ASP.NET MVC) to perform the image generation, save the image on the server, then generate a url(that links to the image) that is returned as the ajax response. The returned url is what I want to pass as the parameter for facebook to share. The issue is that popup blocker is blocking facebook share dialog when I call "window.open". Is there any other

How do I prevent Google Chrome from blocking my popup?

冷暖自知 提交于 2019-11-27 07:04:41
On my website there is a button that just used to call a function that calls window.open , however, recently an adjustment was needed to do a server-side check before the popup was opened. Ever since the code was added that does the AJAX call, browsers blocks the popup, that is opened in the success callback of the AJAX call. I read that browsers might block the popup if it's not called by a user click event, so I tried setting the AJAX request to async: false , which solved the problem in Firefox, but Google Chrome still keeps blocking my popup. Is there any way to get around this? I could

How do I prevent Google Chrome from blocking my popup?

妖精的绣舞 提交于 2019-11-26 17:36:51
问题 On my website there is a button that just used to call a function that calls window.open , however, recently an adjustment was needed to do a server-side check before the popup was opened. Ever since the code was added that does the AJAX call, browsers blocks the popup, that is opened in the success callback of the AJAX call. I read that browsers might block the popup if it's not called by a user click event, so I tried setting the AJAX request to async: false , which solved the problem in

chrome Pop-up blocker when to re-check after allowing page

半腔热情 提交于 2019-11-26 17:16:33
问题 I've having app which sometimes open the popup blocker, when the user run the application chrome have some flag in the url box (right side) which tell to the user that the pop-up is blocked ,in this case I give to the user in addition new warning message like "please pay attention the page was blocked please enable it..." My question is when and in which term I need to do this check again ,assume the user allow the new App page if user close and open the browser does he need to enable this

Open new tab without popup blocker after ajax call on user click

∥☆過路亽.° 提交于 2019-11-26 15:35:40
问题 I have a page that enable user to perform image manipulation via HTML5 canvas, on the page, there's a facebook share button for sharing a generated image of the canvas on facebook. When the link is clicked, an ajax request is sent to the server (ASP.NET MVC) to perform the image generation, save the image on the server, then generate a url(that links to the image) that is returned as the ajax response. The returned url is what I want to pass as the parameter for facebook to share. The issue

Bypass popup blocker on window.open when JQuery event.preventDefault() is set

落花浮王杯 提交于 2019-11-26 01:28:38
问题 I want to show a JQuery dialog conditionally on click event of an hyperlink . I have a requirement like on condition1 open a JQuery dialogue and if condition1 is not satisfied, navigate to the page as referenced by \'href\' tag of whose click event is in question. I am able to call a function on link\'s click event. This function now checks the said condition by executing another URL (that executes my Spring controller and returns response). All works perfect with only window.open being

Avoid browser popup blockers

℡╲_俬逩灬. 提交于 2019-11-25 23:31:14
问题 I\'m developing an OAuth authentication flow purely in JavaScript and I want to show the user the \"grant access\" window in a popup, but it gets blocked. How can I prevent pop up windows created by either window.open or window.showModalDialog from being blocked by the different browsers\' pop-up blockers? 回答1: The general rule is that popup blockers will engage if window.open or similar is invoked from javascript that is not invoked by direct user action . That is, you can call window.open