Results 1 to 3 of 3

Thread: Virtual Pagination Script - Loading image and Refresh

  1. #1
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default Virtual Pagination Script - Loading image and Refresh

    1) Script Title: Ajax Pagination Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nate/index.htm

    3) Describe problem: Issue with pagination Previous and Next

    I've set the script up on a test page and think it will work perfectly for calling pages of news stories by year: http://www.cisfl.org/newstest.html. But after looking through the CSS and JS files, I cannot find any reference to the loading.gif image. Is this something that was perhaps removed during an update?

    Also, I'm a bit confused about where I should add the coding for refresh. This is what I have on my test page:
    Code:
    <script type="text/javascript">
    
     var newsarticles={
     pages: ["/news/page2013.html", "/news/page2012.html"],
     selectedpage: 0 //set page shown by default (0=1st page)
     }
    
    var mybookinstance=new ajaxpageclass.createBook(newsarticles, "bookcontent", ["paginate-top", "paginate-bottom"])
    
     </script>
    I'm not sure where to add this:
    Code:
    bookvarinstance.refresh(newsettingsvar)
    Thanks,
    Deborah
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Have you seen the additional setup page "COMMON QUESTIONS AND SOLUTIONS" where the example is given like this?
    Code:
    <a href="javascript:demo.refresh(bookonanimals)">Load Book on Animals instead</a>
    Theres a link at the bottom of the demo page.

    Hope that helps
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default

    Hi Beverly,
    Yes. I read both pages of documentation, but I think I misunderstood the Refresh function in this case. I have the links at the top and bottom and am calling pages with news articles separated by year. I think I was overtired and looking for something to perform a Ctrl-F5 for me when new items were added to existing pages. It's all good now... except for the loading.gif image, which I think got dropped along the way when the script was updated.
    Thanks,
    Deborah
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

Similar Threads

  1. Virtual Pagination Image Pagination
    By Pamps in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 11-14-2009, 02:22 AM
  2. Virtual Pagination script v2.0
    By chas in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 06-01-2009, 02:23 AM
  3. Virtual Pagination using image buttons?
    By jkr in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 02-20-2008, 12:16 AM
  4. Virtual Pagination Help (horizontal 3 Image Display)
    By Seafury in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 02-16-2007, 07:53 AM
  5. Virtual Pagination script
    By gonny in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 01-11-2007, 05:44 PM

Bookmarks

Posting Permissions

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