Skip to content
SteveHardie.com Logo
Steve Hardie
Its Me. Online.
  • Home
  • About
  • Categories
    • Aviation
    • How To
    • Microsoft
    • Programming

Category: Programming

Javascript: Adding an element to HTML Document

November 13, 2009 Steve Hardie

Create and append a HTML element dynamically using javascript. var divTag = document.createElement(“div”); divTag.id = “divID”; divTag.setAttribute(“align”,”center”); divTag.style.margin = “0px…

Continue Reading →

Posted in: JavaScript Filed under: JavaScript

Read Text From/Write Text To a File

Steve Hardie

This is a quick and easy way to read a files content into a string, or write a string to…

Continue Reading →

Posted in: .NET Filed under: .NET, Data, VB.NET

Javascript: Scroll window to an anchor tag or any element

October 31, 2009 Steve Hardie 1 Comment

You may want to direct the browser view to a particular part of your page, either when the page is…

Continue Reading →

Posted in: JavaScript Filed under: JavaScript

VB.NET Format File Size

October 7, 2009 Steve Hardie 1 Comment

Format a large integer (long) that represents a file size in bytes to a more readable string representation that includes…

Continue Reading →

Posted in: .NET Filed under: .NET, File Size, VB.NET

VB.NET Finding a File Size

Steve Hardie

There may be some situations where you would like to retrieve the size of a given file. Below is a…

Continue Reading →

Posted in: .NET Filed under: .NET, File Size, VB.NET

List of Common Languages

October 1, 2009 Steve Hardie 12 Comments

As part of a project I am working on, I need to request a user to specify their primary language.…

Continue Reading →

Posted in: Data Filed under: Data, ISO, ISO 639, Language

Regular Expression Validation for Email Address

September 29, 2009 Steve Hardie

In almost all cases, it is a good practice to validate the users input because of many reasons (i.e. security,…

Continue Reading →

Posted in: .NET Filed under: .NET, RegEx, VB.NET

What is the JavaScript equivalents for Chr() and Asc()

September 18, 2009 Steve Hardie

Use:  String.fromCharCode(charCode) e.g: var str1=String.fromCharCode(65) will return “A” charCodeAt(index) returns the char code for the character at a given index…

Continue Reading →

Posted in: JavaScript Filed under: Asc, ASCII, Chr, fromCharCode, JavaScript

Allow Only Numbers in Textbox

Steve Hardie

Sometimes we need the user to enter only numbers in a text field, so I have found a small piece…

Continue Reading →

Posted in: JavaScript, Programming

Character Code List (Char Code)

September 10, 2009 Steve Hardie

ASCII and HTML code table # Symbol HTML Code | # Symbol HTML Code 32 [Space]   | 143 …

Continue Reading →

Posted in: JavaScript, Programming

Post navigation

Page 4 of 4
← Previous 1 … 3 4

Search

Categories

  • .NET
  • Aviation
  • Cisco
  • Cyber Security
  • Data
  • Exchange
  • Featured Articles
  • How To
  • Intune
  • JavaScript
  • Microsoft
  • Other
  • Powershell
  • Programming
  • Uncategorized

Tags

.NET Access Active Directory Asterisk Aviation Certificate Cisco Cyber Security Data Database E-Mail exchange File Size GoDaddy How To IGEL Intune JavaScript jquery Little Bay microsoft Milroy Ave MSSQL Network Novell Office Outlook power shell SBS 2011 server 2008 SQL SSL T-SQL Thin Client troubleshoot Troubleshooting ts VB.NET VFR Flight Video VPN win 7 windows win xp Workstation
Copyright © 2026 Steve Hardie