Category: "JavaScript"

DataTables - Passing Data to the Server in Client-Side processing mode

DataTables is AWESOME. I use it for list-based selection, table-based editing, data display and filtering and anything else I can think of because it is so robust that virtually anything is possible. Really. If the dataset being used is fairly small… more »

Web application session timeout code

Session timeout warning for a web application with a variety of page layouts and frequent use of multiple tabs. Nutshell explanation - ping the server, if you get a 403, show a huge red bar across the top of whatever page pinged. Result: It is immed… more »

Session Timeout Recovery

If you're using Ajax to save data on a page, it can be difficult for the client to know if the session has timed out on the server. This post describes the use of session storage to save and restore the data on a page input when a session times out. L… more »

One Approach to Complying with a "script-src 'self'" Content Security Policy

I recently encountered this error when working with plugin code on an application: Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' chrome-extension-resource:". The cause of the e… more »

A Very Simple Node/Express JSON Form Example

Server-side (file is named server) This code is invoked with: node server Once it is invokec, call the page with http://example.com:1337/form.html Code// Express is a framework used with node that provides many important constructsvar express = requi… more »
1 3 4 5 ...6 ...7 8 9 10