Big McLargeHuge
  • Member for 8 years, 4 months
  • Last seen more than 1 year ago
Applying timed functions recursively
Accepted answer
8 votes

This might not be an improvement per se, but you can change this: $(document).ready( function() { $('.flipper').each(function(e) { var flipper = new myFlipper($(this)); }) }); To ...

View answer
Select validation
3 votes

You could hide the errors to begin with (just put style="display: none;" on them), then you don't have to hide them in your script. Also you can group your variable declarations: $("#form").submit(...

View answer
Parsing record-jar format in PHP 5.3
3 votes

I'm no PHP expert, and this might be personal preference, but I like to initialize variables at the top of the function to make it clear that their scope is not limited to the constructs in which they'...

View answer
JS validation and submission with AJAX
2 votes

If you don't have a strong reason for using the onsubmit attribute on your <form> element, I would suggest attaching the submit action to the form without it. This would work: document....

View answer
NHibernate select with Query Over optimization for user roles base case
2 votes

If this is a web application, you can use an HttpModule to do your session management. Begin every web request by opening a session and beginning a transaction. At the end of every web request, commit ...

View answer