Skip to main content

All Questions

5 votes
1 answer
78 views

My simple jQuery website returns JSON data from two different servers

I'm looking advice from more experienced people about how I can improve my code. I also want to make my code object-oriented (create classes in separate .js files) but I don't how best to do it. How ...
Jammi's user avatar
  • 51
3 votes
1 answer
86 views

JavaScript ajax formquestion editor

This is the JavaScript file that i use for my editor that allows people to edit questions from a form. I'm wondering if this sort of approach to use JavaScript objects is good or that I kind of miss ...
herriekrekel's user avatar
3 votes
0 answers
53 views

Search Class with Static Methods

Most of my programming experience is in PHP, and I have always been a bit wary of JavaScript. I have a JavaScript class to manage executing, caching and displaying search results. ...
James Fenwick's user avatar
7 votes
1 answer
209 views

LiveDate version 2

LiveDate has the ability to display the current date either by asynchronously fetching the time from a server or by just using the client system date. It's only as ...
Kid Diamond's user avatar
  • 2,601
2 votes
1 answer
179 views

My AJAX LiveDate Object

The LiveDate object displays the live current date and has a sendAjaxRequest() function dependency to send the AJAX requests. I'...
Kid Diamond's user avatar
  • 2,601
2 votes
2 answers
131 views

Ajax Class Efficiency

So I wrote this class to handle my ajax calls simply: ajaxCon.php: ...
Ben A. Noone's user avatar
8 votes
2 answers
4k views

Reusable Ajax object

I've been working on a new project and I've found myself needing to make multiple Ajax calls, often on the same page and at the same time. I decided rather than repeating code that I would try and ...
woolm110's user avatar
  • 193
3 votes
1 answer
245 views

JavaScript/PHP file uploader

I'm writing a JavaScript/PHP file uploader and I want to start this project off on the right track. I've started with this, a JavaScript Uploader object which will ...
Jbird's user avatar
  • 31
3 votes
3 answers
2k views

Validating a form and alerting the server if passed

This is my first script in object-oriented JavaScript (jQuery 1.5.2). Its purpose is to simply validate a form (nothing fancy at the moment just checks if any value is present on required fields) and ...
Jimmy's user avatar
  • 33