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 567171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:03:17+00:00 2026-05-13T13:03:17+00:00

there are various good jquery image preview plugins out there. however, all of the

  • 0

there are various good jquery image preview plugins out there. however, all of the ones i’ve tested havent worked on image links that are embedded in the DOM with ajax.

i have tested use jquery live feature, but it doesnt work flawless.

$('a.preview').live('mouseover', function() {
    $(this).imgPreview({
        imgCSS: {
            //width: '200px'
        },
        preloadImages:      'true',
    });
});

im using this one: http://www.webresourcesdepot.com/jquery-image-preview-plugin-imgpreview/

the problem is that i have to use jquery live as u see above. but there is 2 flaws.

  1. if i move the mouse over the thumbnail the first time it doesnt show the preview, i guess that is because i hasnt fetched the image yet. so i have to move the mouse away from the image and back over the image again, then it’ll be shown. and that is very annoying.

  2. it doesnt preload the images. if you check on their website they are using it like this instead:

    $(‘a.preview’).imgPreview({
    preloadImages: ‘true’,
    });

and that will preload all previews after DOM is fully loaded. but i have encapsulated the function. but even if i didnt, it cant cause i add these image links with ajax AFTER DOM is loaded.

i wonder if someone knows about a plugin that could do same stuff on ajax-loaded elements, both preview and preload.

thanks.

  • 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-13T13:03:18+00:00Added an answer on May 13, 2026 at 1:03 pm

    adding it to the mouseover will not help, as the whole point is to preload the images before they get moused over … (so that they are available at mouseover)..

    you should add the $('a.preview').imgPreview(...) right after you attach the new links (from ajax) to the dom ..

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

Sidebar

Related Questions

I know there are various good arguments preferring CSS positioning over table-based layouts. What
There are various ways to take screenshots of a running application in Windows. However,
There are various ways to bind events to elements in jquery .click , .bind,
I've got java enums all over the place, and while I've seen various good
Is there a good, concise guide to the various behaviors of the controls that
Is there a good blog/wiki/documentation about various events that browsers have/expose ? Like the
There are various ways to maintain user state using in web development. These are
There are various ways of exiting a process: e.g.: ExitProcess, ExitThread (from the main
There are various posts on the web about this issue whereby the ComboBox only
There are various answers on Stack Overflow which explain the conditions under which tail

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.