Whenever you write JavaScript, you’re risking creating bugs. The risk of bugs increases proportionally as the amount of code and code complexity increases. There are ways to avoid bugs; I recommend ESLint, JSHint, or a language extension such as TypeScript to help reduce the introduction of bugs into your codebase. This post isn’t meant to […]
Posts Tagged ‘JavaScript’
Detecting the Use of a Touch Screen
Here’s a fun one: Ever have some UI/UX interaction that needed to be one thing for mouses and another thing for touch devices? Ever used Modernizr? If you have, you may be familiar with this gem: Warning: Indicates if the browser supports the Touch Events spec, and does not necessarily reflect a touchscreen device You […]
Reusable Components for a CMS, Using the Revealing Module Pattern
Before we get started, I recommend reading about the revealing module pattern and closure, if you’re not already familiar with them. When you are building components for use in a CMS, it’s important to understand that you have less control over the use of these components than you may initially think. Programming these blocks in such […]
Using Webpack to Enable Dynamic Imports and Long-Term-Caching
Background Many people are using Webpack in front-end projects to pack their modules, especially for big single page application. Usually, it will pack up all your js files into one js bundle., but you may not need them all at the same time since it will take longer when the page is being loaded. So, […]
Experience Editor error strikes again!
“After parsing a value an unexpected character was encountered: {. Path ‘scLayout’…
Connecting Javascript with Apex Remote Actions for a Single Page Application
How to Connect UI to a Salesforce Backend Working with a Visualforce page and its MVC pattern is very powerful when it comes to bind the data from the standard and custom Salesforce objects, but for creating a single page application that provides a better UX and kind of and app look and feel rather […]
#AdobeSummit Standout: PhoneGap and Framework7 for Mobile Apps
We’ve seen many innovative features and products launched at Adobe Summit 2017. As a developer, one cool feature that attracted me the most was the development of a hybrid mobile application with PhoneGap along with Framework7 open source UI framework. When developing a mobile application using JavaScript, CSS and native libraries, I have faced issues with […]
Handle JSON Data Using JavaScript Expression in OSB 12c
Oracle Service Bus 12.2.1 provides a JavaScript action, which allows us to include snippets of JavaScript code to be executed during proxy pipeline processing. The most common case for using JavaScript is when dealing with JSON objects in REST services. Rather than converting the payload to XML and using XQuery or XSLT for manipulation, using […]
How to Extend SCORE Components with Custom Functionality
SCORE’s Bootstrap UI layer delivers core functionality for the most commonly used components in web development. When the core offering does not satisfy your requirements, though, one option may be to extend SCORE components with custom functionality.
Sitecore FXM Unable to locate JavaScript beacon on external site
Federated Experience Manager (FXM) is a very useful part of Sitecore, in that it allows end users to add content to and track events on external applications. This is good because it means that clients do not have to convert all of their existing applications into the Sitecore instance to use it’s functionality. In a […]
Create a Microsoft Outlook email using JavaScript
This proof of concept provides reusable code for implementing MS Outlook email functionality using JavaScript. Here we create a sample email content (.eml file) which could directly be hard coded or fetched from document id or class. Here we create a blob data type where we create mail subject using creatObjectURL () function. Here […]