Showing posts with label jQuery. Show all posts
Showing posts with label jQuery. Show all posts
Wednesday, November 03, 2010
WCF Support for jQuery
Support for 'jQuery-friendly' WCF services has now been added to Visual Studio 2010 via CodePlex: http://tomasz.janczuk.org/2010/10/wcf-support-for-jquery-on.html
Tuesday, September 07, 2010
How JSONP Works
Good article explaining some of what's going on behind the scenes when making JSONP calls using jQuery and using it with WCF.
Monday, April 05, 2010
Slot Machine Tabs
A nice downloadable example of 'slot machine' tabs using jQuery and CSS: http://css-tricks.com/slot-machine-tabs/
Thursday, March 11, 2010
ASP.NET - jQuery Datepicker
After wasting too much time trying to get the ASP.NET AJAX CalendarExtender working on my master page I eventually gave up and decided to go with Keith Wood's jQuery Datepicker - wish I had done so earlier. Using the jQuery selectors it was simple to attach it to all of my date text boxes and easily set both the date format and minimum and/or maximum dates.
Wednesday, February 17, 2010
Remove non-jQuery Event with jQuery
It was driving me nuts trying to remove a checkbox onclick event that was created with JavaScript rather than through jQuery. After trying unbind(), click(), attr() etc. I found the solution on StackOverflow - use removeAttr():
$('#btnNext').removeAttr("onclick");
Consuming ASMX Web Services with jQuery
I was pleasantly surprised that this just worked...
Thanks to Dave Ward's post here.
<html>
<head>
<script type="text/javascript" src="jquery-1.4.1.min.js"></script>
</head>
<body>
<script type="text/javascript">
$.ajax({
type: "POST",
url: "http://Server/Service.asmx/MethodName",
data: "{'firstName':'Gareth', 'lastName':'Hill'}",
contentType: "application/json; charset=iso-8859-1",
dataType: "json",
success: function(msg){
alert(msg.d);
}
});
</script>
</body>
</html>
Thanks to Dave Ward's post here.
Subscribe to:
Posts (Atom)