![]() Window.open(window.gameURL,'test','left=20,top=20,width=1024,height=640,toolbar=0,resizable=0,location=0') Įxample response body: window. Url: baseurl + '/index.php?option=com_pbbgs&format=raw&getinfo=goingame', Also, using async:false is bad - in FF it is known to block the whole browser. Select the Site Settings button and tap on the Pop-ups and redirects option. In exchange, Start Chrome on your iPad or iPhone. You can, of course, allow pop-ups when you need to. When a pop-up is blocked, the words Pop-up blocked will appear in the address bar. Doing them in ajax callback will not do the trick. Google Chrome Open the browser, navigate the kebab menu, and click on Settings. When it comes to Chrome’s settings, you can stop pop-ups from automatically appearing on your device’s screen. I could move the server-side check to the page that gets opened in the popup, but I'd like to do it before opening the popup, if possible. Yes, popups should be a direct result of a user action. 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. ![]() ![]() ![]() 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.Įver 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |