I'm with James. Make a var html that you append to content.
But for your problem, IE6 is something that should never been invented !! Try some somtehing like: var html = '<div class="thumb'+nu+'"><a href="http://mylink.com"><img src="images/'+thumb+'.jpg" alt="'+alt+'" name="image'+nu+'" style="border:3px solid red;height:62px;width:82px" /></a></div>'; $('#content').append(html); Just to see if the element even pops up. I know that IE6 sometimes have problems reading xml attributes, so it could be something wrong with the value of the img src you trying to add. ..fredrik On Jun 24, 10:04 am, Araceli Domínguez <adoming...@vivocom.es> wrote: > James thanks a ton for answering, but no changes with your suggestion: > Internet Explorer 6 won't show a thing, but Firefox and Safari will show > thumbnails and link without any problems. > I'm sure this is a stupid tiny issue but I cannot detect what it is. Here is > the code I'm using (29 Kb):http://www.vivocom.tv/test/IEandJQUERY.rar > Please have a look at it, you'll save another human being dealing with IE > from suicide =8-O ;) > Many, many thanks once again! > Ara > James escribió:In here: <div class=thumb"+nu+"> you're trying to set the > variable "nu", yet, "nu" is also a part of the variable you're trying to set. > You should add ending semi-colons ( ; ) to properly end your code, which will > reduce errors. I think you want: var nu = $(this).find('nu').text(); var html > = "<div class=thumb"+nu+"><a > href='http://mylink.com'<imgsrc='images/"+thumb+".jpg' alt='"+alt+"' > name='image"+nu+"' width=82 height=62 border=0></a></div>"; > $("#content").append(html); On Jun 22, 9:50 pm, > Lleoun<adoming...@vivocom.es>wrote:Dear all, The following code is working > great for all browsers except for Internet Explorer .. I've been > investigating and the problem seems to be the html method. How can I change > the script for it to work in Internet Explorer also? Thanks in advance! > <script src="scripts/jquery-1.3.2.min.js" type="text/javascript"></ script> > <script type="application/javascript"> $(function() { > $.ajax({ type: "GET", url: "myxml.xml", > dataType: "xml", success: function(xml) { > $(xml).find('item').each(function(){ > var thumb = $(this).find('thumb').text() var ids = > $(this).find('ids').text() var alt = > $(this).find('alt').text() var nu = > $(this).find('nu').text() .html("<div class=thumb"+nu+"><a > href='http://mylink.com'><img src='images/"+thumb+".jpg' alt='"+alt+"' > name='image"+nu+"' width=82 height=62 border=0></a></div>") > .appendTo('#content'); }); //close each( > } }); //close $.ajax( }); //close $ </script> > <div id="content"></div>