Tags » Javscript

[MongoDB] Insert new data as first index in existing Array

For instance if i have following simple data:

{ "_id" : ObjectId("56a9d168e7d029513ded52f3"), "first_roof" : [ { "seq" : [ "John", "Ben", "Lee" ] } ] }
… 101 more words
Programming

The Ol' Once Over


Imagine you attend 90s throwback night at Math Club, the hottest bar in Palo Alto. Salt and Peppa comes on. You unfasten one strap of your overalls and… 794 more words

Jillian Fetter

Character Counting Remaining on Textarea

CSS
.wrapper{width:1000px; border:2px solid #8AC076; margin: 10px auto; padding:10px; }
textarea{width:600px; height:150px; padding:10px; border:1px solid #ccc; text-align: left;}

HTML

	<form>
		<textarea  onkeyup="change(this);" style="border:1px #009 solid;"> </textarea>
		<span style="font-weight:bold;color:#080;">
		You've typed <span id="char_cnt">0</span> character(s). 72 more words
Css

todo list using handlebar

<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<title>ToDo</title>
<link rel=”stylesheet” href=”//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css”>
<style>
body {
padding-top: 100px;
}
</style>
</head>
<body>

 

</div>
</div>
</div>

{{title}}

 

Your Next Task… 272 more words

Javscript

Sample code snnipet

var products = [
{id:1,price:34},
{id:2,price:44},
{id:3,price:54}
];
var sum = 0;
for(i=0;i”);
h1.html(products[i].price);
$(“#result”).append(h1);
}
});

=

http://js/lodash.min.js
http://js/handlebars.min.js
http://js/jquery.min.js
http://js/backbone-min.js

var products = [ 414 more words

Javscript

Javascript map,filter,reduce tutorial

<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<title>Backbone & Handlebars Workshop</title>
</head>
<body>

http://js/lodash.min.js
http://js/handlebars.min.js
http://js/jquery.min.js
http://js/backbone-min.js

var numbers = ;
var snumbers = numbers.map(function(i){ 30 more words

Javscript

Callback function in javascript

function htmlData(url,ql, qStr)
{
var fieldname =”txtResult”+ql;
if (url.length==0)
{
document.getElementById(fieldname).innerHTML=””;
return;
}
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert (“Browser does not support HTTP Request”);
return; 36 more words

Javscript