agrublev / vanitytools

Automatically exported from code.google.com/p/vanitytools
0 stars 0 forks source link

jPaginate not working and giving an error using chrome #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set up a <ul id="content">
2. add <li>
3. open the html file in chrome

What is the expected output? What do you see instead?
The content of the ul doesn't show because there is a syntax error at line 
jPaginate line 96 that says:

Uncaught TypeError: Cannot call method 'show' of undefined
showPagejPaginate.js:96
$.fn.jPaginatejPaginate.js:86
e.extend.eachjquery-1.7.1.min.js:5
e.fn.e.eachjquery-1.7.1.min.js:5
$.fn.jPaginatejPaginate.js:40
(anonymous function)index.html:20
f.Callbacks.njquery-1.7.1.min.js:5
f.Callbacks.o.fireWithjquery-1.7.1.min.js:5
e.extend.readyjquery-1.7.1.min.js:5
c.addEventListener.B

What version of the product are you using? On what operating system?
I'm using version 0.3 with jquery 1.7.1

Please provide any additional information below.
The weird part is that I open up your demo in chrome and it works, then I copy 
and paste the source code from your demo into an HTML page then run that test 
HTML page in my chrome browser and it doesn't work!

Original issue reported on code.google.com by roderick...@gmail.com on 6 Mar 2012 at 2:58

GoogleCodeExporter commented 9 years ago
Also just copied your source HTML from jquerypaginationexample.html and paste 
it on a local HTML file and ran it in chrome getting the same error. I kept the 
same references to the jquery.js and jpaginagion.js used in your example. This 
is really odd because your example page works but if I use the same mark up in 
another page it doesn't! :(

Original comment by roderick...@gmail.com on 6 Mar 2012 at 3:32

GoogleCodeExporter commented 9 years ago
No issues with jPagination - the problem is Chrome. It doesn't allow you to set 
a cookie locally. You can solve this by running it from command line like this:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome 
--enable-file-cookies

Original comment by roderick...@gmail.com on 6 Mar 2012 at 6:19

GoogleCodeExporter commented 9 years ago
I got the same problem in Firefox. 

Original comment by srinivas...@gmail.com on 13 Dec 2012 at 6:08

GoogleCodeExporter commented 9 years ago
The cookie is the problem. Rename it from "current" to "jPaginate_cookie" in 
the js file and your problem should be resolved :)

Original comment by laurenti...@gmail.com on 14 Aug 2013 at 7:19