javascript

How to use fetch function to make HTTP requests from Javascript?

Hello everyone and welcome to my blog. In today’s blog I will show how you can make GET and POST requests from Javascript using the fetch function instead of using the very popular XMLHttpRequest. fetch function was introduced way back in 2015 as a modern successor to XMLHttpRequest. fetch returns a Promise and provide a …

How to use fetch function to make HTTP requests from Javascript? Read More »

Upload content to File Attribute in Dynamics 365/ CDS from JavaScript

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com This has been a long ask from my readers since the time I wrote the blog on how to read contents of File attribute using JavaScript in Dynamics 365. So here I am …

Upload content to File Attribute in Dynamics 365/ CDS from JavaScript Read More »

Retrieve contents of File Data Type field in Dynamics 365/ CDS using JavaScript/ client code.

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com Few months back I wrote an article on File Data type in Dynamics 365/ CDS where I explained the details of this data type and explained how you download the content of the …

Retrieve contents of File Data Type field in Dynamics 365/ CDS using JavaScript/ client code. Read More »

Using classList() API in JavaScript to work with multiple classes for a HTML element.

For training and consulting, write to us at info@xrmforyou.com Today I would like to show you the cool classList API which exists in the native JavaScript API but trust me, so many of us are still not aware of it. Event I find people with somewhat significant experience of working with JavaScript is not aware …

Using classList() API in JavaScript to work with multiple classes for a HTML element. Read More »

Store a JavaScript object in localStorage and sessionStorage

For training and consulting, write to us at info@xrmforyou.com I have written a blog recently on sessionStorage and localStorage. However few questions I received on that blog is how can we store Javascript objects in sessionStorage and localStorage. Storing simple string and integer values are fine but what if you want to store a JavaScript object …

Store a JavaScript object in localStorage and sessionStorage Read More »

Understanding sessionStorage and localStorage in JavaScript

For training and consulting, write to us at info@xrmforyou.com Before the advent of HTML 5, all our data in client side used to be stored in cookies. As that was the only option then. The problem with cookies was it was included in every server request. And also the more the cookies you store, you …

Understanding sessionStorage and localStorage in JavaScript Read More »

Difference between var and let in javascript. All you need to know

For training and consulting, please write to us at info@xrmforyou.com And here I am back with a common question that is asked to me by an beginner who is trying their hands out with javascript. After all both var and let are used to declare variables in JavaScript. Well the difference between them is – …

Difference between var and let in javascript. All you need to know Read More »

Want to promisify native XmlHttpRequest in JavaScript? Check this out!

For consulting and training, please write to us at info@xrmforyou.com Promises in JavaScript have taken over by a storm. Gone are the days of nested successCallbacks and errorCallbacks. But still XmlHttpRequest is being used every where and still remains the most popular to perform server HTTP requests. How about giving XmlHttpRequest a makeover. So let’s …

Want to promisify native XmlHttpRequest in JavaScript? Check this out! Read More »

Delete a specific item of an array in Javascript

For training and consulting, write to us at info@xrmforyou.com JavaScript is something perhaps every programmer have worked. No matter whether you are a front end developer, back end developer or full stack developer, chances are for some requirement or other you must have used JavaScript. And if it is JavaScript, you must have used arrays. …

Delete a specific item of an array in Javascript Read More »

Is you Javascript not able to access the cookie? May be they are HttpOnly cookie and not meant for your client side scripts. Check this out!

To access your cookies in JavaScript, you use document.cookie. That’s a no brainer there. Your javascript is using document.cookie. However to your surprise you don’t find the cookie you are looking for. document.cookie simply not returning your cookie. Come on my cookie. But not everything is meant for everybody. And the so the same applies …

Is you Javascript not able to access the cookie? May be they are HttpOnly cookie and not meant for your client side scripts. Check this out! Read More »