[TableTools] sPrintMessage not showing up in IE

[TableTools] sPrintMessage not showing up in IE

ecoakleyecoakley Posts: 3Questions: 0Answers: 0
edited December 2010 in Plug-ins
Hey. I'm new to both this product and jQuery but am so far impressed with its capabilities. I did recently find a problem in the print function that I don't see mentioned anywhere. sPrintMessage is supposed to show up at the top of the page being printed, and in FireFox, it does. It was failing and throwing a rather obscure JS error in IE8.0.6x. I found that what the print function does is write sPrintMessage to the innerHTML property of a p object that is added to the DOM. The problem appears to be that IE doesn't recognize the p object as having an innerHTML property. I changed the .createObject() call to create a div and it works just fine. I suppose a span would work just as well but haven't tested.

Has anybody else seen this behavior? Could it have been introduced with IE8?

Thanks for any feedback.

EdC

Replies

  • greg.desmaraisgreg.desmarais Posts: 2Questions: 0Answers: 0
    I've also seen this, and did the same - changed the p to div. I think it is because p isn't supposed to contain a block element.
  • ecoakleyecoakley Posts: 3Questions: 0Answers: 0
    Glad it's not just me. Maybe this could be included in the next release as a bug fix.
  • ecoakleyecoakley Posts: 3Questions: 0Answers: 0
    For future reference, this is fixed in TableTools 2.0.
This discussion has been closed.