开发者

jQuery Pagination like AuthenticJobs.com

What plugin does that?

http:开发者_如何转开发//www.authenticjobs.com/

Check out the job listing pagination (Load next 50 jobs).

I know I've seen a plugin for this, but I can't remember it at all.


I don't think you even need a plugin for this...

$(document).ready(function() {

    $("#ButtonToClickToLoadNext50").click(function() {
        $.ajax({
            url: "/getjobs",
            data: {
                start: 51,
                end: 100
            },
            datatype: "json",
            type: "POST",
            success: function(data, status, xhttp)
            {
                var html = "";

                for ( var i = 0; i < data.length; i++ )
                {
                    // build up html
                    html += "<div>content to display</div>";
                }

                $("#divcontainingjobs").append(html);
            }
        });
    });
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜