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
<cfcomponent extends="taffy.core.resource" taffy:uri="/students"> | |
<cffunction name="get"> | |
<cfset var local = {} /> | |
<cfquery name="local.qGetStudents">SELECT * FROM tpcdba01.tpc_static_name_value</cfquery> | |
<cfreturn representationOf( local.qGetStudents ) /> | |
</cffunction> | |
</cfcomponent> |
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
component extends="taffy.core.api" { | |
this.name = hash(getCurrentTemplatePath()); | |
this.SessionManagement = true; | |
this.datasource = "abc"; | |
variables.framework = {}; | |
function onApplicationStart(){ | |
return super.onApplicationStart(); |
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
<cfcomponent extends="taffy.core.resource" taffy:uri="/students"> | |
<cffunction name="get"> | |
<cfreturn representationOf( "hello" ) /> | |
</cffunction> | |
</cfcomponent> |
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
/* | |
//Confirm page leave if the form is dirty | |
$scope.$on('$locationChangeStart', function( event ) { | |
if($scope.addTaxEntryForm.$dirty) { | |
var answer = confirm("Are you sure you want to leave this page?") | |
if (!answer) { | |
event.preventDefault(); | |
} | |
} | |
}); |
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/LXp4h/ | |
<script> | |
select option { | |
color: black; | |
} | |
select option:first-child { | |
color: grey; | |
} | |
select.empty { |
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
<style> | |
greenText{ | |
color:green; } | |
.blueText{ color:blue; } | |
.redText{ color:red; } | |
</style> |
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> | |
var a = [ | |
{ name:"string 1", value:"this", other: "that" }, | |
{ name:"aijaz", value:"this", other: "that" }, | |
{ name:"reyaz", value:"this", other: "that" } | |
]; | |
var name = 'aijaz1'; | |
var obj = a.filter(function ( obj ) { | |
return obj.name === name; |
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> | |
<script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script> | |
<script type="text/javascript" src="http://code.jquery.com/ui/1.8.18/jquery-ui.min.js"></script> | |
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/base/jquery-ui.css"> | |
<script type='text/javascript' src="http://code.angularjs.org/1.0.3/angular.min.js"></script> | |
</head> | |
<body ng-app='myApp'> | |
<div ng-controller="myCtrl"> |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> | |
</head> | |
<body> |
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 ng-app> | |
<head> | |
<style> | |
[ng-cloak], .ng-cloak { | |
display: none !important; | |
} | |
.red { | |
color: red; |