if (isSavedSuccessfully)
{
return Json(new { Message = fName });
}
ASKER
<script>
Dropzone.options.myAwesomeDropzone = {
init:
function () {
this.on("complete", function (file) {
alert("Save File: " + file.xhr.responseText);
alert("Json Return Msg: " + file.Message);
document.getElementById("photolistingtodatabase").value = document.getElementById("photolistingtodatabase").value + file.xhr.responseText + ",";
});
}
};
</script>
ASKER
ASKER
JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.
TRUSTED BY
Open in new window
If you're not using jQuery, the principles will likely be the same - your AJAX request will have an event handler that gets ran when it completes. The result of your code will be passed back to that handler as JSON, so you just access the properties accordingly.