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

libGdx unable to find files in android application data directory -

php - Webix Data Loading from Laravel Link -

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