I have a form that has draggable elements and droppable areas. When a thumbnail sized draggable element is placed within its associate droppable area, the script replaces the thumbnail image with a html comment, and it changes the primary image's display attribute from none to block. The replace '_t' is necessarily redundant for a case which is not being addressed here.
Processing is managed @ two points w/in the script:
1) initial processing
var primaryContent = "#".replace('#', ui.draggable.html().replace('_t','').replace('display: none;','display: block;'));
2) this is the simplist of three conditional statements
var primaryContent = primaryContent.replace(/img.*>/, '!--image removed-->');
It seems as if IE ignores/fails to replace anything. The included code is my debug output [console.log('');] from both Firefox and Internet Explorer.
Have any of you dealt with anything like this in the past? Is IE not compatible with the replace() method? (I am testing in version 8)
From Console (Firefox)
<div style="display: block; margin: 0px; padding: 0px;">
<span style="font-family: Arial;">
<img contentelementid="32623" src="http://my.qdobamail.com/userfiles/34/e3d71ab3-3795-102c-9fa9-4fc2de14c7ac/images/mainImages_600x400/6961-football-650x400.jpg" alt="" height="400" width="650">
From Console (Internet Explorer)
<IMG style="WIDTH: 50px; HEIGHT: 31px; OVERFLOW: hidden" class=contentElement alt=32623 src="/userfiles/34/3038/32623.jpg">
<DIV style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; DISPLAY: none; PADDING-TOP: 0px"><SPAN style="FONT-FAMILY: Arial"><IMG alt="There's more to explore TM at BEAVERS football games. Qdoba now has three locations at Reser Stadium. The Club Level, The North Side, and our new location in the South End Zone Corridor.[icon]" src="http://my.qdobamail.com/userfiles/34/e3d71ab3-3795-102c-9fa9-4fc2de14c7ac/images/mainImages_600x400/6961-football-650x400.jpg" width=650 height=400 contentElementID="32623"><BR></SPAN></DIV>