Hello,

i'm new to Firefox OS and have ported my first app. The last problem, which is 
left, is how to show a pdf. The app talks to a server and gets a URL of a ready 
rendered PDF. I have tried to show it with a
  window.open([URL])
or a simple 
  <a href="[URL]">PDF</a>

With the Firefox OS Simulator i have problems to test the app. When i use an 
alert or a confirm, the buttons are not clickable and i have to close the app. 
So i'm testing with a Geeksphone Peak.

When i use a simple PDF both ways are working. With the open i have a white 
window, but when i close this, the PDF is shown inside the app in a kind of 
popup window. With the <a href..> it opens in the browser which redirects to 
the pdf viewer. 

But with the real PDF this don't work. I have tried to type the url direkt in 
the Browser, but i get also only a white screen. When i do this in the 
simulator i get the Firefox popup asking for opening or save.

So i'm not sure, is this a problem of the Peak? Or an error in my app? Has 
anyone a best practice for opening a PDF inside an app?

best regards
Horst
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to