|
Re: Adding elements to HTML head in report item presentation [message #829655 is a reply to message #829489] |
Mon, 26 March 2012 15:51 |
Alexey Romanov Messages: 263 Registered: May 2010 |
Senior Member |
|
|
Actually, this turned out to be a problem
When I just add <style> tag, it's missing in Firefox completely; when I try to add it to head using Javascript, BIRT seems to try to escape it somewhere and mess things up. From MyItemPresentation.onRowSets I return a string which ends like this:
$j('<style type="text/css"> ... lots of css rules ... </style>').appendTo('head');
</script>
<input type="text" class="param" name="DTParam" id="DateTimePickerItem_2"/>
<script>$j('#DateTimePickerItem_2').datetimepicker({dateFormat: 'yy-mm-dd', timeFormat: 'hh:mm:ss.l', showSecond: true, autoSize: true})
</script>
and still have the same in HTMLPageLM.layout(), according to debugger. But when I view source of the resulting report in FireFox, I see the same except for the closing style tag: there is <\/style> there instead.
1. Any reason you know of for this to happen?
2. Can I see the precise source of the page emitted by BIRT, so I can check if it's Firefox's fault?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03516 seconds