Tag Archives: json

Download Excel with AJAX Request

This is a simple example where we will discuss how we can download excel through ajax request. This example will use jquery and .net mvc and NPOI framework to create an Excel worksheet. Below is the snippet where we are making … Continue reading

Posted in C#, javascript, Javascript and Jquery | Tagged , , | Leave a comment

Excluding object properties while json-stringifying

Example to exclude the properties of javascript object. var graphic= new GraphicalElement(); graphic.objectType = “CIRCLE”; graphic.data = { radius: 20 }; //Removes the property objectType from graphic object graphic.toJSON = function() { var attrs = {}; for (var attr in … Continue reading

Posted in javascript | Tagged , | Leave a comment