This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title> | |
Using Transparent Select Menus To Create Styled Menu Roots | |
</title> | |
<style type="text/css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Woot! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- Update the data records. ---> | |
<cfquery name="qTurnOnInsert" datasource="#DATA.Source#" username="#DATA.Username#" password="#DATA.Password#"> | |
<!--- Delete the data in the table. ---> | |
DELETE FROM | |
[#strTableName#] | |
; | |
<!--- Turn on the ability insert the identity column. ---> | |
SET IDENTITY_INSERT [#strTableName#] ON | |
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Define the application. To stop unnescessary memory usage, we are going to give | |
// web crawler no session management. This way, they don't have to worry about cookie | |
// acceptance and object persistance (except for APPLICATION scope). | |
if ((NOT Len(CGI.http_user_agent)) OR REFindNoCase("Slurp|Googlebot|BecomeBot|msnbot|Mediapartners-Google|ZyBorg|RufusBot|EMonitor|researchbot|IP2MapBot|GigaBot|Jeeves|Exabot|SBIder|findlinks|YahooSeeker|MMCrawler|MJ12bot|OutfoxBot|jBrowser|ZiggsBot|Java|PMAFind|Blogbeat|TurnitinBot|ConveraCrawler|Ocelli|ColdFusion", CGI.http_user_agent)){ | |
// This application definition is for robots that do NOT need sessions. | |
THIS.Name = "KinkySolutions v.1 {dev}"; | |
THIS.SessionManagement = false; | |
THIS.SetClientCookies = false; | |
THIS.ClientManagement = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function UpdateValueList( objRow ){ | |
var objForm = document.forms[0]; | |
var objValueList = objForm.elements["lst_id"]; | |
var objTBody = objRow.parentNode; | |
var intI = null; | |
var objInput = null; | |
// Reset value list. | |
objValueList.value = ""; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This will NOT work in safari. | |
function Foo2(){ | |
alert("In Foo2 Method"); | |
( | |
function Bar2(){ | |
alert("In Bar2 Method"); | |
} | |
)(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new RegExp("[\\n\\r]+", "gim") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Turns the vowel characters into random cases. | |
String.prototype.RandomCase = function(){ | |
return( | |
this.replace( | |
new RegExp("([aeiou]{1})", "gi"), | |
// Here, we are passing in a nameless function as the parameter for | |
// the "replace" argument of the String Replace method. It uses the $1 | |
// to refer to the grouping of vowels found in the regular expression. | |
function($1){ | |
// Get a random number. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="submit" value="Save" onclick="alert('This will fire in FireFox');" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfxml variable="REQUEST.Response" | |
><?xml version="1.0" encoding="UTF-8"?> | |
<soap:Envelope | |
... | |
... | |
</cfxml> |