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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:42:59+00:00 2026-05-22T11:42:59+00:00

Hi everyone in my main html file, I have this div that some img

  • 0

Hi everyone
in my main html file, I have this div that some img are define in it:

< div id="preload">
    < img src="http://howindia.com/......jpg" width="1" height="1" /> 
< /div>

and in my .js file I said:

$("#preload").load(function(){
    alert("something...");
    //call other functions 
});

but simply loading all images into the < div id=”preload”> won’t trigger any event and

  • 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-22T11:42:59+00:00Added an answer on May 22, 2026 at 11:42 am

    The image load event does not propagate to the div. Try adding a load handler to the image(s) instead.

    Example fiddle

    $("#preload img").load(function(){
        alert("something...");
        //call other functions 
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

everyone! new to here and been pondering about this myself for some times with
Morning Everyone, I've been attempting to write an application that does some GETs from
i have this html code: <select name=category id=category> <option value=0>&laquo;Seleziona la categoria&raquo;</option> <option value='1'
$(#link1).click(function(){ $(#div1).load('../test.html'); return false; }); This is an incredibly simple .load() function that simply
hy everyone, i have simple html code showing a table width html <table class=table_site>
I have been told that Singletons are hard to test. http://misko.hevery.com/2008/08/17/singletons-are-pathological-liars/ http://misko.hevery.com/code-reviewers-guide/flaw-brittle-global-state-singletons/ I have
everyone I have some question regarding programs: if I have for example some program:
correction it works now thanks everyone. Okay so now I have updated my main
everyone. This is a piece of code from using sqlite in android tutorial: return
everyone! I have sprite moving by action, what have health bar (progress bar). When

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.