Javascript error: Object required...tough time fixing this
Posted
by rtnav2301
on Stack Overflow
See other posts from Stack Overflow
or by rtnav2301
Published on 2010-05-29T20:50:07Z
Indexed on
2010/05/29
21:12 UTC
Read the original article
Hit count: 348
The situation is this: a friend of mine asked me to help her with a website she's working on called www.KeepsakePartyInvitations.com. Her original designer created this code but didn't finish the project. So here I am to help save the day.
Now, once a photo has been added to the party template and the mouse is placed over the image, an alternate text message appears to the right. The message informs the visitor how to reposition and resize the image, if necessary.
I'm testing the procedure in the invitation to reposition the image. I follow the directions about moving the picture, but the mouse does not let go of the photo. Where ever the mouse moves, so does the image. The same thing occurs if you want to resize the image, you follow the directions but the image does not resize.
I check the error message in IE 8 and it states:
Message: Object required Line: 873 Char: 3 Code: 0 URI: http://www.keepsakepartyinvitations.com/Includes/JCode.js
When I checked the Javascript file, the Line 873 states:
tempX = e.clientX + document.body.scrollLeft
If you review the javascript file, the function where the line is located is called: function getMouseXY(e).
Please help me, it has been a long while since I've worked with Javascript and I'm motivated to get this fixed. Thank you!
© Stack Overflow or respective owner