Hi, I need to display a zone, containing javascript code that contains document.write().
I created an example - here is the relevant code: <t:zone t:id="timeZone" id="timeZone"> ... <script type="text/javascript"> var currentdate = new Date(); var datetime = "Current time (JS): " + currentdate.getDay() + "."+currentdate.getMonth() + "." + currentdate.getFullYear() + " " + currentdate.getHours() + ":" + currentdate.getMinutes() + ":" + currentdate.getSeconds(); document.write(datetime); </script> ... </t:zone> It doesn't matter whether I call: ajaxResponseRenderer.addRender(timeZone) or if I return return request.isXHR() ? smsZone.getBody() : null; The result is always the same - ONLY datetime is displayed - only code in the JavaScript tags. Everything else is discarded. How can I properly display zone containing javascript's document.write()? I cannot control the contents of the Javascript (it's being returned from an ad server - it displays an ad). Regards, Lidija