Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

GWT and javascript variables

Posted on 2013-11-27
2
Medium Priority
?
328 Views
Last Modified: 2013-11-27
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
Comment
Question by:thready
  • 2
2 Comments
 
LVL 1

Accepted Solution

by:
thready earned 0 total points
ID: 39681772
The call I needed was JsonUtils.unsafeEval(response.getText()).
0
 
LVL 1

Author Closing Comment

by:thready
ID: 39681776
Awesome answer (I write good answers to my stupid questions)...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question