About the second one, got it. I guess I'll have to wait for that fix
or keep using the code as I have it now.

For the first one, that didn't work. Thanks though...

On Aug 7, 2:54 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
> > I'm having 2 little issues regarding IE6/7 with 2 instructions that
> > seem to work just fine in most browsers but not in IE6/7.
>
> > First one, using clone() method:
> > $('div#content a').each(function(elem) {
> >         if(elem === 0) {
> >                 var color = $(this).clone(false).addClass('content-
> > link').css('color');
> >         }
> > }
>
> Not sure about that - does this work?
>
> $('div#content a:first').clone(false).addClass('content-link').css('color');
>
> > Second one, creating a DOM element:
> > $('<script type="text/javascript" src="' + scriptsPath +
> > scriptFiles[idx] + '.js"></script>)').appendTo("head");
>
> > Currently, I have no solution for the first issue so I need help. For
> > the second one, I've fixed it like this:
> > $(document.createElement('script'))
> > .attr('src',  scriptsPath + scriptFiles[idx] + ".js")
> > .attr('type', 'text/javascript')
> > .appendTo('head');
>
> > However, I was looking for a solution without having to use
> > createElement('script'), in other words, I would like to use jQuery.
> > Is it possible?
>
> There's an open ticket on this here:http://dev.jquery.com/ticket/1210
>
> But no current solution.
>
> --John

Reply via email to