mixfox wrote:

: here is my code
: 
: $(document).ready(function() { $('#imageid').load(function(){
: 
:     alert('hello');
: 
: }); });
: 
: "#imageid" is an img lable's ID

    That works for me. Perhaps the error is in the html portion of your
page.
Are you sure the image has an id of id="imageid"? id="#imageid" will fail.
If you cannot fix the problem show us your whole page.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.dfwrein.com/html4-embed.dtd";>
<html>
<head>
    <title>Foo</title>
    <meta http-equiv="Content-Type" content="text-html; charset=utf-8">
    <script type="text/javascript"
src="/site/code/jquery-1.2.2.pack.js"></script>
    <script type="text/javascript">

        $(document).ready(function() {
            $('#imageid').load(function(){
                alert('hello');
            });
        });

    </script>
</head>
<body>
    <img id="imageid" width="125" height="157"
src="/site/images/people/mike_butler.jpg">
</body>
</html>


HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
Free Market Advocate
Web Programmer

254 968-8328

http://www.clarksonenergyhomes.com/wordpress/about/

Reply via email to