Welcome Guest, Not a member yet? Register   Sign In
Using JQuery Pagainated Lib for CI - Weird Issue
#1

[eluser]smatakajr[/eluser]
Hey I’m using a JQuery Page Lib for CI.. Located here


http://tohin.wordpress.com/2008/08/12/co...agination/

It works great for the paginated part but..
but I’m having a problem and hope someone could help.

Basicly I have a.click function that is embeded within the data that
pageinates.

the a.click function works on the first paginated page
with no issues but if i were to click the second page when the
data loads.. the a.click function does not work no more..

it kind of looks like the returned ajax table with the embeded
a.click function does not see the jQuery is loaded. Did you ever
have this type of problem?

Thanks For Your Help
Rick
#2

[eluser]abada[/eluser]
" the a.click function works on the first paginated page
with no issues but if i were to click the second page when the
data loads.. the a.click function does not work no more.. "

me to facing this problems !!

any body help us ?
#3

[eluser]Wil Wazka[/eluser]
Well... I've no time at this moment to look into the ajax-code, but if you may go into the code, and providing you are working with the 1.3+ version of jQuery, you may change the code which binds the 'on-click' event for the new 'live' event binder feature.
What I mean is that something like:
Code:
$('a.page-navigate').click(function(){ /*whatever actions to request the desired page */ })
should be changed to something like:
Code:
$('a.page-navigate').live('click', function(){ /*whatever actions to request the desired page */ })

Not sure as I didn't tried this for myself, but that must be pretty much what you need.

Have a nice coding.
#4

[eluser]smatakajr[/eluser]
Hi this is from my iPhone so it may be messy but I'm not sure about live
Function as I didn't try it but I fixed the problem by taking the onclick code
Out of the external js file and put it in the header of the template
That fixed it.. Not sure best solution but worked.. I seen weird problems
Like this in external js files

Rick




Theme © iAndrew 2016 - Forum software by © MyBB