Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

embeded pdfs work in chrome but not firefox

  • 1 отговор
  • 1 има този проблем
  • 12 изгледи
  • Последен отговор от cor-el

more options

in my html code I use <embed src="EnglishFiles/<?php echo $Fname; ?>#toolbar=0&navpanes=0&view=fit" type="application/pdf" width="100%" height="800px"> and it works great in Chrome, and it used to work in Firefox, but something changed in Firefox, maybe that most recent update? That code still works in Chrome but not in FF 70.0.1(64) What happens when I click on the link in FF is absolutely nothing, no response of any kind. In Chrome the pdf loads in the subwindow as expected. I have restarted in safe mode, same results, manually disabled all plugins, same results.

in my html code I use <embed src="EnglishFiles/<?php echo $Fname; ?>#toolbar=0&navpanes=0&view=fit" type="application/pdf" width="100%" height="800px" /> and it works great in Chrome, and it used to work in Firefox, but something changed in Firefox, maybe that most recent update? That code still works in Chrome but not in FF 70.0.1(64) What happens when I click on the link in FF is absolutely nothing, no response of any kind. In Chrome the pdf loads in the subwindow as expected. I have restarted in safe mode, same results, manually disabled all plugins, same results.

Всички отговори (1)

more options

What code gets generated and is send by the server after the PHP code has been processed ?

Is the file send by the server as "application/pdf" ?

Any messages in the Web Console related to this issue?

Did you check the embed container this in the Inspector?

Note that width::100% only works properly when all parent containers have a width set, otherwise 100% of null is null and you won't see anything.

Can you post a link to a publicly accessible page (i.e. no authentication or signing on required)?