Solved

GWT and javascript variables

Posted on 2013-11-27
2
312 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
Comment Utility
The call I needed was JsonUtils.unsafeEval(response.getText()).
0
 
LVL 1

Author Closing Comment

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now