Tagged Questions
0
votes
0answers
112 views
Simple Node.JS server
I am in the process of writing a simple Node.JS webserver. I am about half-way there in terms of functionality. Please see the full code in this pastebin (the client-side code is not shown as I want ...
2
votes
1answer
152 views
How'd I do on this card matching game? Link and code inside
Here is the Card Matching Game.
And Here is the code:
// Author: Matt Gowie
// Created on: 10/01/12
// Project for Web Dev 2400
$(document).ready(function(){
var cardArray =
[
'd-ace', ...
1
vote
1answer
160 views
Which of the two JavaScript snippets has a better structure?
I sat down to write a demo HTML5-ish page that lets a user to perform following operations on a canvas - draw lines, draw a filled rectangle, and reset the canvas. Each operation is represented by a ...
4
votes
3answers
115 views
poor practice to place a ajax in the success of a previous ajax call? ajax-type inception?
Is it bad practice to have a ajax call fire in the success of a previous ajax call? If so, is it bad for readability or efficiency?
My Example:
$.ajax({
type: 'post',
...
success: ...
4
votes
1answer
97 views
Registering layers in a web mapping library. API design
I am working on a web mapping library, that makes it possible to create a map with SVG and JavaScript. As every map shall consist of SVG and Image elements, which can be grouped in layers, which in ...
6
votes
2answers
249 views
Javascript api design
I'm working on a site that has a few site design specific widgets like tabs, alerts, messages, autocomplete etc. Unfortunately they're either global functions:
customAlert("message", "buttontext", ...