The issue is fixed by upgrading ExtJS to version 4.0 and above. Its a known bug in ExtJS 3. Also pls not this is not working only in IE and working well in Firefox and chrome.
Embedded pdfobject not displayed while switching tabs
-
15-07-2023 - |
Question
We are using pdfobject to embed the pdf to the browser. We have multiple tabs in the web application.
Issue :
- Open the pdf in one tab
- Keep the focus on the pdf form.
- Switch to some other tab.
- Come back to same tab again
- Now the pdf disappears.
Code:
<script type='text/javascript'>
function embedPDF(){
var myPDF = new PDFObject({
url: '<%=formURL%>'
}).embed();
}
window.onload = embedPDF;
</script>
Any help on this?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow