Tagged Questions
3
votes
1answer
89 views
Suggestions on view-specific (MVC) custom JS/jQuery structure
In my job I write a lot of small JS/jQuery "snippets" for changing the default behaviour in the base product according to what the customer wants.
I tend to organize it so that I have one ...
3
votes
0answers
78 views
jQuery Plugin - HTML5 History State
I've built this small jQuery plugin to work with HTML5 History State functions. It's my first jQuery plugin, so I'm not sure if it's up to the best practices, or what could be done better. Keeping it ...
2
votes
1answer
98 views
Javascript code pattern
I have been working on a javascript heavy project. There are sales, purchases, reports etc. What I've done is created a separate module for each i.e. a separate module for each i.e. a separate one for ...
3
votes
1answer
557 views
JavaScript Module Pattern with AJAX
I have an application which currently uses AJAX for CRUD operations on a simple Person object. The following script works fine, but I'm looking for some pointers ...
1
vote
3answers
217 views
1000+ of JSON objects in my case
I try to make a data of 1000 objects (incress in the feature)
My JSON look like...
...
4
votes
1answer
230 views
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 and decided to try and put it to something useful.
So far I've made a ...
3
votes
1answer
222 views
JQuery code repetition and MVC
A while ago I started working on a project, which does things mostly with JQuery and PHP. I had some problems with my structure and started using CodeIgniter which uses an MVC pattern. So the PHP part ...
1
vote
3answers
116 views
Improving Javascript code of a failed test
I just failed in a JavaScript test and I would really appreciate some comments of how I can improve so I can keep learning.
The test was about making a form interactive, where the code should do ...
1
vote
2answers
141 views
Reduce JavaScript code. Double event, selector into one
Any idea how to write this code better."the html is nested tabs"
Two selectors and two similar events, in a function would be better or a pattern to reduce lines. eg .jsbin
...
3
votes
1answer
350 views
Improving PhoneGap/JavaScript application
I have a PhoneGap application that I wrote some time ago. After looking Doug Crockford's video seminar JavaScript: The Good Parts (http://www.youtube.com/watch?v=hQVTIJBZook) I was just wondering if ...
2
votes
1answer
265 views
Creating boilerplate for jQuery plugins
I've been writing some smaller jQuery plugins lately, and I've been thinking of writing up some boilerplate that I can use when writing new ones. I have code that works (for now), but I want to share ...
2
votes
1answer
65 views
Request for Review: genContent Plugin
WHAT: Plugin for inserting content
WHY: Fallback for CSS generated content for IE
Please review and suggest optimization tips and or improvement of code.
See the TODO in code and offer advice.
...