Hi,
I have an issue on IE not appearing on FF and Opera :
I have a script copying some DIV content in another DIV, using clone(true) :
- $('.itemSponsor').click(function(){
$('.itemSponsor').removeClass('selected');
$(this).addClass('selected');
$('#rightPane').html($(this).find('.rightContent').clone(true));
});
This works well.
Now I would like to initialize the script : when the page is loaded, the #rightPane must be populated with the '.rightContent' element, so I call this :
- $('.itemSponsor:first').find('.rightContent').clone(true).appendTo('#rightPane');
Here is the problem : the initializing content is well copied in the rightPane, but without the Flash content (or <SCRIPT> tag) . This happens only in IE , not Firefox and Opera.
I have also tried to use the .data() function instead :
- var init = $('#rightPane');
var initContent = $('.itemSponsor:first').find('.rightContent').clone(true);
jQuery.data(init, "test", {first:initContent});
$('#rightPane').html(jQuery.data(init, "test").first);
Is it a bug ? or i use this function incorrectly ?
Thank you for helping.