I’m currently making an SPA where you can log in, get authenticated by an API and then upload a CSV file to be parsed. Both sections for authentication and uploading / parsing the CSV file are complete, however, both elements are displayed at the same time. After a user is authenticated their API key is ..
Category : single-page-application
I am new to JavaScript and Electron JS. I am trying to build a Desktop application with a login page.(with Python Backend) I found this github repository for routing in my SPA: electron-quickstart-spa screenshot of my menubar Is it possible to add a page that does not display the menu bar (login screen) ? (before ..
I’m aware that this error may be quite common and have been answered several times before, but I’m stuck for hours now and couldn’t find a solution. My code always throws this error: ".map is not a function". I know that this happens because data is not an array. So I tried to solve this ..
I have a simple SPA set-up for my Eleventy site: (function () { ‘use strict’; var $ = function (sel, con) { return (con || document).querySelector(sel); }; var nav = $(‘.nav’); if (!nav) { console.warn(‘no navigation found.’); return; } nav.addEventListener(‘click’, function (evt) { var el = evt.target; var spa = el.getAttribute(‘data-spa’); if (!!spa) { evt.preventDefault(); ..
We’re implementing logging & monitoring for a Vue/Node application which is using a REST Api. Oftentimes the API returns 4xx reponses (401s, 404s) which are currently caught by Axios and returned as "Errors". These end up in our logging solutions (Datadog, Sentry) but dont bring much actionable points. Should in general status codes like these ..
Thank you for browsing. I have a small Single Page Application that is compressed into a ZIP file. It consists of an HTML file, other JS files and CSS. I would like to create a sandbox space (e.g., iframe, etc.) in my browser and render this zip file there without a server, is this technically ..
I have a modular single page html that dynamically loads content html based on a wide variety of attributes which are not important. The code below works great except the script is not loaded. I have a place in the dynaHtml function to insert script but can’t find any examples of this type of loading. ..
Let’s say a Single Page Application (SPA) written in angular or vuejs for example loads 3 components on a page and each component calls a different backend api. Then, a user refreshes the page. The same 3 calls are made but this time, the backend returns 304 for each of them. The SPA components are ..
I need to create an SPA for an API where the user can search for content within the API, the given API is the Victoria and Albert museum one. I’ve done a lot of research but I am struggling to make sense of what I am reading. I need to use HTML, CSS and Javascript ..
I have been looking for ways to find a way to make a single page application with vanilla javascript only but sadly I could not find one. I found this code in a tutorial on how to make a SPAs, however the issue is location.pathname returns not the URL path but the file path instead ..
Recent Comments