Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 331
  • Last Modified:

GWT and javascript variables

Hi Experts,

I'm using GWT's RequestBuilder to get back some JSON from the server.  I'm trying to give back the text response to javascript instead of parsing this in GWT to speed things up.  I'm thinking the best / easiest way would be to dynamically inject a javascript variable into whatever my current scope is, but I don't know how to do that. That way, I could use this variable as a temporary variable that I can plop my GWT overlay onto...  Is this the right way to think about this?  Any suggestions?  Also, more importantly, how do I inject this javascript variable into current scope if possible?

Thanks!
Mike
0
thready
Asked:
thready
  • 2
1 Solution
 
threadyAuthor Commented:
The call I needed was JsonUtils.unsafeEval(response.getText()).
0
 
threadyAuthor Commented:
Awesome answer (I write good answers to my stupid questions)...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now