PDF Preview Sharepoint Online
Hey,
first a big thanks to the developers of this Programm, makes my work alot more enjoyable.
So i tried to insert a PDF preview of the curent file from the libary that im editing in my form. Enterring the code in HTML works fine.
But i need to title of the curent dokument, so i create the object via JS.
This inserts the right Code, but it seems to does so after the Page is renderd. I tried several things, but i can't seem to trigger any kind of reload of the object.
Thanks in advance.
Best wishes from Germany.
Nico
first a big thanks to the developers of this Programm, makes my work alot more enjoyable.
So i tried to insert a PDF preview of the curent file from the libary that im editing in my form. Enterring the code in HTML works fine.
Code: Select all
<object id="pdf_obj" data="staticurl/pdftitle.pdf"></object>'
Code: Select all
var pdftitle = fd.field('FileLeafRef').value();
var pdfhtml = '<object id="pdf_obj" data="libaryurl' + pdftitle + '.pdf"></object>';
document.getElementById('pdfpreview').innerHTML = pdfhtml;
Thanks in advance.
Best wishes from Germany.
Nico
-
- Information
-
Who is online
Users browsing this forum: No registered users and 8 guests