Home
Analytics
Firefox 5 & Birt Viewer - JavaScript issue
richard_c
I have created a simple report with one text box containing some javascript as below:
<script type="text/javascript">alert("Hello");</script>
If I run the report in Firefox version 5, using the BIRT Viewer (on tomcat), the script tags are not recognised.
This bug is firefox 5 specific. The report runs on all other browsers including Firefox 4, IE, Chrome etc. It also runs fine using the Eclipse BIRT Web Viewer
I have attached the sample report. I am using Birt version 2.6.1
Any ideas?
Find more posts tagged with
Comments
mwilliams
I see the same. I would assume this is a FireFox issue, not a BIRT issue, but I could be wrong. Did this work before you upgraded to FireFox 5?
richard_c
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="79511" data-time="1309551166" data-date="01 July 2011 - 01:12 PM"><p>
I see the same. I would assume this is a FireFox issue, not a BIRT issue, but I could be wrong. Did this work before you upgraded to FireFox 5?<br /></p></blockquote>
<br />
Hi Mike,<br />
<br />
Yes, this was working in FireFox 4, so something has changed in FireFox 5. <br />
<br />
If I use the same code in a simple HTML page (not in BIRT), it works fine in FireFox 5:<br />
<br />
<HTML><br />
<HEAD><br />
<script type="text/javascript">alert("Hello");</script><br />
</HEAD><br />
<BODY/><br />
</HTML><br />
<br />
So the issue is BIRT-related when using FireFox 5.<br />
<br />
We are using javascript in text boxes to create dynamic reports, so this functionality is of high importance.<br />
Please let me know if I should create a bug for this.<br />
<br />
Cheers,<br />
<br />
Richard
richard_c
I used firebug to see what is happening in FireFox 5:
-> All of the HTML is being escaped (see attached screenshot) so this may be preventing the script tags from being executed.
-- Note: This is also happening in FireFox 3.6.18 and yet the javascript works ok in that version
Ingoos
looks like i have similar problem
i'm using scrip 'Mouseover Highlight for Tables' (
http://www.birt-exchange.org/org/devshare/comment/571/2/1309854980000/#comments395)
... and it stoped to work since i updated firefox to 5.0
did anyone figure it out how to fix it ?
richard_c
I created a bug for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351217
mwilliams
Thanks for the update!
johnfron
I'm not sure if this specifically applies here but see my post here: <a class='bbc_url' href='
http://www.birt-exchange.org/org/forum/index.php/topic/23155-firefox-56-issue-with-report-viewer/'>http://www.birt-exchange.org/org/forum/index.php/topic/23155-firefox-56-issue-with-report-viewer/</a>
;
mwilliams
Is anyone using 2.6.2 or above and seeing this issue as well? Or is it just 2.6.1 and below?
ricnaddei
I have the same problem using 2.6.2 !!
Any <script> tag is ignored when I launch a report with Firefox (in previous versions too). I use script tag to create/manage form inside a report (e.g. to get option selected in a drop down menu); could you advise me about an alternative strategy?
Thanks you in advance
mwilliams
Hi ricnaddei,
Can you attach an example that will not work with Firefox?
ricnaddei
Hi mwilliams,
in attach a very banal example that works with IE or Chrome but don't works with Firefox.
Riccardo
mwilliams
It's just completely ignoring the script tags for some reason. I see the same with 3.7.0. I'll download the latest build to see if it's still an issue in 3.7.1 and let you know. I have heard that Actuate BIRT supports Firefox 5 with it's latest service pack which puts it up to BIRT 2.6.2, I believe.
Edit: The script tags don't work in Firefox 6 (my current version) with 3.7.1, so I'm guessing they don't work with FF5 either.
Giulio Roggero
solved! (i hope
http://isolasoftware.it/2011/09/14/birtjavascript/
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351217#c7
mwilliams
Great, thanks for the post!