background preloader

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. version added: 1.0jQuery( "prev ~ siblings" )prev: Any valid selector.siblings: A selector to filter elements that are the following siblings of the first selector.

Next Siblings Selector (“prev ~ siblings”)

The notable difference between (prev + next) and (prev ~ siblings) is their respective reach. While the former reaches only to the immediately following sibling element, the latter extends that reach to all following sibling elements. Finds all divs that are siblings after the element with #prev as its id. Notice the span isn't selected since it is not a div and the "niece" isn't selected since it is a child of a sibling, not an actual sibling. Demo: Tutorial AJAX interface menu using jQuery/PHP. Tutorials. W3Schools Online Web Tutorials.

Sliding door effect - TutsValley.com - DEMO. This effect is made by changing the inside of the animate function in JQuery.

Sliding door effect - TutsValley.com - DEMO

Just making it into negative number, everything else is same as the normal effect. 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: 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. So far, my examples of using jQuery to interact with ASP.NET AJAX services have avoided passing complex data to the server during the request. This has been intentional, because I didn’t want to over-complicate the examples. For primarily read-only scenarios, like the RSS reader examples, passing just a few simple values to the service is often all you need. 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. Flot - Project Hosting on Google Code. 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. First, reports are a low hanging fruit. Existing reports are in bad shape in virtually every organization that has no access to a professional database/DW/BI team. Second, it is surprisingly fast to develop for a good reporting system like the SQL Server Reporting Services (SSRS). But if you are an application developer, SSRS report server is not your choice for operative reporting. I have played around with Telerik Reporting in two projects, both times creating a handful of embedded reports for particular customer needs.