All Questions
Tagged with jquery coffeescript
16 questions
2
votes
0
answers
68
views
jQuery Mobile Menu plugin
I would like some opinions on this Mobile Menu plugin I wrote for work. We develop custom WordPress themes, nothing too advanced or anything. I would like if anyone could just take a look and provide ...
3
votes
1
answer
1k
views
Configuring a DataTable using CoffeeScript
I am working on a simple Rails app. For the Expense resource I use a DataTable. So, in my CoffeeScript for this resource I basically do several things:
initialize ...
1
vote
1
answer
50
views
Extracting a list of hyperlinks [closed]
I need to produce a list objCollector with some results:
...
4
votes
1
answer
171
views
Flood game implementation
There is the implementation of flood game on my GitHub.
The app.coffee is the main part of project:
...
4
votes
2
answers
650
views
Get <TH> texts into a tab separated string
table_with_headers = $(this.dom.table).find("thead tr th").map(->
$(this).text()
).get().join("\t")
Can one write it nicer? I especially don't like the inner ...
1
vote
1
answer
98
views
Navigating around ul li and looking for the active state on the current slide
How can I rewrite this in a simpler way?
...
3
votes
1
answer
89
views
Set up event on class and initialize state [closed]
Very similar to this question, I'm curious about common patterns/best practices for handling events in coffeescript classes, particularly when you also need to call the event handlers immediately to ...
4
votes
2
answers
109
views
Initializing events on class
I wrote a simple class that substitutes all file inputs in an HTML for a more complex template and set some actions on it. The code is rather small, but I'm not used to write JavaScript.
I wonder if ...
10
votes
1
answer
321
views
Tabbed navigation to hide and show pages
I'm new to jQuery and trying to learn how to refactor my bloated code to make it nicer and better maintainable.
I have a tabbed navigation which I'm using jQuery to hide and show pages depending on ...
8
votes
1
answer
487
views
Simple CoffeeScript navigation menu
I'm using simple script to handle tab menu like this:
HTML:
...
3
votes
1
answer
168
views
Paginating a Backbone collection
This is part of a class for paginating a Backbone collection.
The paginateTo method is for paginating to a model id. It returns ...
1
vote
1
answer
737
views
Dynamic dropdown update for site reuse
This is based (somewhat loosely) on the code written in this railscast. I'm planning to re-use it in different places throughout the site, so I made it a bit more generic rather than based on IDs. ...
2
votes
1
answer
389
views
Refactor jquery (coffescript) code with checkboxes
I have two different set of checkboxes. With the coffescript code below I set the maximum amount of checkable items at 3. I would like to refactor this code, to be cleaner and compact, but I can't get ...
3
votes
1
answer
921
views
Memory leak in a scraper [closed]
This is a scraper written in CoffeeScript for NodeJS. It is run in an interval (set to 5 seconds here to dramtically show the leak). Somewhere this code leaks memory. I already tried nulling a few ...
1
vote
2
answers
195
views
Similar but slightly different JavaScript functions
I have two very similar functions that exist mainly for syntactic sugar.
...