Skip to main content

Posts

Showing posts from May, 2008

Learning About .NET Web Access Classes

I mentioned about wanting to start a business in my previous post. Well it looks like I might have my chance. While it isn’t exactly what I was thinking of in my previous post, I foresee many opportunities to flex my programming muscle in this endeavor. Plus, I will be starting up with a good friend, so there is a good chance our motivation will actually produce some results. A piece of software I am starting to research/design/create will be an internal application we will use to automatically extract some government provided public data. The current issue is time. With the amount of data and the requirement of using their web interface, it is not worth the time needed to do it by hand. The only other option would be to buy the data from the government, but that’s just an unnecessary cost seeing as there is a free option available. So I will be writing a program in C# to automatically access a few websites and download the needed data in chunks. I have never delt with .NET’s we...

JavaScript Tip: Submit Form On Enter Key

A common practice with search forms is to have them submit when the enter key is pressed, instead of requiring the user to use their mouse to press the submit button (or using tab key to tab to the submit button). Update: I attempted to find a solution for working in Firefox, but the code I added has not been tested personally. Here is a simple way to do that in JavaScript: First, define a input box: <input name="txtsearchentries" id="txtsearchentries" type="text" size="13" value="" /> Second, create a function to be placed in the head area of the webpage: // see if the user pressed the enter key  // while using a specific control  function submitSearchOnEnter(variable) {     if (window.event) {         // keyCode = window.event.keyCode;         // this doesn't seem to work in Firefox,          // so try the code below...          keyCode = event.keyCode ? event.keyCode :...