Hi all,
In my form I added a html's section and an iframe inside.
This is my code.
<iframe id="frame1" class="frame1" src="" width="100%" height="420px"> This browser does not support PDFs. Please contact your Administrator. </iframe>
The source is managed by javascript
var source = "http://localhost/Forms/PDFAttachment/file.pdf" ; $('.frame1').remove(); $('#q23').append("<iframe src='"+source+"' width=100% height=400px name='frame1' id='frame1'class='frame1'></iframe>");
And it's working.
My bug is about the save to repository.
If my source (in javascript) is a constant, my form is saved.
var source = "http://localhost/Forms/PDFAttachment/file.pdf" ;
But if my source is a variable, I have the error LFF4112-PdfNetworkError and my form is not saved to repository.
var file = $("#q26 input").val(); var source = "http://localhost/Forms/PDFAttachment/" + file ;
Is it a bug or did I do something wrong?
Thanks in advance.
Regards