Below are the top ranked snippets.

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

« Previous 1 2 3 4 5 6 7 8 9  ...  55 56 Next »
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..
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...
9
Date Submitted Mon. Oct. 9th, 2006 2:22 AM
Revision 1
Helper TimboTheGreat
Tags "self deleting" | VBSCRIPT
Comments 1 comments
This script demonstrates the use of a function that allows a script to delete itself from disk. The function can be called from anywhere within the script and the script will continue to function normally (assuming the script does not further attempt to access itself on disk). Handy for homebrew uninstallation programs that require the removal of all installation files, including the setup file.
7
Date Submitted Tue. Nov. 28th, 2006 3:59 AM
Revision 1
Helper TimboTheGreat
Tags BATCH | cscript | VBSCRIPT
Comments 0 comments
This script demonstrates the user of a procedure that forces the currently executing script to execute under the CScript scripting host. This allows the output from WScript.Echo statements to be displayed in a command prompt dialog in a similar way to older style batch files, making this procedure ideal for batch processing.

Typical usage would see the ForceCScript procedure called at the beginning of a script.
9
Date Submitted Tue. Nov. 28th, 2006 4:04 AM
Revision 1
Helper TimboTheGreat
Tags VBSCRIPT | wscript
Comments 0 comments
This script demonstrates the user of a procedure that forces the currently executing script to execute under the WScript scripting host. This forces the output from WScript.Echo statements to be displayed message box dialog. This functionality may be useful in situations where the default scripting host is set to cscript.exe and/or the programmer uses a common set of code to program for wscript.exe and cscript.exe.

Typical usage would see the ForceWScript procedure called at the beginning of a script.
5
Date Submitted Sat. Apr. 21st, 2007 7:04 PM
Revision 1
Helper TimboTheGreat
Tags speech | tts | VBSCRIPT | voice
Comments 0 comments
This script demonstrates the use of the Speech API via VBScript. Simply type in the word or phrase that you want to the computer to speak and click OK. Useful for vocalizing the results of a function or literally reading a text file to the user.

Note: To successfully run this code you MUST have the Speech API installed. The Speech API is installed during a complete Office install. If the required libraries are not present on your system, search Microsoft.com for the speech API SDK download. See this page for help on setting up Text To Speech: http://support.microsoft.com/kb/306902/
12
Date Submitted Tue. Oct. 3rd, 2006 5:51 AM
Revision 1
Helper Thomas
Tags Email | JavaScript | spam
Comments 1 comments
Here's a simple JavaScript solution to hide your e-mail from many spam scripts while still providing clickable hyperlinks to your visitors.

Web crawlers and visitors with JavaScript disabled will see: me [at] mydomain [dot] com. I've seen a lot of people that just leave it at this, but it seems a bit unprofessional in my opinion. With the following code, we can replace that with a fully functional hyperlink.
13
Date Submitted Thu. Oct. 5th, 2006 5:53 AM
Revision 1
Helper Thomas
Tags HTML | IE | images
Comments 0 comments
If you're an IE user you may have noticed that when you hover on a medium to large sized image, a toolbar appears in the corner of the image. It's basically useless as it accomplishes nothing that can't be done with a right-click.

Luckily, Microsoft has included a way for webmasters to disable this function.
26
Date Submitted Thu. Oct. 5th, 2006 8:12 PM
Revision 1
Helper Thomas
Tags ajax | JavaScript
Comments 3 comments
The basic framework of an Ajax-enabled web page. The following JavaScript shows how to send a request for an XML file and how to receive that request. Of course, in a real life scenario, you'll have to implement better error trapping and actually do something with the XML that gets returned.
9
Date Submitted Mon. Jul. 24th, 2006 9:45 PM
Revision 1
Helper svachon
Tags JavaScript | String
Comments 0 comments
Gets the rightmost substring, of the specified length, from a String object.
« Previous 1 2 3 4 5 6 7 8 9  ...  55 56 Next »