Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts

    Angry infinitescroll issue

    Hello, everyone.

    I'm attempting to utilize the jQuery infinitescroll plugin and I'm smacking into a brick wall.

    The primary page is called "search_results.cfm" - it queries a database, displays the first five rows of data, and if the number of records is greater than 5 it should display a - More - link. The test query that I'm using is fetching exactly 40 records from the database.

    But where the link is supposed to be, I get the "No more articles" message. I've tested the conditional, and it's definitely reporting 40 records; but after the initial five, nothing.

    The secondary page is identical to the recordset display section of the primary page - same elements, same classes, etc. - and also displays only five records. I've run this page directly in a browser, it IS getting data, it IS displaying the data, there are NO errors (I'm using a try/catch and setting a session variable to the catch message, which will display - if it exists - on the next page load. No error messages are displaying.)

    Any ideas on what could be preventing the next five records from showing? I'm not even given a chance to click the link - it's replaced by the message immediately.

    Thank you,
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    I've managed to use FireBug (if using it is what you can call my complete lack of experience, with it) on the page, and have gleamed from it that:
    1) The secondary page is being called, is processing the data without error, and is actually producing and sending back the HTML that I intended for it to create.
    2) The primary page is still getting the "No more articles to retrieve" message, despite #1.
    C) I'm pulling my hair out and should be completely bald (and bleeding) before tomorrow.
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,618
    Thanks
    0
    Thanked 645 Times in 635 Posts
    Can you supply a link to the page so that others can see the actual code.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #4
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    Unfortunately, I cannot. My dev system is isolated from the internet, and I have no way of copying/pasting code in here (can't burn CDs, and flash drives are proscribed.)
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •