Richard's Archive

How to Sort HTML Table Using jQuery Code

HTML tables are useful for displaying data in a tabular format. Tables tend to look elegant and clean. However, HTML tables are even more useful when data is sorted in columns in an ascending or descending order. In this post, we’ll learn how to sort an HTML table using jQuery without using any jQuery plugins. […]
Read the rest of this entry »

How to Dynamically Resize an iFrame

We’ve already talked about how, as developers, iFrames can sometimes be our worst enemies. Because their content is often hosted on another server (as well as their stylesheets), they can be a huge pain to change around and manipulate. In our previous iFrame post, we gave you a snippet that can be used to access […]
Read the rest of this entry »

3 Useful jQuery Snippets for Handling Table Data

Do you want the ability to be able to dynamically edit and manage your tables? With jQuery, it’s pretty easy to get data and change table elements dynamically using only a few lines of code. The snippets below will show you how to add a new row to your table, how to retrieve all values […]
Read the rest of this entry »

How to Implement Automatic Scrolling with jQuery

Automatic scrolling is a feature that causes a web page to scroll down automatically at a predetermined and configurable rate. This is quite a useful feature for websites that contain long articles, posts or some other lengthy web content. This feature saves users from having to scroll the page using their mouse or keyboard. In […]
Read the rest of this entry »

3 jQuery Snippets for Handling CSS Classes

CSS isn’t really a very dynamic or flexible language, but with the help of jQuery, it’s easy to make certain styles dynamic and changeable with just a few simple lines of code. What follows are 3 really useful and easy ways to manipulate CSS classes using jQuery. Check for Class In jQuery, there’s a built […]
Read the rest of this entry »

Different Methods of Error Handling in jQuery

Errors are part and parcel for code. That being said, they can certainly result in a very bad user experience, especially if errors are not handled properly. Every code becomes perfect or bug free after a couple rounds of testing and fixing errors. Client side errors are difficult to handle, as most of the time […]
Read the rest of this entry »