News: PHP Video Tutorials Coming Soon! 18.12.08 Around 9PM GMT
Pages: 1 [2]
  Print  
Author Topic: lessson no 6  (Read 143 times)
adeang
Code Baboon
***

Karma: +1/-0
Posts: 102


I'm for about anything!


View Profile WWW
« Reply #15 on: November 15, 2008, 10:52:45 PM »

b/c = because

and this functino

Code:
$(function(){
$("#shopping_list li").quickpaginate({ perpage: 4, showcounter: true, pager : $("#shopping_list_counter") });
});

this is the function from the link you supplied in first post about this. 

try this code tell me what happens

Code:
echo "<script type=\"text/javascript\" src=\"js/jquery-ui-personalized-1.5.2.packed.js\">","</script>";
echo "<script src=\"js/jquery.quickpaginate.packed.js\" type=\"text/javascript\" charset=\"utf-8\">" ,"</script>";
echo "<script type=\"text/javascript\" charset=\"utf-8\">";
echo "$(function(){";
echo "$(\"#results li\").quickpaginate({ perpage: 4, pager : $(\"#search_list\") });";
echo " });";
echo "</script>";

    echo "<ul id='results'>";
while($row = mysql_fetch_assoc($result))
{

echo "<li>" ,$row['movie_name'], "</li>";

}

echo "</ul>";
  echo "<div id='search_list'>","</div>";

and if doesn't work please post all the code your using please, as in all scripts
« Last Edit: November 15, 2008, 10:56:01 PM by adeang » Logged

I'm for about anything!
ansh
Script Chimp
*

Karma: +0/-0
Posts: 39


View Profile
« Reply #16 on: November 16, 2008, 01:04:15 AM »

nothing happens.
that function is from jquery site n its working mannually
 if i use it like

<ul id="list">
<li>soemthing </li>
<li>soemthing </li>
<li>soemthing </li>
<li>soemthing </li>
</ul>
<div id="list_counter"></div>
its works its showing pagination

but not working in search results
dont know why



Logged
adeang
Code Baboon
***

Karma: +1/-0
Posts: 102


I'm for about anything!


View Profile WWW
« Reply #17 on: November 16, 2008, 09:02:45 PM »

okay, so basically your trying to query db from a search and pagenation the results?
Logged

I'm for about anything!
ansh
Script Chimp
*

Karma: +0/-0
Posts: 39


View Profile
« Reply #18 on: November 16, 2008, 11:08:14 PM »

ya n its working fine.. its showing the results

only the pagination is not working..
Logged
Pages: 1 [2]
  Print  
 
Jump to: