Need help with how to handle system events like the system sleeping/waking

2011-02-21 Thread Glenn Simon
I have written an app that works fine, but when the user PC sleeps due to power settings and the channel times out, I have to refresh the browser to restart the app. I would like to find a handler that will do something just before the system sleeps and do something else as the system wakes up

Re: Problem trying to use JSNI to eval() a JSON string

2011-02-21 Thread Glenn Simon
='com.google.gwt.json.JSON'/ By doing that it made the JSONParser and related classes available on the client side. I couldn't find that documented anywhere, but stumbled upon it on my own. Happy Apping! Glenn On Jan 17, 1:03 am, Glenn Simon glenncochransi...@gmail.com wrote: Thanks for trying to help

Re: Problem trying to use JSNI to eval() a JSON string

2011-01-17 Thread Glenn Simon
Thanks for trying to help, guys, but after modifying and checking the string with JsonUtils, trying com.google.gwt.json.client.JSONParser (tells me the code is unavailable and fails to load my app), and reading Google docs 'til my eyes hurt I can't for the life of me figure out how to make JSON

Re: Problem trying to use JSNI to eval() a JSON string

2011-01-16 Thread Glenn Simon
Yeah, that makes sense. And this is only client side anyway. But I have tried with and without the Serializable implementation and get the same result. Do I somehow need to convert the string to a JSON object before passing it to eval()? -- You received this message because you are subscribed

Problem trying to use JSNI to eval() a JSON string

2011-01-15 Thread Glenn Simon
Here is some of my code: public abstract class Message extends JavaScriptObject implements Serializable { // does it need to be serializable? protected Message() {} public final native String getType() /*-{ return this.type; }-*/; public final native Long getTimeLeft()