Bug? - Open URL does not work in HTML5 web preview
tenrdrmer
Member, Sous Chef, Senior Sous-Chef Posts: 9,934
As the title says. Is this by default or not? I would be nice to link directly to our AppStore versions from inside the Game.
Comments
I open the question to the community, from an iframe what's better than window.open("url") for signaling openURL on click?
- Safari hides your pop up blocker. Go to the Safari tab and disable "Block Pop Up Windows"
Cheers
Do you want us to redirect out of the game experience and go straight to the link location instead? Globally / per browser?
This is an opportunity to engage a problem and help out vs [removed by better judgment]
It has a link in the game 'also play coma' on the bottom right of the menu. This opens up a new browser window in safari with the pop up blocker activated.
Dunno if that helps?
But yes, I think a link being clicked should redirect out of the game and open a new window/tab. Most of the links in these games are going to be ones that direct the player to buy the full version on itunes.
I added an iframe with the GameSalad site in it. Scroll down to the bottom and click the cookbook link. Opens in a new tab with no apparent issues. Hopefully you guys can find something there to make it work. Again. I have no idea why it works just know it does. And yes I have not changed any popup settings.
Thanks
Aaron
Cheers
So did the iFrame with GameSalad.com on my site help you guys get any ideas.
Anyway, I'm confused... is the concern that OpenURL could be used to trigger a lot of spam links... as the user doesn't even need to click on the link for a page to open?
Ideally, the links should all open in a new tab/window as that won't interrupt the game. Yet, spammers could use that to trigger hundreds of windows opening. Yet... you could just go in and delete their account. Basically... it's community monitoring vs. developer features.
The export to HTML 5 solves this problem. I think GameSalad is limiting the potential of the software by trying to enter the realm of content creation. If that's what you really want to do, then you become responsible for maintaining that content.
OpenURL in HTML 5 should open a new page. (That's what I think anyway)
Add a limiter, so it can't be auto-fired... like a warning or a time-delay if two links are fired quickly.
To help police the community, there should be report links... and maybe a warning on new games from developers that are less than 30 days active.
I am a real web developer, but I don't understand the issue
iFrame breaks page layout on the iPhone browser. People might not care about that, as they should just buy the app version of the game... and YouTube HTML 5 works with iFrame embedding.
==============
...and for those that want to follow along...
http://www.w3schools.com/jsref/met_win_open.asp
...and that's why I don't understand the question. The target can be specified, so that links open in the same frame, same page or new window. Is that the issue... is this being blocked?
What's been used now? _blank?
I'm new to HTML 5... so regular hyperlinks can't be assigned to HTML 5 elements?
What about spawning links in another iFrame? If you're going to go ugly... go all the way. WordPress uses iFrame in Divs in the admin section. It's quite nice looking actually. That would solve the problem of keeping the game on the page. Ofcourse, you'd be stuck in a 480x320 window. HA... or is there a way to breakout of the frame and still stay on the page? (I doubt it.)
These are just crazy ideas. I still frown against iFrames.
Actually... the iFrame would work... and fight the spam problem. When the OpenURL behavior is used, an iFrame within the iFrame (Inception) is spawned. It asks... do you want to leave the game? If you click yes, it opens the link in a new window. The link - a regular hyperlink hidden in an OK button - is dynamically generated based on a post method from the GameSalad game. The game is paused while the inception iFrame is active.
Ugly... but it would work.