Solved

GWT and javascript variables

Posted on 2013-11-27
2
318 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

828 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