Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home for chromium.org
« Groups Home
Message from discussion How to work around manifest 2 ban of eval?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
CqN on cr-48 devchannel 0.12.397.0  
View profile  
 More options Jul 18 2012, 12:14 pm
From: "CqN on cr-48 devchannel 0.12.397.0" <chackoner...@gmail.com>
Date: Wed, 18 Jul 2012 09:14:38 -0700 (PDT)
Local: Wed, Jul 18 2012 12:14 pm
Subject: How to work around manifest 2 ban of eval?

This is a bit OT, in that it is more a js question.  But the solution has
to fit in under the manifest ver 2 limitations, so somebody here may know
how.

In an app (chrome notebook) under manifest v1 I had some code like this:

var str = '[ {a:"xx", b:"yy",...}, {a:"pp", b:"qq", ...}, ... {...} ]';
 //this is a synthesized (parsed) string of values obtained from a web
search
var AA = [];

eval ( 'AA=' +str +';' );  //to get the array of lists into AA

How can the above be re-coded to avoid using eval?  If I split the str with
',' it would split the list items too.  Any suggestions?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.