Browser "GoToURL" ->

Discussion and feedback on Construct 2

Post » Tue May 13, 2014 2:18 pm

Hi @Ashley

I found one sponsor that requesting that the game is open in and not window.location

"Notice: The games are loaded inside an iframe, so the link must be opened in the top window. If you are using a HTML link, please add the attribute target="_top". When using javascript to open the link, use (and not window.location.href)"

When I looked at the Browser plugin I found out that the plugin codes for GoToURL is this
Acts.prototype.GoToURL = function (url)
if (this.runtime.isCocoonJs)
else if (this.runtime.isEjecta)
else if (this.runtime.isWinJS)
Windows["System"]["Launcher"]["launchUriAsync"](new Windows["Foundation"]["Uri"](url));
else if (!this.is_arcade && !this.runtime.isDomFree)
window.location = url;

Maybe we can add another parameter or option to the function like "top" or "normal" ?

Right now I have to use Browser execute Javascript to solve this problem and I heard that some of the Construct 2 users are rejected or having problem with this Sponsor. Unless they use DOM or Browser execute Javascript.

Hopefully this feature can be added in next release?
Posts: 391
Reputation: 13,033

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 0 guests