Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Move results from success: function (data) { to variables

$
0
0

I have returned some data from an Ajax call and displayed it in an alert. All the data is there.

success:function(data) {

alert(data);

Looks like this          {"type":"mytype","size":"mysize""width":"mywidth"}

How do I get them into variables. like

var x = mytype;

var y = mysize;

var z = mywidth;


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>