Category : model-view-controller

I have been trying in JavaScript to reload a page to particular controller’s action method with a parameter but getting error. My output works when I use window.location.reload(true); But I want to redirect to controller’s action method with PARAM’s value and I am trying this // Gives me the value in a function var supId ..

Read more

I am new to Node JS. I try to create models. The structure should be like this below. "type":"message", "attachments":[ { "contentType":"application/vnd.microsoft.card.adaptive", "contentUrl":null, "content":{ "$schema":"http://adaptivecards.io/schemas/adaptive-card.json", "type":"AdaptiveCard", "version":"1.2", "body":[ { "type": "TextBlock", "text": "For Samples and Templates, see [https://adaptivecards.io/samples](https://adaptivecards.io/samples)" } ] } } ] } I did it like this. const model = function(contentUrl,text) { this.type="message"; ..

Read more