¡@

Home 

2014/10/16 ¤W¤È 12:02:44

jquery Programming Glossary: currentpagea

Multiple AJAX requests functions combined into one?

http://stackoverflow.com/questions/5313809/multiple-ajax-requests-functions-combined-into-one

ajax request url page name url 'page_a.php page ' currentPageA becomes url 'page_b.php page ' currentPageB and so forth. How.. name display_page_b_number div JS var currentPageA 1 var totalPageA 113 loadPageA #page_a_next #page_a_prev .click.. 113 loadPageA #page_a_next #page_a_prev .click function currentPageA this .attr 'id' 'page_a_next' currentPageA 1 currentPageA 1..

Multiple AJAX requests functions combined into one?

http://stackoverflow.com/questions/5313809/multiple-ajax-requests-functions-combined-into-one

page number div display_page_a_number becomes display_page_b_number ajax request url page name url 'page_a.php page ' currentPageA becomes url 'page_b.php page ' currentPageB and so forth. How do I make the Ajax call and elements more generic so I don't.. id display_page_b_page name display_page_b_page div div id display_page_b_number name display_page_b_number div JS var currentPageA 1 var totalPageA 113 loadPageA #page_a_next #page_a_prev .click function currentPageA this .attr 'id' 'page_a_next' currentPageA.. display_page_b_number div JS var currentPageA 1 var totalPageA 113 loadPageA #page_a_next #page_a_prev .click function currentPageA this .attr 'id' 'page_a_next' currentPageA 1 currentPageA 1 if currentPageA 0 currentPageA 1 '#page_a_prev' .attr 'disabled'..