question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JsFiddle Demos do not work

See original GitHub issue

Example on http://jsfiddle.net/pdfjs/9engc9mw/ provided in interactive examples does not work. PDFJS is not defined error is presented

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
timvandermeijcommented, Mar 5, 2018

/cc @yurydelendik for updating the JSFiddle examples with the new code.

0reactions
Rob--Wcommented, Mar 10, 2018

@yurydelendik The jsfiddle example imports PDF.js using window['pdfjs-dist/build/pdf']. That is very unidiomatic. There is also a global symbol called pdfjsDistBuildPdf, which would be more natural, but still the name is a bit verbose. Can you replace the former with the latter, at least?

While writing documentation (#9528), I came across the fact that there is no short and obvious name for to access the library. Before submitting a documentation update, I have opened a new ticket to request a better name at #9545.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - jsfiddle - Tutorial demo not working - Stack Overflow
Giving your jsFiddle a quick look, you haven't imported jQuery to it and also your first selector is wrong. · it's not working...
Read more >
JSFiddle demo not working in Kendo UI for jQuery - Telerik
Hello, I have a working example that works locally, but when I deploy it up to JSFiddle, this doesn't work correctly. I was...
Read more >
Problems Making JSONP Calls in JSFiddle - Kevin Chisholm
If you are pulling your hair out while trying to demo a JSONP call with JSFiddle, don't bother. It won't work out of...
Read more >
Popular demo - JSFiddle - Code Playground
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
Read more >
Highcharts Annotations Demo - JSFiddle - Code Playground
JavaScript + No-Library (pure JS) Tidy. xxxxxxxxxx. 44. 1. function getOptions() {. 2. var options = { ... forEach(function (annotation) {.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found