Tagged Questions
2
votes
2answers
32 views
Replacing simple jQuery methods for better use
There are a few common jQuery call I find my self calling when creating my app. I need some help and maybe a better way to do all this or rewrite it.
1) Singleton Selector
If I want to select only ...
3
votes
1answer
33 views
Improvement on code
Okay, I'm just a little newbie in programming just doing it for a past time hobby. I am just recently making a web editor for fun and the way I was doing it (Using PHP) I was told would be a bad way. ...
-2
votes
1answer
34 views
Is this a good use case for a database or will I be fine with tables? [closed]
I am doing a rebuild of a website that needs to be converted to responsive.
Originally, I was under the impression that the table of listings for locations of offices was perhaps under a hundred. ...
1
vote
2answers
66 views
JavaScript - Does this link need improvement?
I would like to hear your feedback on the link below that lets users add a link to a website. I read that javascript:void(0) is suggested instead of a # for the <a href="" attribute. Is this still ...
3
votes
1answer
33 views
jQuery - Drop Down QA
Here's a fiddle: http://jsfiddle.net/YF8cg/
Focussing entirely on the javascript and on the structure of the HTML (.qapair .question and .answer), how could I improve this system?
JS:
...
3
votes
0answers
28 views
What improvements can I make to this table filtering jQuery Plugin?
This plugin is meant to filter through a table based on column header text that matches options given to it.
check it out here: Filter Table Plugin
Plugin code below for reference:
//framework from ...
-2
votes
1answer
58 views
How to make matrix like text change effect in javascript? [closed]
I was trying to make this text change matrix movie like effect in JavaScript.The basic concept was that there is a div present in html and JavaScript take that div's inner text and manipulate it to ...
4
votes
2answers
197 views
Is this spaghetti javascript code? How can it be refactored with a javascript library or framework?
The code allows you to select an area from the left column and another area from the right column followed by clicking on the Choose button which sends the chosen areas to the server:
<html>
...
3
votes
4answers
107 views
Get the value of the name attribute of each element with class=“class”
I need a function to get the value of the name attribute of each element with class="class". I was wondering what is the best way to do this, performance-wise.
Currently I'm using jQuery and doing it ...
3
votes
2answers
151 views
Better way to filter select list
I'm brand new to javascript and jquery and I feel like there's probably a better way to do this. It seems that the way I designed it may not be very optimal once you get a thousand entries in the list ...
2
votes
1answer
54 views
Edit/Details form in JavaScript
I have a Edit/Details form which has 4 user related fields. On click of Save, I save the edited fields to local storage (if supported) and display the same values in the Details view.
Below is the ...
0
votes
1answer
49 views
Animating multiple DIV-Elements with JS and the DOM results in a low Framerate
Repost from Stackoverflow (here):
I just started programming with javascript and I am currently working on this hobby web-site project of mine. The site is supposed to display pages filled with ...
4
votes
1answer
154 views
Is there a better way to write my jQuery slider?
First question here so please be gentle. I have developed a jQuery slider and I want to implement it in WordPress (it will be a Featured posts slider).
This is my slider logic:
If there are 1 or 3 ...
2
votes
1answer
94 views
HTML - single page layout - absolute positioning
I am doing web apps, mostly single page apps. So i have to give absolute and fixed positioning a lot via css.
For Example, consider this page layout:
<html>
<div class="app-header">
...
3
votes
1answer
116 views
JS/Jquery newbie here… Can I please get some advice on improving my code?
You can see the JS at the end of this post in action here at http://andrew-oh.com/portfolio/timeline/ (It's responsive!)
I've recently picked up javascript/jquery and would love some feedback on how ...