Open PDF hosted on the phone with PhoneGap

0

I have several PDFs on my device for the application I'm designing, I tried it with the plugin inAppBrowser and the event window.open but it did not work.

My code now is like this:

<a href="#" window.open('pdf/visitas/Listado_2015_Guias_Zamora.pdf, '_system', 
          'location=yes');> 
Visitas 2016
</a>

Any other proposal?

    
asked by Alberto Méndez 21.04.2017 в 10:21
source

1 answer

0

I have already found a solution to this problem. It was enough to add onClick=" and replace the resource with a link to the web, leaving this way:

    <h3><a href="#" onClick="window.open('http://www.zamora-turismo.com/pdf/visitas/Listado_2017_Guias_Zamora.pdf', '_blank', 'location=yes')"> Guías Zamora. </a></h3>
    
answered by 02.05.2017 в 12:25