android - How to open file:/// in Phonegap window.open system browser -


i want open file saved in local system example: file:/// in device broswer whe click on anchor link.

i've tried this:

<a href="#" id="examplelink" data-href="file:///mnt/sdcard/documents/third/index.html" class="load-swf">load swf1</a> 

so:

$( '#examplelink' ).on('tap', function() {      var url = $( ).data( 'href' );      navigator.app.loadurl( encodeuri( url ), { openexternal:true });              }); 

but doesn't work...

if try url http://www.google.com.co/ works perfectly.... using file:/// not going well...


Comments

Popular posts from this blog

javascript - CasperJS/PhantomJS failing SSL handshakes on some sites even with --ssl-protocol=any -

codeigniter - Fatal error: Call to undefined function lang() in CI Merchant using CardSave -

python - Received unregistered task using Celery with Django -