Anyone have an idea why i cant cancel the the normal action of the button in this example?

http://www.d-scribe.de/webtools/jquery-pagination/demo.htm

y download the page and modified it, only

            function pageselectCallback(page_id, jq){
                        $('#Searchresult').text("Showing search results "+((page_id*10)+1)+"-"+((page_id*10)+10));
                        return false;
                    }
           
            $(document).ready(function(){
                // Create pagination element
                $("#Pagination").pagination(300, {
                    num_edge_entries: 2,
                    num_display_entries: 8,
                    link_to: "something.htm",
                    callback: pageselectCallback
                });

>From the doc (http://d-scribe.de/webtools/jquery-pagination/lib/jquery_pagination/README)


callback
	A callback function that is called when a user clicks on the link. the The 
	function receives two parameters: the new page id and the pagination 
	container (a DOM element). If the callback returns false, the event 
	propagation is stopped. Default value: ``function(){return false;}``



Thx,


Reply via email to