News

These snippets are designed to be dropped into any website, regardless of its underlying framework or structure. They are all ...
pkg), and it’s as straightforward on the javascript side. Open up DevTools Console and enter this: const sayHello = new Function('return function (name) { return `Hello, ${name}` }')(); then call the ...
I am trying to create a text editor which operates on contenteditable div. As it requires some events cancelled based on certain keystrokes etc, I cannot use Blazor ...
async function setMediaUsingStreaming(fileType, fileStream) { try { const arrayBuffer = await fileStream.arrayBuffer(); const blob = new Blob([arrayBuffer]); const ...
This is possible in JavaScript thanks to first-class functions ... If you’ve ever seen a function call that has two sets of parentheses, that’s a higher-order function. This sort of thing ...
It would be great if you could call Blazor C# methods from your JavaScript code. Right now, that's not quite possible: Simply calling Blazor C# from JavaScript won't work (you'll get a message about a ...