I want to share this little secret, like many times, I need to do something and search but come up empty on how. I tried to search for “replace carriage return with br tag” and many similar searches but found nothing. A little imagination is needed at times to find a workable solution. The idea [...]
There is a wealth of great code available for anyone to use to cover nearly every possible scenario. Sometimes a little creativity and minor effort is needed when what you need is not readily available. I was in need of a client side script for displaying diffs. I found this which is nice. It is [...]
This article explains how to use the DOM to sanitize user input against HTML injection. In many cases, something as simple as replacing the < and > with < and >. In other cases, you may want to display user entry and preserve HTML entities such as PRE tags. You still will need to eliminate [...]
You may find there are times when you use certain scripts on an AJAX site, but not on all pages. It would be very inefficient to load them all immediately in the HEAD of the HTML document. Also if you are developing a plugin architecture, it would be preferable to load them at runtime. Today [...]
Greetings. Today’s tip is a minimal javascript tab control. See Example
In a previous article I showed how to add a simple popup form to a site. This was done inline for illustration. Today I will present the advanced version using ajax to both retrieve and submit the form content. By having the form content on the server, you have a much easier to maintain approach, [...]
Here I will present a simple Image Map class written in java using swing. This will allow you to create an interactive image and take action base on where the image was clicked. This could be used for a map of a campground, townhouses, subdivision, storage facility, city zoning or building floor plan among others. [...]
Today’s trick is a time saver that I have been using for some time. It involves using regular expression searches with the jEdit editor. This handy little tool is a free open source editor written in Java. Let’s look at an example. Take the simple form below for illustration. <head><title>Regular Expression Example Page</title></head> <body> <form action=”nowhere.php” [...]
This week I am going to talk about Java graphics and how they can be used to create a custom Ring Chart control also commonly referred to as a doughnut chart. This is the type of chart typically used for disk allocation in programs similar to Overdisk. They however are not limited to this application. [...]
Greetings and welcome to my blog. I hope to share some tips and tricks with you from my world of software development. Today I want to start by acknowledging that many of our successes in life are possible only because of the work that has come before us. I have learned much from blogs and [...]