[EMAIL PROTECTED] wrote:
My work page is at http://vanilla-spa.homeholistics.com/products.php -
this is the one that's OK everywhere except in IE.
1. $( 'h2.product1' ).html( '<a href="#productID" class="open">Product
2. name</a>' );
3. $( '#productID' ).css( 'margin-top', '0px;' );
4. $( '#productID .close' ).html( '<a href="#productID"
5. class="close"><img src="images/close.jpg" alt="Close"
6. title="Close" /></a>' );
I'm a little lost on where the JS that's causing problems is located,
but you said earlier that it was something like the above, right?
Something looks screwy with this. Line 1 - 2 insert the link with id
"productID" into the appropriate h2 element. The link contains nothing
but a text node. Then in line 4, you try to retrieve an element of
class "close" from inside that link. There is no such element. You
just created #productID and it only contains text.
Still, this shouldn't cause errors itself, as that will just return an
empty jQuery object. But you might look at this some more.
Another suggestion would be to try this against a non-minified version
of jQuery. The exact location of the error might help.
-- Scott