Chris West's Blog

  • Home
  • Site Search
  • About Me
  •  YourJS
  • Search for:

JavaScript, Math, and much more.

Blog

Accessing A Google Script Web App From Other Accounts

Recently I wrote a Google Script Web App that generated JavaScript code and needed to run on a Google Site. Even though I tested everything both on my computer and on my phone I didn’t realize that if someone tried Read more…

By Chris West, 3 months ago June 28, 2023
Blog

GitHub Gists Hack – PIBB Extension

Have you ever wanted to source a GitHub Gist within an <iframe>? Yesterday, I was writing a trainual document for work that needed to include Apex code which of course includes code that is misinterpreted as HTML ( eg. List<Object>…) Read more…

By Chris West, 3 months ago June 28, 2023
Blog

JavaScript – Update HTML Code

Have you ever used JSBin or CodePen and wondered how you can accomplish something like they do on those sites? Of course, CodePen is much more advanced and has more options but if you ever want to combine JavaScript code Read more…

By Chris West, 4 months ago May 19, 2023
Blog

Salesforce – Apex – Working With Regular Expressions

Regular expressions are a great way to parse, match and modify strings of all sorts. Let’s learn some different ways that we can use them in Apex by way of some examples that you can run in the Developer Console. Read more…

By Chris West, 9 months ago December 23, 2022
Blog

Salesforce – LWC – refreshView

When writing an Aura Lightning Component you can use the following to update data for standard components as detailed on this page: Unfortunately, with Lightning Web Components you cannot run the above code as is. Fortunately, you can easily modify Read more…

By Chris West, 9 months ago December 18, 2022
Blog

JavaScript – querySelector()/querySelectorAll() & Template Elements

Did you know that you cannot use querySelectorAll() function on <template> elements? By that I mean that the following code will in fact not return any results: The same thing can be said about trying to use querySelectorAll() function on Read more…

By Chris West, 1 year ago July 24, 2022
Blog

Simple CSS Loading Spinner

I recently wanted to create my own simple loading spinner with just HTML and CSS. Here is the code that I came up with: HTML CSS See It In Action Below is what it looks like in action. I added Read more…

By Chris West, 1 year ago June 27, 2022
Blog

JavaScript – Async Function Constructor

In JavaScript you can create a function by using the Function constructor: The above code produces a sum() function which takes 1 or more arguments and returns the sum of them all added together. You can check out the following Read more…

By Chris West, 1 year ago June 24, 2022
Blog

PHP Snippet – parse_jsonc()

A few months ago I wrote a quick post showing how to parse JSONC (JSON with comments) files in JavaScript. Shortly thereafter I adapted the code to work in PHP as well: This function takes the same arguments that you Read more…

By Chris West, 1 year ago June 8, 2022
Blog

IO App – XML To JSON Converter

There are a lot of online converters out there that will take XML file contents and turn it into JSON. I decided to make my own and then show how simply this can be done with modern JavaScript: How Does Read more…

By Chris West, 1 year ago June 7, 2022

Posts navigation

1 2 … 36 Next
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Archives
Categories
Blog (345) CSharp (1) Games (3) HTA (2) Java (5) JavaScript (219) JScript (149) Math (49) Microsoft Office (16) Movie Trailers (1) PHP (13) POW Answer (2) Problem of the Week (31) Python (15) Reporting (1) Salesforce (6) SQL (28) VBA (6) VBScript (8) Videos (9)
Tags
Apache (1) Apex (3) Array (37) Audio (2) Bash (3) Canvas (6) Chrome (3) CSS (12) CSS3 (2) Curry (1) Date (6) EcmaScript 6 (8) Encryption (2) Español (2) Excel (20) Function (135) GitHub (12) Hack (8) HTML (4) HTML5 (2) JasperReport (2) JasperServer (1) jPaq (35) JSON (2) JSONP (2) JW.org (5) Logic Puzzle (2) LWC (2) Mail Merge (1) Math (53) Network (1) OpenKM (2) PostgreSQL (27) Private Data (4) Problem of the Week (31) Prototype (41) Quirk (3) Recursion (10) Regular Expressions (22) String (62) SVN (1) Video (2) Wildcards (3) WScript (2) YourJS (17)
  • About Me
Hestia | Powered by WordPress