Welcome Guest, Not a member yet? Register   Sign In
Pagination with XAJAX
#8

[eluser]!Z[/eluser]
Hi in this function of this library http://codeigniter.com/wiki/Xajax_Pagination/
you will see how the javascript call is added into the links of the numbers.
$this->function_to_call = "the function that you create in Javascript"
Code:
function create_ajax_links($text,$page=""){
        if($this->function_prefix != 'xajax')
            $html = "<a >function_prefix."_".$this->function_to_call."('".$page."');return false;\" />$text</a>";      
        else
            $html = "<a >function_to_call."('".$page."');return false;\" />$text</a>";
        return $html;
    }

Make Sense?


Messages In This Thread
Pagination with XAJAX - by El Forum - 09-12-2007, 07:18 AM
Pagination with XAJAX - by El Forum - 09-12-2007, 07:33 AM
Pagination with XAJAX - by El Forum - 09-12-2007, 07:52 AM
Pagination with XAJAX - by El Forum - 09-12-2007, 08:05 AM
Pagination with XAJAX - by El Forum - 02-12-2008, 03:59 PM
Pagination with XAJAX - by El Forum - 03-12-2009, 10:08 AM
Pagination with XAJAX - by El Forum - 09-14-2009, 06:02 PM
Pagination with XAJAX - by El Forum - 09-15-2009, 11:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB