Welcome Guest, Not a member yet? Register   Sign In
jquery not working on pagination
#1

[eluser]Unknown[/eluser]
Hi,

Im using codeigniter with smarty as the template engine

loving the code btw great job!

anyway i noticed that most of my jquery does not work on pagination pages


eg It works on index but not on index/p/10 (rerouted pagination page)

it started with a twitter ticker but also my prettyphoto plugin

just wanted to know if this was a bug or maybe something on my end

everything works on the normal page ie. index but not on the pagination page

firefox error console shows nothing
#2

[eluser]Aken[/eluser]
It's an HTML or Javascript issue. Maybe it's not loading properly? Maybe your pagination output is affecting the HTML structure, or the selectors that jQuery uses?
#3

[eluser]phpxpert[/eluser]
I think you are missing the jQuery javascript file on the pagination pages. I guess you are using relative path to load the jquery file. Try to use the absolute path to the jquery file or load jquery from google API like

Code:
https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js

All the best




Theme © iAndrew 2016 - Forum software by © MyBB