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", ...
4
votes
1answer
140 views

Loading Javascript Libraries with PHP API

First question on this site so please take it easy on me and let me know if I infringe the common etiquette :-) I have written the following script which simply: Loops through javascript files ...
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 ...
3
votes
1answer
56 views

how can i make this small jQuery serializeobject util any better

I have this little utility/helper which serializes a form into a javaScript object $.fn.serializeObject = function(fn) { var o = {}, a = ...
3
votes
2answers
243 views

Backbone.js Dependency Injection API Design

I'm writing a dependency injection plugin for the Backbone javascript framework, and I'm not sure what the API for constructor argument injection should look like. Just for reference, Backbone ...
2
votes
2answers
285 views

Review My Custom Streaming Application - AJAX / TwitchTV

So I created this custom application and ported it into a few websites. It uses the TwitchTV API and pulls in active streams and the viewer count. The problem I run into is when the list gets so big ...
2
votes
1answer
158 views

Creating JavaScript API for first time; request review

I am creating a commercial API for the first time for responsive webpages/web applications (mobile devices). I am new and, sadly, working alone as well as new to Javascript (long complicated story). ...
2
votes
1answer
545 views

Javascript-generated Social Media Links - a more valid, improved way of writing this?

I'm still fairly new with Javascript, and wrote something to generate some social media links on my page. The idea was to have that script grab the necessary URL info and feed it to the social media ...
0
votes
0answers
333 views

User management in Node.JS

I have moved all my webserver code dealing with user management into a single Node.JS module that I paste below. I have spent time polishing it, and churned it through JSHint. I am generally happy ...
0
votes
0answers
50 views

Javascript API - Library Loader

What my API does and Why - A Brief Explanation I have written a Javascript API that loads and houses libraries of code to do all sorts of things on websites. Effectively, this is (will be) the base ...
0
votes
0answers
80 views

XML to JavaScript library design

I created a small library to parse xml to javascript. Can anyone tell me if the design is correct for a library? or if there is a better technique. I wrote a small Usecase example here. ...