Using HTML5/JavaScript to generate and save a file

I've been fiddling with WebGL lately, and have gotten a Collada reader working. Problem is it's pretty slow (Collada is a very verbose format), so I'm going to start converting files to a easier...

Calculating usage of localStorage space

I am creating an app using the Bespin editor and HTML5's localStorage. It stores all files locally and helps with grammar, uses JSLint and some other parsers for CSS and HTML to aid the user. I...

How do I parse RFC 3339 datetimes with Java?

I'm trying to parse the date returned as a value from the HTML5 datetime input field. Try it in Opera to see an example. The date returned looks like this: 2011-05-03T11:58:01Z. I'd like to parse...

How to parse Excel (XLS) file in Javascript/HTML5

I am able to read Excel file via FileReader but it outputs text as well as weird characters with it. I need to read xls file row-wise, read data in every column and convert it to JSON. How to read...

jQuery parsing XML: get an element with a specific attribute

I'm developing an HTML5 application. I want to parse an XML like this one: <?xml version="1.0" encoding="utf-8" ?> <cards> ... <card id="3"> <name lang="es"></name> <description...

Uploading multiple images with one input field

i have created a photography website with an admin page that uploads photos to different categories in a mysql table. This much works, but i can only upload one file at a time and i'd like to be...

Fullcalendar for HTML5 LocalStorage

I am using the Full Calender jQuery plugin. I wanted to store the events and retrieve thru LocalStorage HTML5. And I have achieved storing part using JSON and got back the item from localstorage...

Validating base64 encoded images

I'm building an application that allows the user to POST HTML5 canvas data that is then encoded in base64 and displayed to all users. I am considering parsing the data into an actual .png file and...

Check if file has changed using HTML5 File API

Okay, so I have a program which outputs some specific data to a tab separated variable file. I had been using Excel to open and view the file contents, however I found excel's insistence on...

S3 Static Website Hosting Route All Paths to Index.html

I am using S3 to host a javascript app that will use HTML5 pushStates. The problem is if the user bookmarks any of the URLs, it will not resolve to anything. What I need is the ability to take all...

Reading line-by-line file in JavaScript on client side

Could you please help me with following issue. Goal Read file on client side (in browser via JS and HTML5 classes) line by line, without loading whole file to memory. Scenario I'm working on web...

Does HTML5 Video support srt textTrack?

I have tried the html5 video with textTrack, it works properly with .vtt (WebVTT). However, it doesn't work with .srt. So my question is whether html5 support .srt on the chrome or firefox? I have...

How to use PHP to access query string variables created by History.PushState without ajax and without reloading the page

Thanks to HTML5's extension to the Javascript's History API, Javascript developers now enjoy greater control over the browser's history and can even change the state of a given page and provide a...

Parse Uploaded CSV file using D3.js

I'm new to d3.js so I know this might seem as a silly question to some so please bear with me. I'm trying to parse a csv file which a user uploads and print it's output in the console. I'm able to...

POST http://localhost:3000/api/signup 400 (Bad Request)

I'm new to MEAN stack and having trouble with sending registration data through http.post. Here is my server code: var express = require('express'), bodyParser = require('body-parser'), ...

Add Favicon with React and Webpack

I am attempting to add a favicon to a React-based website that I made using webpack. It has been a total nightmare to add a favicon and I have tried many solutions to no avail. The latest solution...

Insert new line in text only div

I'm working with a CMS that allows only text in a certain div (HTML , like <br>, is parsed to &lt;br&gt;). It is fine with Unicode / HTML codes (e.g. &amp; would generate & and &#x00040; would...

Unable to parse HTML5 in .NET

I am having a problem with a simple ASP.NET form. I have coded it locally and tested it locally by hitting F5. I have now uploaded it to my server but I am getting parser errors. Parser Error...

Displaying multiframe dicom images using HTML5 canvas and Javascript

I'm trying to display multi-frame dicom images in a browser using HTML5 canvas and javascript. So far I can render single framed images just fine but I'm having trouble with multi framed...

Why (and How Can I FIx) ESLint import/no-extraneous-dependencies Failures on Installed Packages?

When I run ESLint I get the following errors: 1:13 error 'joi' should be listed in the project's dependencies. Run 'npm i -S joi' to add it import/no-extraneous-dependencies 2:16 error ...

How to extract only text from HTML in Golang?

To extract text from HTML, I use a fully HTML5-compliant tokenizer and parser, like this s := ` <p>Links:</p><ul><li><a href="foo">Foo</a><li> <a href="/bar/baz">BarBaz</a></ul><span>TEXT...

npm ERR! Invalid version: "1"

QUESTION: When doing "node app" on my local machine, everything works. But when I deploy my project to the Google App Engine, the instance is killed and I find the following error in my logs: npm...

Ng-template to bootstrap popover inside svg

I'm developing a web application using Angular 5 with Ngx-Bootstrap and I'm having a trouble in the template inside a SVG tag. I'm doing a loop in a svg group (g tag). Inside G I have some...

heroku node deployment(react-boilerplate) sh: 1: node-pre-gyp: not found error

I'm getting error when deploying react-boilerplate on heroku with feathers, nodejs, mongodb, react. I specified up to date versions in package.json, and tried building with both npm and yarn but...

How to parse and play Blob/Binary data from database in Angular 5

In my Angular 5 application, I am retrieving data which is stored as VARBINARY(MAX) in SQL Server database. It looks like this in the database field: 0xFEA47E451A40AE4571E51F... When I retrieve it...

How to send/"stream" video file to HTML5 video tag

I've tried to send a video file into HTML5 <video>-tag. I've found a snippet which dates back to 2010 if not earlier. It's replicated all over the Internet and still circulates it, with some minor...

Google map api not showing map after app being deployed to heroku?

const express = require('express'); var app = express(); var bodyParser = require('body-parser'); var exphbs = require('express-handlebars'); var cors = require('cors'); //setup view...

How to embed external js code into React component

I am working in a project, where I have to use a widget_api code provided by RIPE Stat, to integrate the graphical widget into a React component. For example in HTML5, I would have done it like...

Handling Callbacks with Webview Android

Hello i am creating a Android Application. I do not like using Androids UI System and have elected to use the WebView for UI Design as it is easier for me coming from a HTML5 Background. I have...

How to replace text in a PDF using Python?

I have taken the code from another thread here that uses the library PyPDF2 to parse and replace the text of a PDF. The given example PDF in the thread is parsed as a...