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
// First, make sure our browser supports HTML 5 local storage | |
if (typeof(localStorage) == 'undefined' ) | |
{ | |
alert('Your browser does not support HTML5 localStorage. Try upgrading.'); | |
} | |
else | |
{ | |
try | |
{ | |
// saves to the database using key/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
$("#itemone, #itemtwo").hide(); | |
$("#itemthree, #itemfour").show(); |
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
// Example of poor design... | |
// Note the lack of any useful constraints on the 'status' member. You can type anything there! | |
// What happens if you're trying to pass this across a web service boundary to somebody consuming | |
// your service and you made a typo in one of your status responses. Tracking down this bug is hard. | |
// Pandas are very sad. | |
public class WsResponse | |
{ | |
public string Status; | |
public string StatusDescription; |
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
dig www.stackoverflow.com |
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="content" style="padding: 10px;"> | |
<form id="frmTest" method="get"> | |
Lots of other content here<br /> | |
Lots of other content here<br /> | |
Lots of other content here<br /> | |
Lots of other content here<br /> | |
Lots of other content here<br /> | |
Lots of other content here<br /> | |
<input id="txtEmail" name="txtEmail" type="text" class="required email"/> | |
<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
label.invalid | |
{ | |
color: Red; | |
font-style: italic; | |
padding: 1px; | |
margin: 0px 0px 0px 5px; | |
} |
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
$(document).ready(function () | |
{ | |
// Bind validation rules | |
$("#frmTest").validate({ | |
errorClass: "invalid" | |
}); | |
// Bind click handler: | |
$("#btnValidate").click(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
/Date(1224043200000)/ |
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 date = new Date(parseInt(jsonDate.substr(6))); |
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
date.toDateString(); |
OlderNewer