| Author |
JS error - Message: Member not found
|
Dan Drillich
Ranch Hand
Joined: Jul 09, 2001
Posts: 1061
|
|
Good Day,
I get this error in IE8 and a recent Firefox -
Commenting out the four lines that refer to alt and style clear the error. I think it's the style lines...
Any idea why?
Regards,
Dan
|
William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
|
 |
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50693
|
|
You've narrowed it down to 4 lines. Next step is to narrow it down to 1.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50693
|
|
|
P.S. Are you using any debugging tool? All modern browsers have JavaScript debuggers built in (except Firefox where you need the Firebug plugin). Do you get better error messages from the other browsers?
|
 |
Dan Drillich
Ranch Hand
Joined: Jul 09, 2001
Posts: 1061
|
|
|
Thank you Bear.
|
 |
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50693
|
|
You're welcome.
What are you finding? None of those assignment statements should cause an issue (unless the reference evaluates as null) because if a property does not exist on a JavaScript object, it is created.
|
 |
Dan Drillich
Ranch Hand
Joined: Jul 09, 2001
Posts: 1061
|
|
Hi Bear,
Interesting thing, the following line breaks the code -
Throwing the error -
The references in the img tags are -
And the divs look like -
Any insight would be greatly appreciated.
Regards,
Dan
|
 |
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50693
|
|
The message "Message: Member not found." isn't very illuminating. It gives this exact message in both failing browsers? (If not, withholding the other message isn't helping any.)
Are you sure that the element reference is valid when the error occurs?
|
 |
Dan Drillich
Ranch Hand
Joined: Jul 09, 2001
Posts: 1061
|
|
Hi Bear,
It might be easier to see the error as it happens when expanding any of the sections on the page .... removed...
Regards,
Dan
|
 |
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50693
|
|
I get no errors in Firefox 10. Nor on any other browser running on my Mac. Cant help you with testing IE. No Windows here.
And you haven't answered my question about the reference.
|
 |
Dan Drillich
Ranch Hand
Joined: Jul 09, 2001
Posts: 1061
|
|
Thank you Bear.
Sorry but I don't know if the element reference is valid when referenced.
Regards,
Dan
|
 |
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50693
|
|
Well, that's easy enough to find out. Test that the reference really points to the element.
Enable the JavaScrip console (or Firebug) and either set a breakpoint, or add a log statement.
|
 |
Dan Drillich
Ranch Hand
Joined: Jul 09, 2001
Posts: 1061
|
|
Much appreciated Bear.
Regards,
Dan
|
 |
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50693
|
|
|
Let us know what you discover.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15003
|
|
This is not the correct way to set a style, hence the error.
Eric
|
 |
 |
|
|
subject: JS error - Message: Member not found
|
|
|