Tables with Spreadsheet like functionality https://github.com/mleibman/SlickGrid https://ethercalc.net/ (Node.js)
Category: Javascript
Javascript and jscript
Was private server.js var http = require(“http”); var url = require(“url”); var serverStartedDateTimeFormatted = formatDate(new Date()); var requestCount = -1; var requestStack = {}; var responseToSend = “”; /* Use of seq numbers: The client sends in a request with a seq no (starts at 0 on a a client restart) client.request is added into […]
ke2therm1 (was private) index.js var server = require(“./server”); console.log(“index.js”); server.start(); server.js var http = require(“http”); var url = require(“url”); // Additional modules var nodestatic = require(‘node-static’); /* var mysql = require(‘mysql’) var connection = mysql.createConnection({ host : ‘hhhhhh’, user : ‘uuuuuuuuu’, password : ‘ppppppppppp’, //database : ‘dddddddddd’ }); connection.connect(function(err) { writeLogWithTimeStamp(err); }); */ // Note […]
Was private package.json { “name”: “mockedsend”, “version”: “0.0.0”, “description”: “”, “main”: “index.js”, “repository”: “”, “author”: “Lindsay”, “dependencies”: { “request”: “~0.2.8” } } index.js // // var http = require(“http”); var OutRequest = require(‘request’); var serverStartedDateTimeFormatted = formatDate(new Date()); var verisae = {}; verisae.server = “verisaemockedreceivepublic-c9-flipperandfriends.c9.io”; verisae.path = “alarm”; verisae.login = “loginhere”; verisae.password = “pwd” verisae.xml […]
Was public 2013 server.js var http = require(“http”); var url = require(“url”); var serverStartedDateTimeFormatted = formatDate(new Date()); var requestCount = -1; var requestStack = {}; var responseToSend = “”; function start() { writeLogWithTimeStamp(“Starting”); function onRequest(request, response) { var body = “”; request.on(‘data’, function (chunk) { body += chunk; }); request.on(‘end’, function () { console.log(‘POSTed: ‘ […]
relay.js 2013 Most likely a man in the middle logger for trouble shooting machine that M2C (KE2 to Ver Cloud) interface var http = require(“http”); var https = require(“https”); var url = require(“url”); var serverStartedDateTimeFormatted = formatDate(new Date()); function start() { writeLogWithTimeStamp(“Starting”); // Original request handler function onRequest(request, response) { request.url_parts = url.parse(request.url, true); writeLogWithTimeStamp(request.url); […]
Probably output of that Getting started with Node.js ebook workbook index.js var server = require(“./server”); var router = require(“./router”); var requestHandlers = require(“./requestHandlers”); var handle = {} handle[“/”] = requestHandlers.start; handle[“/start”] = requestHandlers.start; handle[“/upload”] = requestHandlers.upload; handle[“/show”] = requestHandlers.show; server.start(router.route, handle); requestHandlers.js var querystring = require(“querystring”); var fs = require(“fs”); function start(response, postData) { console.log(“Request […]
TestComplete website has many snippets of JScript on its support sites, but I am seeking examples of a more OO approach to using Jscript within TestComplete. Most JScript code to me appears to be written more inthe functional VBScript style. Really, I’m looking for a best practice guide but can’t find much.. —- Note its quite clear […]
TestComplete v10.5 trial version installed 2 weeks ago TestComplete allows choices of scripting language. I am fairly conversant in VBScript, but we will use JScript as it is more versatile with regard to object arrays etc. But I am much less conversant with Javascript/Jscript so that will be a learning exercise.
TestComplete has an example of parsing an XML file out to the TestComplete log. It will be a useful javascript learning exercise to extend this to parsing the xml to a javascript object tree , with recursive finder functions. Probably so many bad practices evident in here… It creates a tree structure of type XMLNode […]