Closed ishehata closed 7 years ago
Try to write simple HTML with javascript
to test it
ok i tried it now, didn't work either, this error showed up in the console:
ReferenceError: jsPrintSetup
and here is my html code
<html>
<body>
<h4>Hello World</h4>
<script type="text/javascript">
jsPrintSetup.print();
</script>
</body>
</html>
and by the way, i have tried my original code on linux, it works fine.
i have found something weird,
when i go to firefox's addons page "from the browser menu" and open console, i can use jsPrintSetup, but in any webpage the console just reports that jsPrintSetup is undefined.
Do you have some other add-ons which can block jsPrintSetup? I have tested on Mac OS Yosemite 10.10 following example and works.
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<h4>Hello World</h4>
<script type="text/javascript">
alert(jsPrintSetup);
</script>
</body>
</html>
Produce following:
i have only other two extension,
i don't think any of those would block jsPrintSetup, is there is a way to debug this and see what's going on ?
Are you sure that add-on is installed correctly? What is displayed in list of installed add-ons?
so i did a clean install with only jsPrintSetup installed and it works just fine, i have no clue why it didn't work before, maybe another plugin caused this behaviour, thanks anyway.
I was trying to get jsPrintSetup to work on my laptop (macbook Pro), and i have latest stable version of Firefox.
I installed the jsprintsetup addon, restarted firefox (many times), but when i try to access jsPrintSetup from the console, it says it is undefined, i have tried the plugin on a virtual machine that have ubuntu installed and it worked fine, so i assume the problem only happens on mac os x.