Tagged Questions
2
votes
0answers
18 views
Need suggestions to improve the code for an open source web based drafting application
My application. The repository and the file that needs review.
Here is the source code
$(function () {
var draft = function (parsed, title) {
var self = this;
var wordCount = ...
-1
votes
0answers
38 views
Why does my validation not work on all PC browsers? [closed]
The validation code below works 100% on all MAC browsers. But on all PC browsers the validation is ignored. After the user submits the form the email is validated and returns a thank you message. Is ...
2
votes
0answers
46 views
Javascript / Jquery Recursive find function
I wrote the following code as a way of plucking data from a n-depth javascript object.
It works a charm and even appends the parents of the the found item.
I was just wondering if you guys had any ...
2
votes
2answers
30 views
How to improve this jQuery code for tabs
I'm quite new to javaScript and jQuery and wrote the following function to creat some dynamic tabs. I'd be very interested to know how professional programmers would improve this code.
jsFiddle
...
0
votes
0answers
23 views
Help Improve this Code: Notifications Dropdown with TinyScroll
I'm relatively new to jQuery and am trying to learn best practices/design patterns with javascript. Came across this link (http://addyosmani.com/resources/essentialjsdesignpatterns/book/) and decided ...
0
votes
1answer
34 views
How can I improve my code which dynamically populates a section of a page?
My site consists of a lot of asynchronous calls, and because of this a lot of content is dynamically added to the page. For this section of code I've dynamically added tabs to a page and need to ...
1
vote
1answer
57 views
Should I use anonymous functions in my javascript program?
This question is about the best way to declare functions in Javascript. the app is a small 2 player board game I'm working on as part of a bigger web page. Basically I have a socket which receives and ...
0
votes
1answer
67 views
Review my first attempt at a jQuery plugin
So this is my first attempt at creating a jQuery plugin.
InstaSlider is a lightweight jQuery image slider / carousel plugin that populates content from an Instagram hashtag.
After searching for a ...
3
votes
1answer
84 views
First Javascript - Geocoder - Can it be improved?
So I'm pretty excited to have coded my first javascript file which now works, and I've spent my evening trying to improve it.
It takes a location in the #loc input box and geocodes it (gets ...
1
vote
0answers
33 views
Review my Zepto / jQuery plugin base
I am looking for a starting point to code plugins, primarily for Zepto.js (with fall back for jQuery). These will provide reusable functions for Tumblr theming.
However, I can't seem to find ...
0
votes
1answer
32 views
Code review jQuery form preview
How can I improve my jQuery form preview implementation. Currently using the jQuery Instagram Plugin to get the hashtag from Instagram.
var timeoutReference;
var element;
var tagsa;
...
0
votes
1answer
33 views
Using jquery to prepare jQuery UI tabs, optimize?
I am looking for someone to review my solution to a jQuery DOM manipulation exercise on appendto.com: http://learn.appendto.com/lesson/dom-manipulation-101#exercise
I'm wondering if there is a way I ...
-2
votes
0answers
101 views
How to better structure my Javascript code? [closed]
The way I currently write my Javascript code is the following:
$(document).ready(function(){
// store vars
var $var1 = $('.element1');
var $var2 = $('.element2');
function doThis(){
...
2
votes
1answer
52 views
My login with AJAX and PHP
In your opinion, do I need to do all these validations. I thought to do well and stay safe but I seriously raises the question if it isn't slower.
jQuery code
$(document).ready(function () {
...
1
vote
0answers
49 views
Jquery Dropdown plugin looking for OOP tips or advice!
;(function ( $, window, document, undefined ) {
if ( typeof Object.create !== 'function' ) {
Object.create = function (o) {
function F() {}
F.prototype = o;
return ...