Hi, all...

I'm a bit confused about how to get variables from jQuery that
I can use in my ColdFusion code.

In typical CF pagination, I use startrow and maxrows variables
to limit the query output.  How would I get these variables
from the jQuery?

I just can't piece together what's happening.

Below is the jQuery I'm currently using.  The total number
of records is set in the jQuery using the recordCount CF variable.

Thanks for any help!

Rick


        <script type="text/javascript">
            
                        function pageselectCallback(page_id, jq){
                                        $('#Searchresult').text("Showing search 
results
"+((page_id*20)+1)+"-"+((page_id*20)+20));
                    }
                        
            $(document).ready(function(){
                                // Create pagination element
                
$("#Pagination").pagination(<cfoutput>#get_properties.recordCount#</cfoutput>, {
                                        items_per_page:20,
                                        num_edge_entries: 2,
                                        num_display_entries: 20,
                    callback: pageselectCallback
                });
            });
            
        </script>

Reply via email to