#OBJECTIVE : change the background image of a div and have it work in IE
6/7 and the real browsers.
#HTML:
...
At this point, my background image (image_one.png) is visable in all
three broswers. Upon an AJAX request, I’d like to update the background
to ‘image_two.png’. To accomplish this, I use RJS.
It certainly makes sense…but there’s rub. Perhaps not insurmountable.
The problem is that the name of the file to serve as the background
images is determined at run-time. Thus, referencing an external
stylesheet would not be possible. However, I could use style tags like
this: