Below are the top ranked snippets.

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

« Previous 1 2  ...  49 50 51 52 53 54 55 56 57 Next »
10
Date Submitted Tue. Aug. 8th, 2006 1:19 AM
Revision 1
Beginner ciorga
Tags CPlusPlus | float | int | toString
Comments 1 comments
Transform any basic type to string. Very handy for log messages

Usage:

int i(12);
float j(3.14);
cout
3
Date Submitted Tue. Sep. 25th, 2007 10:50 AM
Revision 1
Helper chaos
Tags "form input" | "input focus" | autofocus | JavaScript
Comments 0 comments
This script performs reliable, cross-browser input autofocus that often can be used simply by dropping it in, with no modifications to the form or HTML body. It refuses to switch focus if it detects that the user has interacted with the form (avoiding a major source of annoyance with autofocus scripts) and correctly handles Firefox tabs opened "in the background", which most autofocus scripts fail on. Official home is on the Lost Souls MUD Grimoire.
3
Date Submitted Sun. Oct. 7th, 2007 3:47 AM
Revision 1
Helper chaos
Tags "diminishing returns" | formula | JavaScript | math
Comments 0 comments
A simple, flexible formula for generating diminishing returns out of input numbers. Full explanation and home, with sample calculators and versions of the code in other languages, on the Lost Souls MUD Grimoire.
6
Date Submitted Wed. Oct. 17th, 2007 2:34 PM
Revision 1
Helper chaos
Tags createElement | IE | JavaScript
Comments 0 comments
A wrapper on top of createElement for getting around IE problems with manipulating the name attribute. Unlike most solutions for this, it tests for which method to use once when the page loads rather than every time an element is created. By Chaos of Lost Souls MUD (a text-based fantasy RPG).
4
Date Submitted Sat. Aug. 26th, 2006 10:17 PM
Revision 1
Beginner cf_ernie
Tags "SQL Server" | ColdFusion | SQL
Comments 1 comments
This is a little script I wrote that copies your database through a cfquery statement

Enjoy,
Ernie
ernest.breau@gmail.com
6
Date Submitted Sun. Aug. 27th, 2006 11:03 AM
Revision 1
Beginner cf_ernie
Tags cfhttp | ColdFusion
Comments 0 comments
Scriptname: WhatsUpCF.cfm
Author: Ernest Breau Jr.
StartDate: 08/02/2006
EndDate: 08/02/2006
Description: This script returns the status of a web page
Dependancies: CFHTTP

Usage:
cf_WhatsUpCF
url="http://#qry_detail.DomainName#"
timeout="1"
SendMail="yes"
MailTo=""
MailFrom=""
MailServer="localhost"
var="WhatsUpCF"
5
Date Submitted Mon. Dec. 18th, 2006 8:30 AM
Revision 1
Beginner cfDavid
Tags CF_NoJunk
Comments 2 comments
A sipmle tag that masks email addresses from spambots or email harvesters.
9
Date Submitted Thu. Nov. 16th, 2006 5:30 AM
Revision 1
Helper Celebhir
Tags characters | PHP | split | String
Comments 0 comments
Function that splits a given string into sections based on the allowed length for a section. Does not split words up. Splits string on Space character (can be set to another character)
11
Date Submitted Mon. Nov. 6th, 2006 8:33 AM
Revision 1
Scripter Casper42
Tags conditional | JavaScript | loader
Comments 0 comments
This script will allow for conditional loading of javascript libraries. The example here only has one condition to check for IE or Firefox then loads the appropriate .js file.

This is part of an .aspx template for an educational portal product.

Usage for loading the script:

11
Date Submitted Mon. Nov. 6th, 2006 9:12 AM
Revision 1
Scripter Casper42
Tags JavaScript
Comments 3 comments
I found this to be a neat little trick for hiding(somewhat) source javacscript code from peering eyes...

This function will unload all linked javascript files so that when you view source - you see no javascript files! (Especially helpful when using FF and using web-developer tools - no linked js files are displayed) The files remain resident in memory - allowing for the functions to work.

Just call the function in the tag
« Previous 1 2  ...  49 50 51 52 53 54 55 56 57 Next »