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
section{ | |
width:600px; | |
padding: 15px; | |
margin: 15px auto ; | |
border:2px #00a1ff solid; | |
border-radius: 8px; | |
background-color: #00a1ff; | |
color:#fff; | |
} | |
h1 {color:#fff;text-align: center;} |
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
section{ | |
width:600px; | |
padding: 15px; | |
margin: 15px auto ; | |
border:2px #00a1ff solid; | |
border-radius: 8px; | |
background-color: #00a1ff; | |
color:#fff; | |
} | |
h1 {color:#fff;text-align: center;} |
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
// - orginal code | |
// worked but triggered pop block and would open in a new window instead of a new tab | |
$('a.docLink').click(function(event) { | |
event.preventDefault(); | |
var documentURL = $(this).attr('href'); | |
$.post (submissionURL, theInfo) | |
.always( function() { | |
var win=window.open(documentURL,'_blank'); |
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
Set up as an independent page that uses no template. It can be loaded in using | |
$.ajax({ | |
url: "itemList.html", | |
success: function (data) { | |
//do what ever you want with the data | |
}, | |
dataType: 'html' | |
}); |
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
//----- 1 ----- | |
$.ajax({ | |
url: '/path/to/file', | |
success: function(data){ | |
//do something; | |
//do more stuff to with the something that was just done. | |
}, | |
dataType: 'html' | |
}); | |
//---------- |
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
$.when( | |
$.ajax({ | |
url: '/path/to/file', | |
dataType: 'html' | |
}).done(function(data) { | |
//do stuff | |
}); | |
$.ajax({ | |
url: '/path/to/file2', |
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
# regex for sublime - clearing out dreamweaver templating from BC pages | |
#find: | |
(?s).+<!-- InstanceBeginEditable name="ContentArea" -->(.+)<!-- InstanceEndEditable -->.+ | |
#replace: | |
$1 |
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
/* ----- building JSON objects out of training modules ----- */ | |
// step 1 - add jQuery | |
var jq = document.createElement('script'); | |
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
//step 2 - add some handles | |
$('#subrightcol>div div').eq(2).attr('id', 'left'); | |
$('#subrightcol>div div.training_completedInfo').attr('id', 'right'); |
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
//clearing out training items | |
//set Altair 4x checkbox & datetime | |
document.getElementById('ctl00_cp_cat125506cat430727cat3').checked = false | |
document.getElementById('ctl00_cp_cat125506cat430728cat4').value = '' | |
//set Altair 5x checkbox & datetime | |
document.getElementById('ctl00_cp_cat125506cat430729cat3').checked = false | |
document.getElementById('ctl00_cp_cat125506cat430730cat4').value = '' |
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
A-1 CAT_Custom_380476_127022 | |
A-1_date CAT_Custom_380477_127022 | |
A-2 CAT_Custom_380479_127022 | |
A-2_date CAT_Custom_380480_127022 | |
A-3 CAT_Custom_380481_127022 | |
A-3_date CAT_Custom_380483_127022 | |
A-4 CAT_Custom_380485_127022 | |
A-4_date CAT_Custom_380486_127022 | |
A-5 CAT_Custom_380488_127022 | |
A-5_date CAT_Custom_380489_127022 |
OlderNewer