Recent Posts
Calendar
May 2013
S M T W T F S
« Apr    
 1234
567891011
12131415161718
19202122232425
262728293031  

Archive for the ‘jQuery’ Category

jQuery – Loading Partial Content

misc_vol1_087 In previous posts, I’ve covered the core architecture of jQuery.  How it works.  How you call methods.  A brief overview of what’s available.

From here on out, we will focus more on specific solutions that jQuery can provide.  One of those is the ability to load partial content from the server and display it back in a section of our web page.

Read the rest of this entry »

Republished by Blog Post Promoter

JQuery, Cufon, and Dynamic Content

J02B0015

Yesterday I mentioned a new tool called Cufon that allows you to easily embed fonts in your web site.

One quirk about this tool is that your HTML has to be rendered prior to applying, or refreshing, the font. If you are using any kind of AJAXy stuff in your site, you’ll need to re-apply the font change.  The trick is knowing when to do this.

Read the rest of this entry »

Republished by Blog Post Promoter

Host jQuery at Google (with Intellisense support)

tp_vol3_007 While reviewing my RSS feed this morning, I found this article:

3 reasons why you should let Google host jQuery for you | Encosia

I had no idea!

The three reasons are:

  1. Decreased Latency
    Google will serve the data from the closest server
  2. Increased Parallelism
    More threads are available to download content specific to your application instead of downloading this common library.
  3. Better caching
    They may already have the library on their computer.

Here is the code you should be using to include jQuery in your application to use the Content Delivery Network at Google:

    <script type="text/javascript"
    src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js">
    </script>

The one issue you may have to deal with is that if you are using the intellisense files for Visual Studio, you will need to find some alternate method.  Here’s one:

Read the rest of this entry »

Republished by Blog Post Promoter

jQuery – Modal Dialog

87Tr Last week I introduced the jQuery Dialog plugin, which allows us to put various dialogs on the screen.

I only gave out the basics of this flexible widget to keep things simple.  Today, I want to expand on that a bit by showing off some of the other capabilities.

If you’ve been coding along, pull out the code from last week, because that’s where I’ll be starting from.

Read the rest of this entry »

Republished by Blog Post Promoter

jQuery – Explaining Last Week’s Code

ka_vol1_070 Last week I left you with a chunk of code that showed you that you had successfully installed jQuery into your web application.

The code we need to discuss looks like this:

$(document).ready(function() {
    alert("jquery is working");
});

Read the rest of this entry »

Republished by Blog Post Promoter

Bear