YUI Library Home

Site Search (YDN & YUIBlog):

# YUI Library Examples: Get Utility

# Get Utility: Examples

The Get Utility provides a convenient API for appending script nodes and CSS files to an existing DOM. This can be useful when loading functionality on-demand; it's also useful when retrieving JSON data feeds across trusted but non-identical domains.

- Quickstart Example: Getting a Script File with YUI Get: This example illustrates the simplest use case in which the Get Utility is used to retrieve a script file.
- Getting a Script Node with JSON Data from a Web Service: This example shows how to retrieve JSON data from a web service using the YUI Get Utility and how to then display that data on the page.
- Getting CSS Style Sheets: Attach and remove stylesheets using the Get Utility.

## Other YUI Examples That Make Use of the Get Utility

- Complex Application (included with examples for the Layout Manager)

### Get Utility:

- User's Guide (external)
- API Documentation
- Cheat Sheet PDF(external)

Copyright © 2009 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings