Page Speed on a website can help especially for mobile users visiting your website. We recommend testing a website across different tools and not just relying on one. Some of the tools we use for testing Page Speed performance are WebPageTest.org, Pingdom Website Speed Test, and Google PageSpeed Insights. Image Optimazation This is often overlooked […]
Classic ASP Function to Set Dynamic Image (1 of 2)
I reviewed some recent client Classic ASP code and found a 4 level deep branching of an IF statement. Reading the code, its intent is to look at the object type and return an icon representing the type. <% if obj.type = “car” then response.write(“<img src=”/images/icons/car.png” />”) ElseIf obj.type = “boat” then response.write(“<img src=”/images/icons/boat.png” />”) ElseIf obj.type […]
Adding Custom Properties to Objects in Classic ASP
I the last blog post Converting Recordset into Objects in Classic ASP we created a public function initialize(rs) which takes in a single row from the database and creates a single class object account. Our goal is to add a new property named fullname where we combine firstname and lastname We will update the public function initialize(rs) as follows: […]
Converting Recordset into Objects in Classic ASP
Now that you know how to create a Class and Objects in Classic ASP, we will look at Converting Recordset into Objects in Classic ASP. Lets create a Class account which has several properties. I usually use the database table account and copy the model so the Class matches the database model Class account public […]
How to create a Class and Objects in Classic ASP
Creating Objects in programming is one the best ways to have code that is easily maintainable. With new Classic ASP clients, I have found creating Classes and Objects is a very good way to begin refactoring legacy code. Class trip public arrive_date public depart_date End Class Here we have created a Class trip with 2 properties […]
Isotope Sorting Ascending / Descending
We worked on a project where we had a media library. We decided to use Isotope to filter/sort through a list of all the media items available. We wanted to the user to be able to sort through the items in both Ascending / Descending order. Below is how we accomplished that. By default, Isotope sorts ascendingly: […]
One Typeface – How to use fonts effectively
How many fonts should I use on my website? Well, it depends. As a general rule, you should probably stick with 2 or 3 fonts for your website. Design Generally speaking, using 2 or 3 fonts will ensure that your site has a consistent look and feel. Establishing a visual hierarchy for your users will […]
WordPress vs Squarespace
At Dhali we design most of our sites using WordPress. WordPress is a powerful open source software and tool for building websites and apps. Some estimate that over 25% of ALL websites are currently built with WordPress. The most common use for a WordPress site is as a content management system, or CMS. This allows […]
Update Your WordPress Website
Clients often ask what the benefits are of updating their WordPress site, including plugins and themes. While some of the benefits include fixing/addressing bugs, adding key features and increased functionality, the main reason why it is vital to be on top of your WordPress site maintenance is security reasons. According to WPBeginner, more than 80% […]
Is Your Website ADA Compliant?
Title III of the Americans with Disabilities Act (ADA) prohibits discrimination on the basis of disability in places of public accommodation. Both large and small businesses and corporations, are affected by the ADA. Title III of the ADA is best known for its applicability to things such as lack of wheelchair access, recognition of service […]
Deleting Custom Fields in WordPress
While working on a project you may have had custom fields that are left behind and that are no longer in use for the current theme these unused custom fields remain in your database. I came across this exact scenario when I was upgrading a section of a website that was outdated and needed to […]
Changing Database Prefix in WordPress
The following blog post over at DigWp.com has a great step by step tutorial on changing your database prefix in WordPress database tables. You will definitely come across this scenario when working on WordPress websites. Change Your Database Prefix to Improve Security What I found really helpful is that you can run an SQL command […]