javascript - How to grab part of JSON string? -


            this.on('success', function(file, responsetext) {                  var theid = json.stringify(responsetext);                 alert(theid);                  window.location.href = ('want put here');                  }); 

the alert giving me:

{"message":"success","fileid":399}

and grab fileid value, in case 399. thank you.

simply

window.location.href = responsetext.fileid; 

will since responsetext json


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -