Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Closed Thread
Old 11-06-2008, 02:00 PM jQuery paging
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
I know there is probably a plugin in that does this but this is a learning experience for me so I want to do it on my own.

The page numbers work on a fresh view of the page. http://www.shady-lane.com/roster/

But when I click one of the alphabet links (only ones working at this time) the paging doesn't work. When you click page 2 it resets the roster to the orginal view of the fresh page, even though that data isn't there.

Am I missing something?

Here is my jQuery for this:

Code:
// JavaScript Document
var $j = jQuery.noConflict();
     
$j(document).ready(function(){
 // On Start							
 $j(".page").addClass("hidden");
 $j("#pages").removeClass("hidden").addClass("visible");
 $j("#page1").removeClass("hidden").addClass("visible");
 // View Pages
 $j(".pageNum").click(function(e)
 {
  e.preventDefault();
  $j(".page").removeClass("visible").addClass("hidden");
  var temp = $j(this).text();
  $j("#page" + temp).addClass("visible");
 });
 // Main Tabs							
 $j(".tab").click(function(e){		
  e.preventDefault();
  $j("#roster").empty();
  var temp = $j(this).text();
  $j("#roster").load("roster.php", {a:1,i:temp},function()
  {														 
   $j(".page").addClass("hidden");
   $j("#pages").removeClass("hidden").addClass("visible");
   $j("#page1").removeClass("hidden").addClass("visible");
  });
 });
});
The code in question is in red.
AliKat is offline
View Public Profile Visit AliKat's homepage!
 
 
Register now for full access!
Old 11-08-2008, 11:53 PM Re: jQuery paging
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
chagned the way it works so this question is moot now. Thanks anyway.
AliKat is offline
View Public Profile Visit AliKat's homepage!
 
Closed Thread     « Reply to jQuery paging
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09892 seconds with 12 queries