Diddy: LaunchBrowser (way to get round blockers?)
Monkey Forums/Monkey Programming/Diddy: LaunchBrowser (way to get round blockers?)
| ||
Hi, so I'm using LaunchBrowser from Diddy but Firefox shows that popup blocker thing at the top. I've seen other people get round this before. Any ideas how to do it? Thx. |
| ||
Doesn't this defeat the whole purpose of a popup blocker? |
| ||
It does defeat the purpose of a popup blocker but it doesn't stop people trying to defeat the purpose of a popup blocker. :) Like Mr Grey Game Making Machine I myself have seen when no popup blocker anywhere on tinternet can stop a popup. |
| ||
Maybe popup blocker appears because Launch Browser is trying to open a new tab instead of redirecting to a new site entirely? |
| ||
If you can point us to a site which does it, we'll have a quick look see at their javascript ;) The issue with LaunchBrowser for HTML5 is that it uses window.open(url) and FF blocks that action if it isnt within an on click event (ie the user wanted it!). |
| ||
@GA, you can test that by altering the native diddy.html5.js file:diddy.launchBrowser=function(address) { window.open(address,'_self'); } <edit> Yep this works... </edit> <edit2> Changed LaunchBrowser to accept a new parameter: openNewWindow which defaults to True, set this to False if you want to open the new URL on the current page (for HTML5 and Flash only). </edit2> |
| ||
really? Cool!! I shall edit my game forthwith. Thanks. |
| ||
Or maybe I'll wait for you to update with that tweak. How often do you put a new version online? |
| ||
The code has already been committed to the SVN r325: http://code.google.com/p/diddy/source/detail?r=325 So you can get it now :) |
| ||
Ah cool. How often do you add to an official build for people who don't grab updates via SVN? |
| ||
The zip file is for lazy people! Go install Tortoise svn! ;) Normally we update the zip: * When we think about it... * When we can be bothered to do it... * When people ask for it ;) r325.zip is ready to be downloaded :P http://code.google.com/p/diddy/downloads/detail?name=diddy-r325.zip&can=2&q=#makechanges |
| ||
lol, I just realized I could use your GoggleCode-Svn instead of downloading the zip, I had missed that! |
| ||
We do have a wiki page showing how to install Diddy which explains how to download Diddy either from the zip or SVN: http://code.google.com/p/diddy/wiki/HowToInstall :) |
| ||
The zip file is for lazy people! Go install Tortoise svn! ;) I prefer the term "efficient" ;-p r325.zip is ready to be downloaded :P You sir, are too kind! Many thanks! |
| ||
I prefer the svn myself, quick check out, jobs a good'un! :) Dabz |