jQuery 1.3.2 append() fails in IE7 and IE8

The code is simple. Works in every browser but IE.

J.get('/upload/uploadresponse/' + uploaded_lessonfile_id , function ( data ){
   J('#upload-files').prepend( data );
});

alert() on data shows the required data. Html is <div id="upload-files"></div> - no magic there.

Would prefer not to upgrade to jQuery 1.4. Would prefer to wipe internet explorer from the earth.

Answers


The problem is that the response body had invalid HTML - an extra </div>. It is inserting into a document that is supposed to be HTML strict.


Have you tried

J('#upload-files').html( data );

make sure your string is either

var data = ' with " quotes inside '; or var data = " using escape \" ";


Need Your Help

Access ListBoxItem-Controls in WPF ListBox

wpf listbox datatemplate listboxitem

In WPF application I create Listbox with it's ItemTemplate defined in following DataTemplate in XAML:

Why is JAVA paint() method not working?

java jframe paint

Can anyone explain as to why this code doesn't show me a 20 x 20 white oval?