You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

In coding RAMP-TS scripts in JavaScript these code fragments are all standard and equivalent:

x = new Object();
x.a = 1;
x.b = "Hello";
 
-----------------------------------------
 
x = { a : 1, b : "Hello" )
 
-----------------------------------------
 
x =

Unknown macro: { "a" }

  <========= which is the JavaScript format that was chosen for use in AJAX-JSON strings.  
 
-----------------------------------------
 
x = { };
x["a"] = 1;
x["b"] = "hello";
 
-----------------------------------------
 
x = new Object();
x["a"] = 1;
x["b"] = "hello";
 
-----------------------------------------






  • No labels