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
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('.phoneInput').keypress(function(key) { | |
if(key.charCode < 48 || key.charCode > 57) return false; | |
}); | |
$('.surnameInput').keypress(function(key) { | |
if((key.charCode < 97 || key.charCode > 122) && (key.charCode < 65 || key.charCode > 90) && (key.charCode != 45)) return false; | |
}); | |
</script> |
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
<cflog file="myAppLog" application="no" text="User #Form.username# logged 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
<cfloop index = "ListElement" list = "John/Paul,George::Ringo" delimiters = ",:/"> | |
<cfoutput>#ListElement#</cfoutput><br> | |
</cfloop> |
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
<cfloop index="x" array="#arr#"> | |
<cfoutput>#x#<br /></cfoutput> | |
</cfloop> |
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> | |
<head> | |
<!-- simplified character encoding --> | |
<meta charset="utf-8"> | |
<title>TEMPLATE TITLE</title> | |
<!-- Main style sheet. Change version number in query string to force styles refresh --> | |
<!-- Link element no longer needs type attribute --> |
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 http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Playing with Cufón</title> | |
<!-- Stylesheets here, before all scripts. Helps avoid styling issues. --> | |
<link rel="stylesheet" type="text/css" href="style.css" /> | |
<!-- | |
If you want to use complex selectors with Cufón, load a selector engine (JavaScript framework) here. | |
We support jQuery, Sizzle, MooTools, Dojo, Prototype and other popular frameworks. |
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
var userClickTarget : Point = new Point(tmpXPos, tmpYPos); | |
// read bounds extremes | |
var minAreaX : Number = -1; | |
var maxAreaX : Number = -1; | |
var minAreaY : Number = -1; | |
var maxAreaY : Number = -1; | |
// when an area specified, convert for flash interface to be able to debug display | |
var posLen : uint = targetPosition.xList.length; |
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
// http://jsfiddle.net/jquerybyexample/RgLPC/ | |
$(".ui-datepicker-trigger").mouseover(function() { | |
$(this).css('cursor', 'pointer'); | |
}); |
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
$ mysql -uroot -p | |
mysql> create database my_new_database; | |
mysql> grant all on my_new_database.* to new_user@localhost identified by 'my secret password'; | |
mysql> flush privileges; | |
mysql> quit |
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
/** | |
* Returns the version of Internet Explorer or a -1 | |
* (indicating the use of another browser). | |
*/ | |
function getInternetExplorerVersion() | |
{ | |
var rv = -1; // Return value assumes failure. | |
if (navigator.appName == 'Microsoft Internet Explorer') | |
{ | |
var ua = navigator.userAgent; |