Jquery

Facebook Twitter

Using jQuery to Consume ASP.NET JSON Web Services. Note: This post is part of a long-running series of posts covering the union of jQuery and ASP.NET: jQuery for the ASP.NET Developer.

Using jQuery to Consume ASP.NET JSON Web Services

Topics in this series range all the way from using jQuery to enhance UpdatePanels to using jQuery up to completely manage rendering and interaction in the browser with ASP.NET only acting as a backend API. If the post you're viewing now is something that interests you, be sure to check out the rest of the posts in this series. In response to many of the articles here, I receive feedback asking how to achieve the same results without using ASP.NET AJAX. As much as I’m a fan of ASP.NET AJAX, I must agree that its JavaScript payload can certainly be a drawback in some situations. My recent deferred content loading post is an excellent example of that. In this post, I intend to correct that. First, I’ll cover the two requirements necessary when calling an ASMX web service that’s being JSON serialized by the ASP.NET AJAX extensions.

Putting it all together. jQuery: The Write Less, Do More, JavaScript Library. Next Siblings Selector (“prev ~ siblings”) Description: Selects all sibling elements that follow after the "prev" element, have the same parent, and match the filtering "siblings" selector.

Next Siblings Selector (“prev ~ siblings”)

Tutorial AJAX interface menu using jQuery/PHP. Tutorials. W3Schools Online Web Tutorials. Sliding door effect - TutsValley.com - DEMO. How to get and set form element values with jQuery. Posted November 13th, 2008 in Javascript (Updated April 22nd, 2010) jQuery is a Javascript framework which can simplify coding Javascript for a website and removes a lot of cross browser compatibility issues.

How to get and set form element values with jQuery

This post looks at how to get and set the values of HTML form elements with jQuery. Getting a form value with jQuery To get a form value with jQuery use the val() function. Let's say we have a form like this, using an id for each form element: We can display an alert for the values of "foo" and "bar" as easily this: If we're using the name only and not specifying an id, the jQuery to get the form values would be this: If you have a group of radio buttons and want to get the selected button, the code is slightly different because they all have the same name.

jQuery: Setting a form value with jQuery You can set the form values with jQuery using the same val() function but passing it a new value instead. . [0] would set the first one checked, [1] would set the second one checked and so on. Using complex types to make calling services less… complex. Note: This post is part of a long-running series of posts covering the union of jQuery and ASP.NET: jQuery for the ASP.NET Developer.

Using complex types to make calling services less… complex

Topics in this series range all the way from using jQuery to enhance UpdatePanels to using jQuery up to completely manage rendering and interaction in the browser with ASP.NET only acting as a backend API. If the post you're viewing now is something that interests you, be sure to check out the rest of the posts in this series. Private Members in JavaScript. Douglas Crockford www.crockford.com JavaScript is the world's most misunderstood programming language.

Private Members in JavaScript

Some believe that it lacks the property of information hiding because objects cannot have private instance variables and methods. Many ways to communicate with your database using jQuery AJAX an. I've recently done a series of articles that feature calling databases via AJAX using jQuery.

Many ways to communicate with your database using jQuery AJAX an

In pretty much all of the articles, I have used Web Services as my data access mechanism. Judging from the comments that some of the articles have attracted, this has caused a little confusion. But Web Services is just one mechanism. Page Methods and simple ASPX files are two more. And finally, as pointed out by a commenter, Benny Halperin, ASHX files are yet another option. Each example will feature the same requirement, and that is to obtain and display the Northwind Customer details relating to a specific CustomerID selected from a DropDownList on a page called Customer.aspx.

The bare bones of Customer.aspx are as follows: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Customer.aspx.cs" Inherits="Customer" %><! This has a code-behind in which the data is obtained and bound to the DropDownList to give the list of customers: ASPX File. Flot - Project Hosting on Google Code. Charts with Rotated Axis Text. $(document).ready(function(){ var line1 = [['Cup Holder Pinion Bob', 7], ['Generic Fog Lamp', 9], ['HDTV Receiver', 15], ['8 Track Control Module', 12], [' Sludge Pump Fourier Modulator', 3], ['Transcender/Spice Rack', 6], ['Hair Spray Danger Indicator', 18]]; var line2 = [['Nickle', 28], ['Aluminum', 13], ['Xenon', 54], ['Silver', 47], ['Sulfer', 16], ['Silicon', 14], ['Vanadium', 23]]; var plot2 = $.jqplot('chart2', [line1, line2], { axesDefaults: {

Charts with Rotated Axis Text

Embedded Reporting with Chart Controls. Thoughts On Embedded Reporting & Few Tips. Some people would argue that preparing business reports is not an innovative area to be in.

Thoughts On Embedded Reporting & Few Tips

But in my experience reporting is the area where an individual developer can make a big difference, with relatively small effort. At best, report development is extremely productive, due to two reasons.