[ofcgwt] piechart does not show in firefox

44 views
Skip to first unread message

waalp

unread,
May 19, 2010, 3:45:38 PM5/19/10
to OFCGWT
I created a PieChart with ofcgwt, and somehow it will not show in
firefox. It works fine in IE, also when I point firefox directly to
the open-flash.swf it works.

I'm setting the path to the swf file like this:

chartWidget.setUrlPrefix(GWT.getHostPageBaseURL());
chartWidget.setFlashUrl("chart/open-flash-chart.swf");

Is there something i'm forgetting here ?

Thanks in advance,
Peter de Waal

--
You received this message because you are subscribed to the Google Groups "OFCGWT" group.
To post to this group, send email to ofc...@googlegroups.com.
To unsubscribe from this group, send email to ofcgwt+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ofcgwt?hl=en.

Sergey

unread,
May 20, 2010, 3:00:06 AM5/20/10
to OFCGWT
May be you need just write something like that
chartWidget.setFlashUrl("/chart/open-flash-chart.swf"); (leading
slash)

waalp

unread,
May 20, 2010, 6:56:00 AM5/20/10
to OFCGWT
If i use a leading slash i get a
[WARN] 404 - GET /ngusage//chart/open-flash-chart.swf (127.0.0.1) 1420
bytes

and without the leading slash i get the warn
[WARN] 404 - GET /ngusage/chart/open-flash-chart.swf (127.0.0.1) 1420
bytes

Somehow i only get the not loading of the flash graph in firefox, in
IE it's just working fine

Sergey Volkov

unread,
May 20, 2010, 7:05:17 AM5/20/10
to ofc...@googlegroups.com
Can you provide a sample project with your problem? What is the version of FF? Is there flashblock or other plugins installed?

waalp

unread,
May 20, 2010, 1:53:12 PM5/20/10
to OFCGWT
I found the solution to the problem. The piechart actually works in
FireFox, only you can't see it. If you look at the object tag in
firefox you see that the width and height is set to 100%, if I use the
setHeight and setWith methods for the ChartWidget and set them to for
example 800 and 500 the chart shows in Firefox.

I'm using FireFox 3.6.3 by the way.
Reply all
Reply to author
Forward
0 new messages