Basic template for D3 example. Ready for usage with bl.ocks.org.
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
<?php | |
/* | |
-- the SQL database table | |
create table form_ajax ( | |
ID varchar(5) not null, | |
Name varchar(100), | |
Address varchar(100), | |
Phone varchar(20), | |
Email varchar(255), |
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
UrlExists(sitename2, function(status) { | |
if (status === 200) { | |
// file was found | |
console.log('URL found successfully'); | |
} else if (status === 404) { | |
// 404 not found | |
console.log('not this tyme - ' + output); | |
//runs code to change the output (combined site name/variable) | |
//make this a while loop - checking that the site name doesn't work | |
for (var i = 0; i < 11; i++) { |
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
//situation: using SharePoint forms designer. | |
//get value from field, store in variable and use that to search for a particular document control number | |
var dcn = fd.field('DocumentNumber').control()._el().text(); | |
//var dcn2 = fd.field('DocumentControlNumber').control().value(); | |
fd.field('DocumentNumber').control()._el().wrap('<a href="http://sharepoint.company.com/Pages/search.aspx?k='+dcn+'"></a>'); | |
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
var isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; | |
// Opera 8.0+ (UA detection to detect Blink/v8-powered Opera) | |
var isFirefox = typeof InstallTrigger !== 'undefined'; // Firefox 1.0+ | |
var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0; | |
// At least Safari 3+: "[object HTMLElementConstructor]" | |
var isChrome = !!window.chrome && !isOpera; // Chrome 1+ | |
var isIE = /*@cc_on!@*/false || !!document.documentMode; // At least IE6 | |
var output = 'Detecting browsers by ducktyping:<hr>'; | |
output += 'isFirefox: ' + isFirefox + '<br>'; |
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
$destination = "C:\users\userName\desktop\testFolder" | |
$webUrl = "http://sharetest" | |
$listUrl = "http://sharetest/office" | |
############################################################## | |
$web = Get-SPWeb -Identity $webUrl | |
$list = $web.GetList($listUrl) | |
function ProcessFolder { |
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. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js" | |
2. type="text/javascript"></script> | |
3. | |
4. <script type="text/javascript"> | |
5. | |
6. $(document).ready(function() | |
7. { | |
8. //Set the Field to Read only and change its background colour | |
9. $("input[title='FieldName']").attr("readonly","true").css('background-color','#F6F6F6'); | |
10. |
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
# ipak function: install and load multiple R packages. | |
# check to see if packages are installed. Install them if they are not, then load them into the R session. | |
ipak <- function(pkg){ | |
new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])] | |
if (length(new.pkg)) | |
install.packages(new.pkg, dependencies = TRUE) | |
sapply(pkg, require, character.only = TRUE) | |
} |
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
<!--- | |
@author : Karanraj | |
@Description : A Visualforce page to demonstrate the functionality of Remote Objects | |
--> | |
<apex:page showHeader="false" standardStylesheets="false"> | |
<!-- Boostrap and jQuery file --> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" /> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css" /> |
OlderNewer