Opening a Webbrowser in zTree - ztree

In a stage we want to add the option to open a website (URL) for subjects during a running experiment. How can this be done?
Ideally a button opens an URL when clicked.

Related

inAppBrowser Ios hide location URL

I have a scenario where I have to load an external URL within an App. I also want to come back to the App from the external browser.
`var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes');`
I tried this and this is giving a DONE button, which brings me back to the App. However this shows the URL of the external page. I dont want the user to see the external URL. Is there any solution to this? Please help!

Open a website in new window and detect that redirect to another url

In iOS, android I can show a webview and when it redirect to an url, I can detect it.
(like login via facebook, google ..vv..)
I want to do the same thing with cocos2d-html5 or cocos2d-js. (for web-browser)
I just try below code but nothing happened
window.open('http://webdesign.about.com/',
'open_window',
'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, width=640, height=480, left=0, top=0');
How can I tell web-browser open new tab for me?
====== UPDATE ======
My browser stopped all popups. my bad.
But I don't how to observe a Window object in javascript to know when it goes to new url.
I saw all thing about window at http://www.w3schools.com/jsref/obj_window.asp but I don't see something like that :(

Invoking Safari on iOS without opening a new website

The situation is like this:
User opens app from a website using a custom urlscheme
User does stuff in the app
User clicks button in the app to return to the website in Safari.
I have tried opening a new tab containing a javascript:window.close() but this does not work on iOS 6.1.
So my question is: Is there a way to open Safari to view the website the user left from? Either with a working new tab that closes itself or a different route?
When you open the app with your custom url scheme, pass the actual page url as an argument.
mycustomUrlScheme://mydomain.com?objectid=1234&callback_url=encoded_url
In your app, handle the url for the content info and keep the page url to open it afterwards. It will make safari open a new tab. But that should be a good start.
As far as i understand you can do it.
user opens mobile safari for example http://www.example.com
user clicks a link that is appscheme://open and the application become active
user taps a button to open safari for example http://www.example.com?q=test
for the third step you can use [[UIApplication sharedApplication]openURL:url]

How to add a link to start a file download in a Rails Facebook canvas app

In our Rails app that runs in Facebook canvas, we have a workflow where a logged in user can build a document and then download it.
When the file is ready we show a link to it. This is just a Rails action that renders using send_file in dev or head (with proper NGINX config) in production. This part works fine.
In order to have the file start downloading without opening a new browser tab, we had the link target an empty iframe.
This was working, but a while back, presumably due to a security change by Facebook, our link stopped working. The JavaScript errors show:
Refused to display document because display forbidden by X-Frame-Options.
Users can still open the link in a new tab and it will download the file and a quick fix is to make the link open a new browser tab, but that isn't as good of a user experience.
We tried changing the X-Frame-Options in the headers and/or using meta tags, but this is canvas (running in an iframe), so that just stopped those views from displaying.
I also tried this form solution, but it didn't do anything (I could have been doing it wrong).
Is there any way we can build a button or link that will start the file download without opening a new browser tab?
Do you need to set the target at all? With no target set would it not trigger a file download popup in the browser, but leave the current browser window/tab on the same content?

URL scheme to open Videos from a browser on iPad

I can create an link to an iBooks document using the "itms-books://book-name" URL scheme, use that link in an html anchor tag accessible via a browser. When I click the link, it launches iBooks and opens the document.
How can I create a similar link to launch the Videos app to play a specific video in my local library? I've seen discussions about getting an asset URL from within another app, but I need something I can access via html in a browser.
There is videos:// which open the Videos Application, but I yet don't know how to use it. If I ever find something, I will let you know.

Resources