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
<div id="hidden_form_container" style="display:none;"></div> |
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 app = angular.module('myApp', []); | |
function Ctrl1($scope) { | |
$scope.toto = function(){ | |
alert('toto'); | |
}; | |
$scope.titi = 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
<div ng-app='app' class="filters_ct" ng-controller="selectFilter"> | |
<ul> | |
<li ng-repeat="filter in filters" ng-click="select($index)" ng-class="{sel: $index == selected}"> | |
<span class="filters_ct_status"></span> | |
{{filter.time}} | |
</li> | |
</ul> | |
</div> |
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
<Query> | |
<Where> | |
<Eq> | |
<FieldRef Name="Area" LookupId="TRUE" /> | |
<Value Type="Lookup">10</Value> | |
</Eq> | |
</Where> | |
</Query> |
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( getTweets('austintexasgov'), | |
getTweets('greenling_com'), | |
getTweets('themomandpops') | |
).done(function(atxArgs, greenlingArgs, momandpopsArgs){ | |
var allTweets = [].concat(atxArgs[0]).concat(greenlingArgs[0]).concat(momandpopsArgs[0]); | |
var sortedTweets = sortTweets(allTweets); | |
showTweets(sortedTweets); | |
}); | |
var getTweets = function(user){ |
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
<script type="text/javascript"> | |
var arr1=[1,2,3,4,5]; | |
var arr2=[3,4,5,7,8,9,6]; | |
$(document).ready(function(){ | |
var arr=$(arr1).not(arr2).get(); | |
alert(arr.length); | |
}); | |
</script> |
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
<script type="text/javascript"> | |
alert ("js on."); | |
$(document).ready(function() { | |
alert ("jQuery on."); | |
var thisSite = $().SPServices.SPGetCurrentSite(); | |
alert("Hello World! Your site is : " + thisSite); | |
}); | |
</script> |
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
<input type="radio" name="choice" value="1">choice1 | |
<input type="radio" name="choice" value="2">choice2 | |
<br /> | |
<input id="autocomplete"> |
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
function createListItem() { | |
var clientContext = new SP.ClientContext(_spPageContextInfo.siteAbsoluteUrl); | |
var oList = clientContext.get_web().get_lists().getByTitle('TestList'); | |
var itemCreateInfo = new SP.ListItemCreationInformation(); | |
this.oListItem = oList.addItem(itemCreateInfo); | |
//Single line of text | |
oListItem.set_item('Title', 'My New Item!'); | |
//Single Choice |
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
ClientContext context = new ClientContext(webUrl); | |
Web web = context.Web; | |
context.ExecuteQuery(); | |
Folder folder = web.RootFolder; | |
context.Load(folder); | |
folder.WelcomePage = "SitePages/MyCustomPage.aspx"; | |
folder.Update(); | |
context.ExecuteQuery(); | |
//For other folder (e. g. Site Pages) |