Hi,
I has convinced i've solved my problem, but
in GWT, doing:
public String getState() {
return this.nativegetState(getJso());
}
public final native String nativegetState(JavaScriptObject jso ) /*-
{
alert(jso.getState());
return 'a';
}-*/;
,in MotionChart, after an 'ready' event, i still get the same
exception:
"[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (Error):
number: 0
description:
at
com.google.gwt.visualization.client.visualizations.MotionChart.nativegetState(Native
Method)
at
com.google.gwt.visualization.client.visualizations.MotionChart.getState(MotionChart.java:
69)
at com.maineavtech.matcbextgwt.client.gui.portal.DashboardPortal
$2$1$3.onEvent(DashboardPortal.java:357)
"
Again, i'm lost.
I don't know if this is the best place to ask this.
Any ideas?
Thanks,
J
On Mar 31, 9:19 am, indianajorge <[email protected]> wrote:
> you're correct.
>
> Thank you,
> J
>
> On Mar 31, 9:06 am, ChartMan <[email protected]> wrote:
>
> > Hi
>
> > If you look at the motionchart docs Events section you would see that the
> > before any interaction with the chart you should first wait for the 'ready'
> > event. Before that the chart's state is undefined.
>
> > I will try to clarify this better in the docs.
>
> > ChartMan
>
> > On Wed, Mar 31, 2010 at 9:13 AM, indianajorge <[email protected]>wrote:
>
> > > Hi
>
> > > In code playground, using Mozilla 5.0 and the defauld motionchart
> > > script (http://code.google.com/apis/ajax/playground/?
> > > type=visualization#motion_chart), adding
>
> > > "alert(motionchart.getState());"
>
> > > at the end of the script.
>
> > > thank you,
> > > J
>
> > > On Mar 30, 8:36 pm, ChartMan <[email protected]> wrote:
> > > > Hi
>
> > > > I am not able to reproduce the bug.
> > > > Can you create a small example.
>
> > > > Thanks
> > > > ChartMan
>
> > > > On Tue, Mar 30, 2010 at 1:27 PM, indianajorge <[email protected]
> > > >wrote:
>
> > > > > Hello all,
>
> > > > > I'm having problems extracting the current state of a motion chart
> > > > > object.
>
> > > > > the call motionChartObject.getState(), throws the exception:
>
> > > > > Error: this.n().getState is not a function
> > > > > Archivo de origen:
>
> > > > >http://www.google.com/uds/api/visualization/1.0/03537a5e2d997d1731ec0.
> > > ..
> > > > > Línea: 633
>
> > > > > Is this normal? weren't we suposed to be able to get the state string
> > > > > this way?
>
> > > > > Thank you,
> > > > > Jorge
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "Google Visualization API" group.
> > > > > To post to this group, send email to
> > > > > [email protected].
> > > > > To unsubscribe from this group, send email to
> > > > > [email protected]<google-visualization-api%[email protected]>
> > > <google-visualization-api%[email protected]<google-visualization-api%[email protected]>
>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-visualization-api?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Visualization API" group.
> > > To post to this group, send email to
> > > [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<google-visualization-api%[email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-visualization-api?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" 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-visualization-api?hl=en.