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=''<imgsrc='' 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="" 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=''><img src='' 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> |
- [jQuery] Re: Internet Explorer and the html method?? James
- [jQuery] Re: Internet Explorer and the html method... Araceli Domínguez
- [jQuery] Re: Internet Explorer and the html me... fredrik
- [jQuery] Re: Internet Explorer and the htm... Araceli Domínguez