Check local host name
Showing posts with label Java script. Show all posts
Showing posts with label Java script. Show all posts
Thursday, October 13, 2016
Wednesday, June 29, 2016
clear html and append
var buildTable = function ($scope, table) {
var div = module.buildTable(table);
var to = $scope.div.find("#table");
to.empty();
//to.html();
to.append(div);
};
Thursday, May 26, 2016
window.location
var element = $(document.createElement("li"));
element.addClass("main-tabs");
element.html("Profile");
element.on('click', function (event) { window.location="https://elements-test.it.ohio-state.edu"; });
$scope.hardpoint.append(element);
Sunday, March 20, 2016
JQuery $.ajax
var fisInformationService = module.service("fis_info", function (_request) {
/**
*
* @param {Array.String} String of contexts for which to get related getInformation.
* @param {Function} Passed the received messages.
*/
this.getInformation = function (syncflag, apiField, id, otherInfo, callback) {
var request = searchPerson.endpoint + "/" + apiField + id;
if (otherInfo.length > 0) {
request = request + otherInfo;
}
//console.log("Requesting: " + request);
$.ajax({
type: "GET",
//beforeSend: function (req)
//{
// req.setRequestHeader("X-access-token", '');
//},
url: request,
async: syncflag,
success: function (data) {
//console.log("response for: " + request);
// console.log(data);
callback(data);
},
error: function (fail) {
console.error(fail);
}
});
};
return this;
});
/* Return constructed bus */
return link;
})();
Wednesday, March 16, 2016
online editors
https://jsfiddle.net/
https://plnkr.co/
http://jsbin.com/AlegIto/1/edit?html,js,output
https://plnkr.co/
http://jsbin.com/AlegIto/1/edit?html,js,output
Friday, January 29, 2016
Thursday, January 28, 2016
Javascript interview questions
How to remove duplicate elements in a array
Use array. Filter and index of
Async in javascript tag
2 script file downloads parallel
<script async type=<text/javascript> src=".... Js">
Put javascript file before the closing of body tag, so parser of html not blocked
Debug javascript in Visual Studio
Change default browser to IE
Debug
Detach all
Right click on Web form
Browse with
Javascript shortcomings
Security
Browser compatibility ex innertext
Server side and client side
Wednesday, January 27, 2016
Javascript prototype linkage
http://javascriptissexy.com/javascript-prototype-in-plain-detailed-language/
Between objects
Tuesday, December 15, 2015
Thursday, December 3, 2015
avascript Function Declaration vs Function expressions
https://tckidd.wordpress.com/2013/05/17/javascript-function-declaration-vs-function-expressions/
Thursday, November 19, 2015
Jslint
Code quality tool for javascript
Monday, November 16, 2015
Javascript book
http://eloquentjavascript.net/
Javascript interview
http://www.toptal.com/javascript/interview-questions
Wednesday, February 4, 2015
search string in javascript
if (mystring.search("target") > 0){
Tuesday, August 12, 2014
Subscribe to:
Posts (Atom)