Archive for January, 2006

How do I create a hyperlink that functions like a submit button?

Thursday, January 26th, 2006

Add some JavaScript to the href attribute of the anchor tag:

< a href = " javascript:submitFunction() ; " >

…and then add the following to the HEAD tag of your HTML:

function submitFunction()

{

document.forms[0].action = ’someURL.html’;

document.forms[0].submit();

}

Visual Basic .NET Nugget for the Day

Friday, January 13th, 2006

So, there I was trying to figure out how to instantiate a class when all I have is the name of the class as held in a string variable.  Thanks to this, it’s easy:

Dim objInstance As Object

Dim reportType As Type = Type.GetType(sReport)

objInstance = Activator.CreateInstance(Nothing, objType)

Food for Thought

Thursday, January 12th, 2006

“The rapidity with which an enterprise creates value is directly related to how well it stocks the company kitchen. The lower the nutritional value of the food choices, the greater the intellectual property produced.”- Nancy Hauge, http://www.localtechwire.com/article.cfm?u=12602Really? But doesn’t Google have gourmet chefs working on site for lunch and dinner?