Read string from another JS file
<p>i have test1.js which contains JSON string like following
{"SearchMoreText": "View more results"}</p>

<p>Now, i have another test2.js file where i need this string, i can't assign above string to any variable as i need to read test1.js from server side and need to create dictionary object. i need to read this string from test2.js and put it to js variable so i can access this client side too.</p>

<p>test1. js</p>

<pre><code>{
"foodtabsettings": [  
  {"tabText": "Add Meal Plan", "tabOrder": "1", "tabID": "QuickListNav_5" }, 
  { "tabText": "Search Foods", "tabOrder": "2", "tabID": "QuickListNav_1" },
  { "tabText": "My Favorites", "tabOrder": "3", "tabID": "QuickListNav_3" },
  { "tabText": "Created by Me", "tabOrder": "4", "tabID": "QuickListNav_4" }
]}
</code></pre>

<p>in test2.js</p>

<pre><code>(function() {
 var settings = Need string from test1.js
}();
</code></pre>

<p>Any help?</p>
