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

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -