This file contains hidden or 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
// JavaScript Document | |
//Check All Check Box | |
function CheckAll() | |
{ | |
var i; | |
for(i=0;i<document.frmmain.elements.length; i++) | |
{ | |
var elm = document.frmmain.elements[i]; | |
if(elm.type == "checkbox" && elm.name != "chkCheckAll" ) |
This file contains hidden or 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
<cfoutput> | |
<cfform name="registration" id="registration"> | |
<h2>Detailed Registration:</h2> | |
<cfquery name="getStates" datasource="TestDB"> | |
select * | |
from shema_countries | |
</cfquery> | |
<div class="registrationLabel"> | |
Country |
This file contains hidden or 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
<!--- Start : Ajax Auto Complete ---> | |
<script type="text/javascript" src="js/jquery.js"></script> | |
<script type='text/javascript' src='js/jquery.autocomplete.js'></script> | |
<link rel="stylesheet" type="text/css" href="css/jquery.autocomplete.css" /> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$("#CountryName").autocomplete("get_countries_list.php", { | |
width: 260, | |
matchContains: true, |
This file contains hidden or 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
<!--- Start : Ajax Auto Complete ---> | |
<script type="text/javascript" src="js/jquery.js"></script> | |
<script type='text/javascript' src='js/jquery.autocomplete.js'></script> | |
<link rel="stylesheet" type="text/css" href="css/jquery.autocomplete.css" /> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$("#CountryName").autocomplete("get_countries_list.cfm", { | |
width: 260, | |
matchContains: true, |
This file contains hidden or 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
<!--- Upload file. ---> | |
<cfset UploadPath="x:\abc\uploads"> | |
<cfset ThumbnailHeight="200"> | |
<cfset ThumbnailWidth="200"> | |
<!---Logofile is the name of form fields---> | |
<cffile action="upload" filefield="#Logofile#" destination="#UploadPath#" nameconflict="MakeUnique"> | |
<cfset LogoFile = #File.ServerFile#> | |
<cfset SourcePic = UploadPath & "/" & LogoFile> |
This file contains hidden or 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
<cfform name="FormSendMessage" action="sendmessage.cfm" method="post"> | |
<table border="0" cellpadding="10"> | |
<tr> | |
<td colspan="2">Sent message from twilio API</td> | |
</tr> | |
<tr> | |
<td>To Number</td> | |
<td> | |
<cfinput type="text" name="To" required="yes" message="Please enter a number" maxlength="15" /></td>(with country code like +1 or +91) | |
</tr> |
This file contains hidden or 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
<cfoutput> | |
<script type="text/javascript" language="JavaScript"> | |
function listbox_move(listID, direction) | |
{ | |
var listbox = document.getElementById(listID); | |
var selIndex = listbox.selectedIndex; | |
if(-1 == selIndex) | |
{ | |
alert("Please select an option to move."); |
This file contains hidden or 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 getState_add(countryId) | |
{ | |
ajax= nuevoAjax(); | |
var url="getstate_add.php"; | |
url=url+"?id="+countryId; | |
//alert(url); | |
ajax.open ("GET",url, true); | |
ajax.onreadystatechange= function() | |
{ | |
if (ajax.readyState == 4) |
This file contains hidden or 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
<cfif form.body EQ "HELP"> | |
<cfsavecontent variable="response"> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Sms>This is Test Reply for help.</Sms> | |
</Response> | |
</cfsavecontent> | |
<cfelseif form.body EQ "STOP"> |
This file contains hidden or 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 src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | |
<script src="resources/amcharts/amcharts.js" type="text/javascript"></script> | |
<script> | |
CreateChart() | |
function CreateChart() | |
{ | |
var Hourlychart; | |
$.getJSON("registration.cfc?method=GetChart&returnformat=json&queryformat=column", {}, function(res,code) | |
{ |