'DHTML Code' Category

September 13th, 2006

Easily create recurring PayPal subscription URLs

Well, I've recently had to create some URLs for people to send me recurring PayPal payments. I find that if you have to modify it at all for a different subscription it can be a pain, gettting lost in the URL encoded string and PayPal parameters. So I whipped up this little JavaScript form to […]

August 30th, 2006

How to make a link open in a new window with XHTML

The old-fashioned method of opening a link in a new window is to use the attribute target="_blank". Unfortunately, if you use an XHTML validator, you'll find that this attribute has been deprecated. Originally it was proposed to use the 'rel' attribute, like this: rel="external". Although this validates, it doesn't cause the browser to open a […]

May 5th, 2006

Build a Basic Calculator With JavaScript

Here's some rather simple HTML & JavaScript code I've found to include a fairly basic but functional calculator on any web page.

April 30th, 2006

Create a Scrolling Check Box List

If you are using the CheckBoxList control in ASP.Net, or you just have a bunch of options for users to check, a large number of check boxes options can take up a lot of room on your web page. Also, you may have a <select> with a lot of options, you need to allow multiple […]

April 27th, 2006

Use a DHTML Slider on Your ASP.Net Page

I found this great free DHTML slider, completely styled with CSS code, no images required. However, as with all XHTML objects, it is stateless. So when used in an ASP.Net application, it doesn't retain the value across postbacks, and goes back to the beginning on the slider position each time. Here's the code to store […]

« Previous PageNext Page »