Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5948955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:10:54+00:00 2026-05-22T17:10:54+00:00

I would really appreciate if anyone can spot anything that I am doing wrong

  • 0

I would really appreciate if anyone can spot anything that I am doing wrong here!

I am attempting to use this plug-in: http://www.sebastianoarmelibattana.com/projects/jail

I have included it in my web page which is a search form that submits via an AJAX request and displays the search results in a table. This table happens to be another plugin called dataTables.

Here are the relevant bits of code:

The re-initialisation of the plug-ins after the AJAX request has been successfully completed (the same initialisation is done in the actual HTML page aswell):

 // re-initialise lazyload, lightbox and dataTable plugins

        $('img.lazy').jail();

        $('a.lightbox').lightBox();
        $('#test-docs-table').dataTable( {
                "bPaginate": false,
                "sDom": 'Rlfrtip',
                "aoColumns": [
                    null,
                    null,
                    { "sType": "title-numeric" },
                    null
                ]
        });

This is the line of php that displays the relevant table cell with the thumbnail in it:

 $shortname = $row['filename'];
 $doc = "/central/testdocs/".$row['filename'];
 $thumb = "include/doc-thumbnail.php?doc=$doc";
 echo("\n<div class=\"thumbnail\">\n<td class=\"center\"><a class=\"lightbox\" title=\"$shortname\" href=\"$thumb&dpi=96\"><img class=\"lazy\" data-href=\"$thumb\" src=\"images/blank.png\" width=\"50\" height=\"50\"/></a></td>\n</div>\n");

Notice that another plug-in is involved – lightbox so not sure if that affects the situation.

At the moment it looks like the JAIL plug-in is doing something but all the images are loaded as soon as the page has loaded.

The lightbox still works when you click on the thumbnails – the page actually works just the same as it did before except that before the page is fully loaded the thumbnail cell is empty.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:10:55+00:00Added an answer on May 22, 2026 at 5:10 pm

    I discovered what was wrong, the silliest of things!

    Because I tried to use the original lazy load plug-in I had an existing rule in my CSS hiding images of class lazy so the plug-in wasn’t able to do it’s thing.

    If anyone else runs into this problem that’s what to do!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would really appreciate to get your help on this, as I can't seem
I would really appreciate if you could shed light on this problem. I have
I would really appreciate if you would take a look at this piece of
Has anyone ever used Solrnet inside CLR Stored Procedures? I would really appreciate pointers
I know this isn't a straightforward question but I would really appreciate some feedback
I would really appreciate any suggestions, no matter how simple or complex, to help
I would really appreciate some feedback on what I am trying to achieve: The
I would really appreciate it if some of you could help optimize my tables,
Ok I give up and would really appreciate it if you guys could cast
I would really like to use SpringSource dm Server, but our customer requires us

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.