Quote Originally Posted by diamond1 View Post
I have this but I do not know how to do it


Code:
objXHR.prototype.handlePrice = function (results) {
  var thePrice = document.getElementById("<?php echo DPU_PRICE_ELEMENT_ID; ?>");
  if (typeof(loadImg) !== "undefined" && loadImg.parentNode != null && loadImg.parentNode.id == thePrice.id && imgLoc != "replace") {
    thePrice.removeChild(loadImg);
  }
You haven't stated what "it" is. I.e. don't know how to do what?

The code snippet above is the first part of the handlePrice function and to explain what it does is:
1. set a variable thePrice to be the DOM object that has the id of whatever is entered in the database for DPU_PRICE_ELEMENT_ID which is a field in the configuration->Dynamic Price Updater settings.
2. basically, if a loadImg has been defined and it was added/displayed such that it was in addition to the price instead of replacing it, then remove the image. Later if the image *did* replace the text, then the new text would again replace the image. This is/was all to support the possibility of a "load image" being displayed that would need to be cleared when the results came back for display.

So, again, what is being displayed on the screen that is desired to be modified and what change is to be made or how is it to look different than the way it is provided?