After THREE DAYS of trying increasingly technical solutions, I
discovered the problem was caused by .... that semi-colon after the
CSS margin setting.

Aarghh :o

On Apr 23, 7:18 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi Scott
>
> You said:> 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. >
>
> Your 'screwy' feeling may be right - I guess that would tie in with
> IE's error, which (as far as I can tell - I have examined jQuery full
> version, but it's recently become too complex for me to read) seems to
> relate to a non-existent element.
>
> I'll have to go back over this with a fine-tooth comb - again ....
> Cherry ;)
>
> On Apr 23, 5:24 pm, Scott Sauyet <[EMAIL PROTECTED]> wrote:
>
> > [EMAIL PROTECTED] wrote:
> > > My work page is athttp://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

Reply via email to