superRaytin / paginationjs

A jQuery plugin to provide simple yet fully customisable pagination.
http://pagination.js.org
MIT License
912 stars 659 forks source link

TypeError: $(...).pagination is not a function #14

Closed GeyangYu closed 8 years ago

GeyangYu commented 8 years ago

Hey, I tried to put the $(...).pagination within a function, but it will report the error: TypeError: $(...).pagination is not a function. If I put it just within the , then it can work. I also tried the demo you give, but still get the error. Could anyone please help me? Thanks a lot.

superRaytin commented 8 years ago

Could you please provide a re-produciable demo: http://codepen.io/superRaytin/pen/RRoZBz

GeyangYu commented 8 years ago

Thanks for the reply. I just figured it out.

neutt22 commented 6 years ago

Im still having this issue, even the codepen provided didn't work for me.

superRaytin commented 6 years ago

@neutt22 try again: https://codepen.io/superRaytin/pen/RRoZBz

neutt22 commented 6 years ago

@superRaytin here you go:

image

superRaytin commented 6 years ago

@neutt22 I replaced the 'http' resources with 'https', i think it can works now.

neutt22 commented 6 years ago

ahh yes, thanks! working now :)

neutt22 commented 6 years ago

sadly on my local project this issue isn't still resolved: image

I copy exactly the code in the JS section

superRaytin commented 6 years ago

@neutt22 please show me your code, i'll reply you later

neutt22 commented 6 years ago

Thanks!

here it is: image

superRaytin commented 6 years ago

@neutt22 uh, you should define a template method to render the data

neutt22 commented 6 years ago

Will that solve the error container.pagination is not a function?

superRaytin commented 6 years ago

Did you have a git repo contains those code? I'd like to get the context information.