'Development' Category

  • Replace Carriage Return in OGNL

    July 21, 2011

    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 [...]

    • Share/Bookmark
  • Javascript Diff Combines Scripts to Fill the Gap

    January 7, 2011

    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 [...]

    • Share/Bookmark
  • Sanitizing HTML Injection Using DOM

    July 6, 2010

    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 &lt; and &gt;. In other cases, you may want to display user entry and preserve HTML entities such as PRE tags. You still will need to eliminate [...]

    • Share/Bookmark
  • Dynamic Loading and Executing of Javascript in AJAX

    April 19, 2010

    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 [...]

    • Share/Bookmark
  • Javascript Tab Control

    December 12, 2009

    Greetings. Today’s tip is a minimal javascript tab control. See Example

    • Share/Bookmark
  • Keep Your Visitors Oriented – Ajax Popup Form

    December 5, 2009

    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, [...]

    • Share/Bookmark
  • Java Swing Image Map

    December 3, 2009

    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. [...]

    • Share/Bookmark
  • Save Time With jEdit and Regular Expressions

    December 1, 2009

    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” [...]

    • Share/Bookmark
  • Java Ring Chart

    November 30, 2009

    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. [...]

    • Share/Bookmark
  • Popup Forms

    November 29, 2009

    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 [...]

    • Share/Bookmark
 
Green Hosted by Hostgator Powered by Wordpress Theme by Shlomi Noach, openark.org