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
<cfset rules_ands= ListLen(enrollment_rule,"|")> | |
<cfset match_count= 0> | |
<cfloop index="andlist" list="#enrollment_rule#" delimiters="|"> | |
<!--Or list is now another list (comma-delimited) of trait values--> | |
<cfloop index="orlist" list="#andlist#" delimiters=","> | |
<cfif ListFind(student_traits,orlist) GT 0> | |
<cfset match_count= match_count+1> | |
</cfif> | |
</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
<cftry> | |
<cfhttp url="http://www.digg.com/rss/index.xml" method="get"></cfhttp> | |
<cfcatch type="any"> | |
<p>This news feed is currently unavailable. This may be due to a temporary network error affecting the feed provider.</p> | |
<cfabort> | |
</cfcatch> | |
</cftry> | |
<cftry> | |
<cfset thefeed= xmlParse(cfhttp.FileContent)> |
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
<html> | |
<head> | |
<title>Simple Form</title> | |
<script language="javascript" src="jquery-1.2.1.js"></script> | |
<script language="javascript" src="jquery.form.js"></script> | |
<script language="javascript" src="submitDemo.js"></script> | |
<link rel="stylesheet" type="text/css" href="submitDemo.css"> | |
</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
hideElement {display:none;} | |
.errorMsg {background-color:red;color:white;padding:.5ex;} | |
.successMsg {background-color:green;color:white;padding:.5ex;} | |
.successText {color:green;font-weight:bold;} | |
.errorText {color:red;font-weight:bold;} | |
form label { | |
width:7em; | |
float: left; |
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
$(document).ready(function() { | |
$("#submitButton").click(function () { | |
$("#submitType").val("ajax"); | |
}); | |
$('#submitDemoForm').submit(function() { | |
$(this).ajaxSubmit(submitOptions); | |
return 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
<cfset errorList= ""> | |
<cfif form.firstName EQ ""> | |
<cfset errorList= ListAppend(errorList,"You must enter your first name.","|")> | |
</cfif> | |
<cfif form.lastName EQ ""> | |
<cfset errorList= ListAppend(errorList,"You must enter your last name.","|")> | |
</cfif> | |
<cfif errorList EQ ""> |
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
<!---Include the jQuery core file---> | |
<script type="text/javascript" src="/views/JavaScript/jquery-1.2.2.js"></script> | |
<script language="javascript"> | |
//Set the typical jQuery ready event handler to fire when the document is ready for manipulation | |
$(document).ready(function () { | |
//Assign a click event handler for all of the 'delete' hyperlinks (which all have a CSS class of 'deleteLink') | |
$(".deleteLink").click(function () { |
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
<package name="example"> | |
<object name="Item" table="itemsTable" sequence="itemId_seq" decorator="com.itemDecorator"> | |
<id name="itemId" type="numeric" /> | |
<property name="setId" type="numeric" column="setId" /> | |
<property name="itemTitle" type="string" column="itemTitle" /> | |
<property name="itemText" type="string" column="itemText" /> | |
<property name="itemOrder" type="numeric" column="itemOrder" /> | |
<property name="parentId" type="numeric" column="parentId" /> | |
</object> | |
</package> |
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 displayname="itemsDecorator" extends="transfer.com.TransferDecorator" output="false"> | |
<cffunction name="getMyParentItem" access="public" output="false" returntype="any"> | |
<cfreturn getTransfer().get("example.Item",getTransferObject().getParentId()) /> | |
</cffunction> | |
<cffunction name="getMyChildItems" access="public" output="false" returntype="array"> | |
<cfset var local= StructNew() /> | |
<cfset local.childrenArray= ArrayNew(1) /> | |
<cfset local.childrenQry= getTransfer().listByProperty("example.Item","parentId",getTransferObject().getItemId(),"itemOrder")> |
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
//Since JavaScripts counts months starting from 0 (January is 0), | |
//subtract 1 from the month integer submitted by the user | |
var formattedMonth = userSubmittedMonth - 1; | |
var testDate = new Date( userSubmittedYear,formattedMonth,userSubmittedDay,0,0,0,0) ; | |
if ( | |
testDate.getFullYear() != userSubmittedYear | |
|| testDate.getMonth() != formattedMonth | |
|| testDate.getDate() != userSubmittedDay |
OlderNewer