?
Solved

GWT and javascript variables

Posted on 2013-11-27
2
Medium Priority
?
324 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

770 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