Loading....

Curd with javascript

var obj = new Object();
obj.Query = " Encrypted Query ";
obj.ArrCols = ["id" ];
obj.ArrVals = [id];  
fetch("path/methodName", {
    method: "POST",
    headers: { "Content-Type": "application/json; charset=utf-8" },
    //body: JSON.stringify({ id: id })
    body: "{'dq':" + JSON.stringify(obj) + "}"
})
    .then(r => r.json())
    .then(r => {
        $("#loading").hide(); 
        var data = JSON.parse(r.d);
        $('#divEmailPreview').html(data?.[0]?.body || "No template found.");
    });
                    


Last Update: July 10, 2026  

July 9, 2026 9 vikas@crmhike.com  JS
Total 0 Votes:
0

Tell us how can we improve this post?

+ = Verify Human or Spambot ?

Add A Knowledge Base Question !

You will receive an email when your question will be answered.

+ = Verify Human or Spambot ?

Back To Top

Add A Knowledge Base Question !

You will receive an email when your question will be answered.

+ = Verify Human or Spambot ?