1
Answer

PDF Viewer Is not working in firefox

Nilesh Patel

Nilesh Patel

6y
1.1k
1
Hello,
 
I have code for pdf viewer using object element in Jquey. it is working fine in chrome browser but when open pdf viewer in firefox some pc it is not working and I have also verify version details both are same so how I resolved it.
 
If you have found same kind of issue let me know.
 
here mention code of PDF viewer open.
 
$("#dialogPDF").dialog({
modal: true,
title: dialogtitle,
width: 800,
height: 600,
buttons: {
Close: function () {
$(this).dialog('close');
}
        },
open: function () {
var object = "<object data=\"{FileName}#toolbar=0\" id=\"embeddedPdf\" type=\"application/pdf\" width=\"775px\" height=\"550px\" ></object>";
object = object.replace(/{FileName}/g, "App_File/" + fileName);
$("#dialogPDF").html(object);
      }
});
 

Attachment: Screen_Shot.rar

Answers (1)