Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'prototype' of undefined AND $(...).iviewer is not a function #101

Open
jomaendle opened this issue Jan 10, 2018 · 1 comment

Comments

@jomaendle
Copy link

Hello,

I'm trying to transform an existing website into a mobile-conform one. I'm using the JSF framework Primefaces 6.1. After I added the following line to my index file, the image viewer doesn't work anymore:

<f:view renderKitId="PRIMEFACES_MOBILE"/>

I received the fe following error messages in Chrome Dev tools:

jquery.iviewer.js:43 Uncaught TypeError: Cannot read property 'prototype' of undefined
at jquery.iviewer.js:43
at jquery.iviewer.js:1297
(anonymous) @ jquery.iviewer.js:43
(anonymous) @ jquery.iviewer.js:1297

And:

Access_Mobile.xhtml:68 Uncaught TypeError: $(...).iviewer is not a function
at HTMLDocument. (Access_Mobile.xhtml:68)
at fire (jquery-1.8.3.js:974)
at Object.fireWith [as resolveWith] (jquery-1.8.3.js:1084)
at Function.ready (jquery-1.8.3.js:406)
at HTMLDocument.DOMContentLoaded (jquery-1.8.3.js:83)

Does anyone know how to fix that?

Thanks,
Mohammas

@can3p
Copy link
Collaborator

can3p commented Jan 12, 2018

Hi!

I've never heard about this framework and can only guess, but looking at the line of error I suppose that you don't have jquery ui library included on the page.

Please note, that I do not support this plugin for several years already and it may not work with current version jquery UI (if at all). If you manage to fix it, please open pull request and I'll merge the change.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants