1. main function : jSignature
http://www.unbolt.net/jSignature/
not work with phonegap ( original citation from
If you are certain that your audience will be limited to a specific browser engine (you deploy through an embedded browser widget, using something like PhoneGap) you can roll up your sleeves and yank out the part #1.
2. plugin childbrowser
https://github.com/purplecabbage/phonegap-plugins/tree/master/Android/ChildBrowser
possible open an internal address ?
3. get an internal address , say : file:///yourapp/www/xxx.html
//load ChildBrowser Plugin
cb = ChildBrowser.install();
//Call Loading screen every time the Childbrowser closes
if(cb != null)
cb.onClose = function(){loadLoader(true)};
//loading screen for ChildBrowser (put a blank.html in your www
folder)
fu nction loadLoader(){
var strPath = window.location.href;
var path = strPath.substr(0,strPath.lastIndexOf('/')) + 'blank.html';
cb.showWebPage(encodeURI(path));
}
//loading a web page in ChildBrowser
function loadChildBrowser(isInternal, URL) {
if(isInternal){
var strPath = window.location.href;
var path = strPath.substr(0,strPath.lastIndexOf('/')) + URL;
cb.showWebPage(encodeURI(path));
}
else{
cb.showWebPage(URL);
}
}
4. disable the interactive toobar
浙公网安备 33010602011771号