I'm sorry for revisiting my own issue but, after reading more blogs
like this http://www.ventanazul.com/webzine/taxonomy/term/80, I'm
starting to wonder if I have fallen foul of some IE/jQuery weirdness?

I've even tried emptying the html out of the h2 and doing a
document.createElement('a') to refill the contents (so at least I
learned some Javascript!) but still get the same error. All other
browsers are OK.

One extra thing: I've noticed IE's generated source has put 'jquery'
plus a long line of numbers, where the inserted content should be. Is
this an error code? How can I find out what it means?

[sobs gently]


On Apr 22, 6:00 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I hope someone more experienced can tell me where I'm going wrong with
> this?
>
> I have PHP generate the jQuery for an .html() rewrite of links,
> replacing the less-jazzy non-javascript show/hide alternative. It
> works like a charm in FF, but ie refuses at this point & will not go
> any further.
>
> The error occurs, apparently at this point in jQuery source:
> (elem,"select")))return;if(elem[0]==undefined||
> jQuery.nodeName(elem,"form")||elem.options)ret.push(elem);else
>
> but I don't know what that means!
>
> My generated code:
>
> $( 'h2.product1' ).html( '<a href="#productID" class="open">Product
> name</a>' );
> $( '#productID' ).css( 'margin-top', '0px;' );
> $( '#productID .close' ).html( '<a href="#productID"
> class="close"><img src="images/close.jpg" alt="Close" title="Close" /
>
> ></a>' );
>
> In fact, IE doesn't even write in the new h2 data. It stops processing
> all Javascript at that point.
>
> I thought this post, regarding ie's dislike of jQuery's .html()
> method, was the 
> answer:http://groups.google.com/group/jquery-en/browse_frm/thread/fea89caebd...
>
> but it doesn't help :(
>
> After so long tugging away at this, I'm hoping it's due to one of my
> elementary errors!!
> So please tell me where I'm wrong :)
>
> Thanks,
> Cherry

Reply via email to