Skip to content

Instantly share code, notes, and snippets.

View kirkpabk's full-sized avatar

kirkpabk kirkpabk

  • Independent Consultant
View GitHub Profile
@kirkpabk
kirkpabk / datetimepicker_datepicker_and_timepicker_options.js
Last active August 29, 2015 14:05
Snippets are some JQuery plugins usage samples for datetimepicker datepicker and timepicker
//DATE TIME SETUPS
// http://trentrichardson.com/
var serviceCallDate = $('#ServiceCallDate');
var completedDate = $('#CompletedDate');
var responseDate = $('#ResponseDate');
var checkedDate = $('#CheckedDate');
$('#ServiceCallDate').datetimepicker({
altField: "#ServiceCallTime",
@kirkpabk
kirkpabk / JQuery_Mask_Samples.js
Last active August 29, 2015 14:05
JQuery Mask Samples - posted for coworker reference.
//jquery.maskedinput-1.3.1.js
//PHONE NUMBER MASKS
$("#HomePhone,#WorkPhone").mask("(999)999-9999?x99999");
//ZIP CODE MASK
$("#Zip").mask("99999?-9999");
@kirkpabk
kirkpabk / jquery_autosize_jqeasycharcounter_addinSample.js
Last active August 29, 2015 14:05
JQuery AutoSize and JQEasyCharCounter Addin Sample Combination Usage
//TEXTAREA AUTOGROW **AND** REMAINING CHARACTER COUNTER SETUP
//Combined jquery.autosize.js and jquery.jqEasyCharCounter.js
$("#AdditionalComment").autosize().jqEasyCounter({
maxChars: 1000,
maxCharsWarning: 995,
msgFontSize: "11px",
msgFontColor: "#000",
msgTextAlign: "left",
msgWarningColor: "#A00",
msgAppendMethod:"insertAfter"
@kirkpabk
kirkpabk / gisstreetnamelookup.js
Created August 7, 2014 21:26
Using a select2 dropdown and ajax call to a GIS server
$("#GisStreetName.select2").select2({
placeholder: "Select...",
minimumInputLength: 2,
allowClear: true,
autoClear: false,
initSelection: function (element, callback) {
var elementText = element.val();
data = { id: elementText, text: elementText };
callback(data);
},
@kirkpabk
kirkpabk / AnotherSample_Select2_and_GIS_Pull.js
Created August 7, 2014 21:38
Several rudamentary samples for obtaining bits of information for a Select2 dropdown using AJAX and GIS
$("#parcelByAddress.select2").select2({
placeholder: "Select...",
minimumInputLength: 2,
allowClear: true,
autoClear: false,
//initSelection: function (element, callback) {
// var elementText = element.val();
// data = { id: elementText, text: elementText };
// callback(data);
//},