Skip to content
Alessandro Lacava
  • Home
  • Blog
  • Articles
  • Talks

Category 50 posts

Programming

Writing about Programming.

JavaScript31 Mar 2008

How to disable all the elements of a form using JavaScript

Here's a little JavaScript function that disables all form elements: As you may have noticed, the only parameter you need to pass is the form name.

Read article ↗
Database12 Dec 2007

How to get the number of columns in a ResultSet in Java

In Java it is possible to retrieve the number of columns in a ResultSet dynamically, thanks to the ResultSetMetaData class. Here's an example: The previous code retrieves and displays the…

Read article ↗
JavaScript26 Nov 2007

Capturing groups using regular expressions (RegEx) in JavaScript

There are whole books about regular expressions, so this post isn't intended to be an exhaustive resource on the subject. It simply shows how to extract a substring from a string using…

Read article ↗
JavaScript9 Oct 2007

How to compute the timestamp in JavaScript

Many sources use the term timestamp to refer specifically to Unix time, the number of seconds since 00:00:00 UTC on January 1, 1970. In JavaScript you can use the built-in object Date to…

Read article ↗
← Newer posts
Page 5 of 13
Older posts →
Alessandro Lacava

Software, words, and the ideas in between.

GitHub ↗LinkedIn ↗X / Twitter ↗Email ↗
© 2026 Alessandro Lacava
RSS feedPrivacy and cookies