Hiii,

  Thanks for your reply,

Fusioncharts are widgets which are working with Flash.

FusionCharts is a flash charting component that can be used to render
data-driven animated charts. Made in Adobe Flash 8 (formerly Macromedia
Flash),

My application is like that,initially when the page is loaded a fusion chart
is loaded along with that.Now if i clicked on the fusion chart bar another
chart is getting loaded.If i clicked the second one,third fusion chart is
loaded. So this is in a drill down manner.

That means fusion charts are working fine.
Now i am going to load the second page and the fusion chart is loaded
perfectly.Now i am going to click the fusion chart for the drill down chart.
But it is going to blank page where nothing is viewed even the grid in the
page..


Now again  i tried to restart my application and loaded the page which
caused problem previously,it will work fine,But the other page which was
working fine had gone to a blank page as i said early.

This is happening only in gogle hosted mode and IE.Its working fine in
Mozilla firefox.

I am calling the fusion chart in GWT in below manner.

*    public static Panel createRequestFusionChart(Map<String,UrlParam>
urlsParam,int chartWidth, int chartHigh) {

        Panel chartPanel = new Panel();
        final Panel fusionPanel1 = new Panel();

        chartPanel.setWidth(chartWidth);


        final Map<String, Object> parameters = new HashMap<String,
Object>();
        Iterator<UrlParam> params = urlsParam.values().iterator();
        UrlParam urlParam;
        while(params.hasNext())
        {
            urlParam = params.next();
            parameters.put(urlParam.getName(), urlParam.getValue());


        }

        ParametersProvider parmParametersProvider = new ParametersProvider()
{

            public Map<String, Object> getParameters() {

                //Map parameters = new HashMap();
                parameters.put("userid", "0");
                parameters.put("charttype", "1");
                parameters.put("chartmethod", "Request");
                parameters.put("dept", "19");
                parameters.put("link", "1");
                return parameters ;
            }
        } ;


        String chartName = "StackedColumn3D";
        String chartUrl = GWT.getModuleBaseURL() + "FusionCharts/" +
chartName + ".swf";
        String dataUrl = GWT.getModuleBaseURL() + "ChartServletNew";

        FusionChart fusionChart = new FusionChart(chartUrl, 450, 400,
dataUrl, parmParametersProvider) ;


        fusionPanel1.add(fusionChart);

        final Panel firstRowPanel = new Panel("Requests");
        firstRowPanel.setLayout(new HorizontalLayout(30));

        ////////////////////

        ParametersProvider parmParametersProvider1 = new
ParametersProvider() {

            public Map<String, Object> getParameters() {
                //Map parameters = new HashMap();
                parameters.put("userid", "0");
                parameters.put("charttype", "1");
                parameters.put("chartmethod", "emptychart");

                return parameters ;
            }
        } ;

        chartName = "StackedBar3D";
        chartUrl = GWT.getModuleBaseURL() + "FusionCharts/" + chartName +
".swf?ChartNoDataText=Click left chart to view Services Details";
        dataUrl = GWT.getModuleBaseURL() + "ChartServletNew";

        fusionChart = new FusionChart(chartUrl, 450, 550, "Human Resources
(Development)ServDetails", dataUrl, parmParametersProvider1) ;

        final Panel fusionPanel2 = new Panel();
        fusionPanel2.add(fusionChart);



        firstRowPanel.add(fusionPanel1);
        firstRowPanel.add(fusionPanel2);


        ////////////////////

        ParametersProvider parmParametersProviderSubServ = new
ParametersProvider() {

            public Map<String, Object> getParameters() {

                //Map parameters = new HashMap();
                parameters.put("userid", "0");
                parameters.put("charttype", "1");
                parameters.put("chartmethod", "emptychart");
                return parameters ;
            }
        } ;

        chartName = "StackedBar3D";
        chartUrl = GWT.getModuleBaseURL() + "FusionCharts/" + chartName +
".swf?ChartNoDataText=Click Services chart to view subservices details";
        dataUrl = GWT.getModuleBaseURL() + "ChartServletNew";

        fusionChart = new FusionChart(chartUrl, 450, 500, "Human Resources
(Development)SubServDetails", dataUrl, parmParametersProviderSubServ) ;


        final Panel secondeRowPanel = new Panel("Subservices Chart");
        secondeRowPanel.add(fusionChart);

        chartPanel.add(firstRowPanel);
        chartPanel.add(secondeRowPanel);
        return chartPanel;
    }
*
Here *ChartServletNew* is a Servlet which is used to create the xml of
fusion chart. Inside this *ChartServletNew  *there is a link attrubute in
which will call a javascript function which in turn will call the Servlet
again.

This is done in this manner

*xStreamWriter2.writeAttribute("link","JavaScript:updateFusionChart(\""+newCondQuery+"\",\""+funcNameList.get(k)+"\",\""+statusNameList.get(k)+"\",\""+DrillDownKPI+"\"
);");
*
 Below is my javascript function

*function updateFusionChart(condQuery,Mngmnt,stutus,kpi,serviceID){

        if ( !serviceID){

            var strURL = "ChartServletNew?GM=" + Mngmnt + "&status=" +stutus
+ "&kpi=" +kpi+ "&condQuery=" +condQuery;
            strURL = escape(strURL);
             var chart_CityDetails = new
FusionCharts('FusionCharts/StackedBar3D.swf?ChartNoDataText=Click right
chart to view Services Details',
            'ServDetails', '550', '450', '0', '1');
            chart_CityDetails.setDataURL(strURL);
            chart_CityDetails.render(Mngmnt+kpi+"ServDetailsDiv");

        }
        else if (serviceID){
            var strURL = "ChartServletNew?GM=" + Mngmnt + "&status=" +stutus
+ "&serviceID=" +serviceID + "&kpi=" +kpi+"&condQuery="+condQuery;

            //URLEncode it - NECESSARY.
            strURL = escape(strURL);
             var chart_CityDetails = new
FusionCharts('FusionCharts/StackedBar3D.swf?ChartNoDataText=Click right
chart to view Services Details',
            'SubServDetails', '800', '450', '0', '1');
            chart_CityDetails.setDataURL(strURL);
            chart_CityDetails.render(Mngmnt+kpi+"SubServDetailsDiv");

        }
        else {
            //Show error
            alert("Please wait for the charts to load.");
            return;
        }
    }
*

 So like this it will again call the GWT fusion chart calling method and
give the appropriate chart.


 So according to my issue if i loaded a page with a fusion chart and clicked
on the link attribute on the fusion chart,then the second time i am loading
another page with

On Mon, Apr 13, 2009 at 8:34 PM, Salvador Diaz <[email protected]>wrote:

>
> It looks like you're having several problems and they might be
> unrelated, you should try to explain your setup a little more clearly
> (for instance, what are those fusion charts you're talking about and
> how do you call them from your gwt code ?).
>
> As for the display differences between Firefox and IE, I've
> encountered similar issues when widgets are displayed in an
> AbsolutePanel: if you don't set the size of the absolutePanel (ie:
> absolutePanel.setSize("100%", "100%")) the widgets will be visible in
> Firefox but not in IE, so make sure you're setting the size of the
> absolutePanel.
>
> Cheers,
>
> Salvador
>
> On Apr 13, 12:11 pm, shajeer kt <[email protected]> wrote:
> > Hii,
> >
> >    Where can i get OOPHM plugin.. Whether i have to add the jar file to
> my
> > existing project. Or adding that plugin directly to Internet Explorer
> > Browser . Please any one tell me,what should i do....??
> >
> > On Sun, Apr 12, 2009 at 8:23 AM, shajeer kt <[email protected]>
> wrote:
> > > So what may be the reason it is working perfectly in mozilla firefox
> and
> > > not in IE.
> > >   Whether Mozilla firefox already have this OOPHM plugin .
> > >        Could any one give me more informations regarding OOPHM with
> respect
> > > to my issue.?
> >
> > > On Sat, Apr 11, 2009 at 3:44 PM, Vitali Lovich <[email protected]>
> wrote:
> >
> > >> It looks like you start your code in hosted mode, but then hit the
> page
> > >> using a regular browser.  You cannot run HostedMode code against a
> regular
> > >> browser without the OOPHM plugin for obvious reasons.  In HostedMode,
> your
> > >> code runs ins a regular JVM with GWT code that acts as a communication
> layer
> > >> between the browser & native Java code.  But without the hosted mode
> browser
> > >> or the OOPHM plugin, there's nothing for it to communicate with.
> >
> > >> So what you are seeing here is perfectly expected.  Either use the
> > >> HostedMode browser or build from trunk & use the OOPHM plugin
> according to
> > >> the instructions on the wiki.  Or run the regular browser against the
> > >> compiled code.
> >
> > >> Those are your options.
> >
> > >> On Sat, Apr 11, 2009 at 8:28 AM, babu <[email protected]> wrote:
> >
> > >>> Dear all,
> >
> > >>> I am currently facing a problem in which i am not able to understand
> > >>> the reason. This problem is happening only in hosted mode and when
> > >>> using IE.In Mozilla firefox it is working fine.
> > >>> I am currently having an application in GWT containing Some grids and
> > >>> some  drill down charts using fusion charts . If i clicked on a
> fusion
> > >>> chart the other drill down chart is loading.When i clicked the second
> > >>> one,the third drill down chart is loading.Its working perfect.
> > >>> Now if i took another page then tried the above procedures in hosted
> > >>> mode or in IE, All the charts are going to an invinsible mode . I can
> > >>> see only a white screen which contains nothing . Only i can view the
> > >>> back,forward,refresh,stop button and the url.
> >
> > >>> Now if i again load the application and took the page that gone blank
> > >>> before it will work fine,but the other page which was working fine
> > >>> will be going to the blank page which i told above.
> >
> > >>> In GWT development shell i was getting an uncaught Exception which is
> > >>> attached below.( Even i am getting this exception rarely,Not every
> > >>> time )
> >
> > >>> [source][ERROR] Uncaught exception escaped
> >
> > >>> java.lang.NullPointerException: null
> > >>> at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
> > >>> (JavaScriptHost.java:91)
> > >>> at
> com.google.gwt.http.client.XMLHTTPRequest.getBrowserSpecificFailure
> > >>> (XMLHTTPRequest.java)
> > >>> at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
> > >>> (Request.java:248)
> > >>> at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
> > >>> (Request.java:226)
> > >>> at com.google.gwt.http.client.Request.fireOnResponseReceived
> > >>> (Request.java:217)
> > >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>> at sun.reflect.NativeMethodAccessorImpl.invoke
> > >>> (NativeMethodAccessorImpl.java:39)
> > >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > >>> (DelegatingMethodAccessorImpl.java:25)
> > >>> at java.lang.reflect.Method.invoke(Method.java:585)
> > >>> at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> > >>> 103)
> > >>> at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
> > >>> (IDispatchImpl.java:126)
> > >>> at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
> > >>> (IDispatchProxy.java:155)
> > >>> at
> com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
> > >>> 294)
> > >>> at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
> > >>> (IDispatchImpl.java:194)
> > >>> at org.eclipse.swt.internal.ole.win32.COMObject.callback6
> > >>> (COMObject.java:117)
> > >>> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> > >>> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
> > >>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
> > >>> at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
> > >>> at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
> > >>> at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)[/source]
> >
> > >>> But when i compiled and run it in a Mozilla FireFox browser. it is
> > >>> working fine and there is no problem at all.
> > >>> Only in hosted mode and IE i am facing the problem.
> >
> > >>> When i asked the fusion chart Forum they replied as it may be a GWT
> > >>> issue.
> >
> > >>> What may be the reason for this bug ?  Any body faced such an
> > >>> exception before ?
> > >>> Somebody please help.
> >
>


-- 
Regards,

Shajeer Kannamthodi
Riyadh
Mob:009665-64566832

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to