Nilesh Patel

Nilesh Patel

  • NA
  • 304
  • 7.8k

PDF Viewer Is not working in firefox

Sep 14 2018 8:11 AM
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)