Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Python Objective-C JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.settings
Classes
assets
documentation
example
hooks
platform
ti-webview-plus.xcodeproj
.gitignore
.project
CHANGELOG.txt
JpKing3WebviewPlus_Prefix.pch
LICENSE
LICENSE.txt
README.md
build.py
jp.king3.webview.plus-iphone-1.0.zip
manifest
module.xcconfig
timodule.xml
titanium.xcconfig

README.md

Handle own url schemas;

var wb = require('jp.king3.webview.plus').createWebViewPlus({
  url: "http://your-site.com/"
});

wb.schemaHandles = ['platform://']; // your own schema
wb.addEventListener('platform://', function(e){
  alert(e.url); // alert 'platform://google.co.jp/' without changing url;
  setTimeout(function(){ Ti.Platform.openURL(e.url.replace(/^platform/, 'http')); }, 3000);
});
<html>
<body>
  <a href="platform://google.co.jp/">click me!</a>
</body>
</html>
Something went wrong with that request. Please try again.