1. User Event Scripts (UE) Used to determine the action triggering the event: create: A record is being created. edit: A record is being edited. view: A record is being viewed. delete: A record is being deleted. xedit: A record is edited in inline edit mode. approve: A record is being approved. reject: A record… Continue reading Script Context Type Values for each scripts
Category: JavaScript
JavaScript method for invoking interceptable JavaScript object internal methods
The Reflect namespace object contains static methods for invoking interceptable JavaScript object internal methods. Some of the examples are provided below Detecting whether an object contains certain properties const duck = { name: “Maurice”, color: “white”, greeting() { console.log(`My name is ${this.name}`); }, }; Reflect.has(duck, “color”); // true Reflect.has(duck,… Continue reading JavaScript method for invoking interceptable JavaScript object internal methods
HTML code to add toaster
<style> /* Toaster Container */ .toaster { position: fixed; top: 20px; right: 20px; z-index: 9999; } /* Toaster Notification */ .toast { background-color: #333; … Continue reading HTML code to add toaster
Add a PrimeVue library component to an HTML page that uses Vue.js.
Add the script below for using primevue. <script src=”https://unpkg.com/primevue/umd/primevue.min.js”></script> <script src=”https://unpkg.com/@primevue/themes/umd/aura.min.js”></script> const { createApp } = Vue; const app = createApp({ }) app.use(PrimeVue.Config, { theme: { preset: PrimeVue.Themes.Aura, options: { darkModeSelector:… Continue reading Add a PrimeVue library component to an HTML page that uses Vue.js.
Intro to Node’s built-in SQLite module
SQLite in Node makes it easier than ever to persist data with server-side JavaScript. Get started with the node:sqlite module. Node 22.5.0 now bundles SQLite, a lightweight, in-process relational database that requires no additional infrastructure but packs considerable capability. Let’s get to know this handy new built-in feature in Node.js. What is SQLite? Relational databases are a key component… Continue reading Intro to Node’s built-in SQLite module
Node.js performance hooks and measurement APIs
You’ve written and deployed your application and gathered users – congrats! But what’s next? Improvements, getting rid of bottlenecks, increasing execution speed, and more enhancements are in line. In order to make these improvements, you first have to be aware of your app’s existing performance characteristics. Only when you’ve identified the slow parts and the… Continue reading Node.js performance hooks and measurement APIs
OOPS in JS
⭐ What is OOPs ? Object-oriented programming is an approach to solving problems by creating objects . ⭐ 4 Pillars of OOP Terminologies in OOP Abstraction – Hiding internal details (show only essential info!) Encapsulation – The act of putting various components together (in a capsule) Inheritance – The act of deriving new things from existing things Polymorphism –… Continue reading OOPS in JS
How to Use express-rate-limiter to Limit User Rates in Node.js
In modern web applications, it is very common to have user authentication and authorization systems. These systems provide user-specific functionality and data, which requires that each user has a certain level of access and control over the resources they own. However, when these resources are accessed in a rapid and repetitive manner, it can lead… Continue reading How to Use express-rate-limiter to Limit User Rates in Node.js
Building a Search Engine Using Node.js and Elasticsearch
Search engines are an essential part of today’s web applications. They help users find relevant content quickly and easily. Elasticsearch is a popular open-source search and analytics engine that can be used to build powerful search engines. In this blog post, we will explore how to build a search engine using Node.js and Elasticsearch. Prerequisites… Continue reading Building a Search Engine Using Node.js and Elasticsearch
✨ Mastering JavaScript Event Delegation: An In-depth Guide!
🚀 When working with JavaScript, handling events efficiently can make a huge difference in terms of the performance and maintainability of your code. One powerful yet often overlooked technique is event delegation. In this blog post, we’ll explore what event delegation is, why it’s awesome, and how you can use it to optimize your event handling in… Continue reading ✨ Mastering JavaScript Event Delegation: An In-depth Guide!