Below are snippets for TimYates.

ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

12
Date Submitted Thu. Mar. 9th, 2006 4:02 AM
Revision 1
Scripter TimYates
Tags Java | String | Word
Comments 1 comments
If you have ever written a website or java application where people paste stuff in from Word, you are likely to have hit the problem of Word using high ascii chars for "open quotes", "close quotes", reg symbol, etc...

This java class (with a single static method) can replace the most prevalent of these with normal ascii values

Hope it helps someone...
4
Date Submitted Mon. Mar. 6th, 2006 5:03 AM
Revision 1
Scripter TimYates
Tags J2EE | JSP | no-cache
Comments 0 comments
This should stop your JSP page being cached by browsers and proxies.

It tries to cover all bases, just stick it at the top of any JSP page.

If your entire web application requires this, it would be much more economical to write a J2EE Filter, and run this code for each request before chaining on to the next filter..
10
Date Submitted Tue. Feb. 28th, 2006 5:52 AM
Revision 1
Scripter TimYates
Tags HTML | JavaScript
Comments 0 comments
A prototype function to get an array of elements by id in an array
6
Date Submitted Tue. Feb. 28th, 2006 5:42 AM
Revision 1
Scripter TimYates
Tags CSS | Element | JavaScript | visibility
Comments 9 comments
Toggles the visibility of an HTML element. Should be part of everyone's javascript toolkit
6
Date Submitted Fri. Feb. 17th, 2006 8:54 AM
Revision 1
Scripter TimYates
Tags Java
Comments 1 comments
More often than not, if your trying to work out what's going wrong with your subclass of InputStream, why the character encoding is getting lost in your database, or your file format reader is failing, you'll need to dump a byte buffer out in a useable form.

Here's two methods, one which appends to a StringBuffer, one which simply prints out to System.out

Tim.

(NB: The line: sb.append( "n" ) ; SHOULD have a leading slash ie: sb.append( "\n" ) ; but the formatter seems to remove it...
5
Date Submitted Tue. Feb. 14th, 2006 4:59 AM
Revision 1
Scripter TimYates
Tags Arrow | Graphics | Java | Line
Comments 0 comments
Draws a line (with arrow head) between two given points.