3
votes
1answer
46 views

Dynamically create a table with values from an object

I want to create a table that looks like this: ...
4
votes
1answer
69 views

Object Oriented vs Not jQuery & JS

I have taken a widget/ plugin that I wrote yesterday and just now it has been re-written in an object oriented format. It is certainly more code to write it the OO way, so please let me know also how ...
2
votes
2answers
78 views

Ajax Class Efficiency

So I wrote this class to handle my ajax calls simply: ajaxCon.php: ...
2
votes
1answer
66 views

Looking to optimize Node.js Chat service

I've built a simple chat server/client on Node.js and socket.io that I would like reviewed. My main concern is making the chat.js (client) running as cleanly as possible (OO) and streamlining data ...
3
votes
1answer
78 views

How could I have approached this responsive image gallery differently?

This gallery uses the Orbit gallery from the Foundation framework (version 3). I've set it up so that on smaller screens it appears as an accordion. It works just fine, but is there a more concise ...
4
votes
1answer
53 views

Should I differentiate object types by calling methods via variables?

I have three JavaScript objects. The first one serves merely as a prototype. The other two are implementation of a specific type. ...
3
votes
1answer
32 views

Re-writing rough JS code with loads of jQuery plugins

I want to include about 10 jQuery plugins in a project but do so in a better way than just pasting them into a JS file. I want to capture various device data and other data passed from the ...
3
votes
1answer
379 views
5
votes
1answer
169 views

Object Oriented JavaScript optimization

This is a simple script that I use for wrapping a selected word in a textarea field. I'm looking to: make sure my logic is valid/see what others have done in a relative context. request ...
7
votes
1answer
185 views

Is this code good to implement encapsulation with jQuery?

First of all: I know there are already other questions about oop/jquery, but this one is about the following specific code. 2ND: I'm and advanced mootools and AS3 programmer, so I'm used to 'regular' ...
2
votes
1answer
215 views

Minesweeper clone in jQuery

This was my first attempt at writing object-oriented JavaScript. It's a Minesweeper clone in jQuery. I thought I had done an ok job, but I've just received some feedback stating that it wasn't written ...
1
vote
1answer
362 views

Placing and removing a dynamic tooltip

I'm making a calendar and this is one part of the larger project. This adds a tooltip with more information when a calendar event is clicked. It then disappears after 10 seconds, or earlier if a click ...
2
votes
1answer
47 views

Organise site's module

I was wondering about on how to organise the code on my site, to make it clearer as possible and clearly readable. I'm organising it with namespace, separating ...
5
votes
1answer
181 views

Should I encapsulate my fields differently?

I wanted an excuse to do some OO JavaScript and I decided to do a JSON editor. It will basically allow you to input JSON and either collapse objects to see other objects better, delete objects (can ...
1
vote
2answers
261 views

Dynamically create object

I am developing a web-application and I am encountering some trouble : I have some tabs and each one contains input forms with different values. I need to switch beetween these tabs and see the ...
3
votes
3answers
1k views

Please review my first Object Oriented JavaScript/jQuery Code

This is my first script in Object Oriented Javascript (jQuery 1.5.2). It's purpose is to simply validate a form (nothing fancy at the moment just checks if any value is present on required fields) and ...