Yahoo! Language centers have been deprecated. If you have any concerns or questions, please don't hesitate to contact us in General Discussion at YDN forum.
web pages using the Maps AJAX API.
In addition, the building block APIs (Geocode, Map
Image, Traffic, Local
object (see our AJAX HOWTO for more info). With these APIs you can also
use the optional request parameters
instead of XML. Don't know from JSON? Check out our basic JSON
Yahoo! Search - All the Yahoo! Search Web services provide a REST interface. As with the Maps building block APIs you can use XMLHttpRequest to access these APIs, and get output in XML or JSON format.
Yahoo! Travel - As with Yahoo! Maps and Search, access the Yahoo! Travel
Trip Planner API through a REST interface and use the
to get JSON output from the Yahoo! Travel Web Services request.
HOWTO: Use a Web Proxy for Cross-Domain XMLHttpRequest Calls: Why do you need a web proxy to use XMLHttpRequest? How do you get one? This HOWTO explains describes cross-domain browser security restrictions and how to use our PHP Proxy sample.
How To Build a Maps Mashup: Use the Yahoo! Maps AJAX API to create a mashup with maps, local search and traffic web services from Yahoo!. This tutorial shows how to set up a web proxy, make the web services calls and generate the maps as well as markers for additional information.
Fixing AJAX: XMLHttpRequest Considered Harmful: Various ways of working around around browser security issues with XMLHttpRequest calls made between domains.
Web Services + JSON = Dump Your Proxy: Use the Yahoo! Web Services, the dynamic <SCRIPT> tag and JSON to build client-side web apps and avoid cross-domain browser restrictions.
Flash API Reference Manual: Complete documentation for all the Yahoo! Maps Flash APIs, including JS-Flash.
AJAX API Getting Started: Yahoo! Maps also provides DHTML-based embeddable maps for your web site. Use the AJAX API to create and manipulate these maps. This Getting Started tutorial provides the basic introduction to the Yahoo! Maps AJAX API.
AJAX API Reference Manual: Complete documentation for the Yahoo! Maps AJAX API.
How to Build a Widget (PDF): Get started building a Yahoo! Widget with this quick-and-dirty tutorial.
Konfabulator Reference Guide (PDF): The complete Yahoo! Widgets reference documentation.
Yahoo! Design Patterns: an evolving set of design guidelines for building web pages and applications. Using the Yahoo! UI Library can help you more easily implement the patterns described in these pages.
Yahoo! User Interface Blog: News, articles, advice and discussion from our UI engineers about using the UI Library and Design Patterns.
Sometimes it's easiest to learn by looking at what other people have done. In this section we've included code samples we've written to help you get up to speed with web services, JSON, and XMLHttpRequest, as well as tools written by us and by others for Widgets and YME Plugins.
Unless otherwise noted, all the following code samples are provided under the terms of the Yahoo SDK Software License Agreement.
PHP proxy for XMLHttpRequest calls: Sample code for a simple proxy you can install on your web server to relay Yahoo! Web Services requests to your application. See the Proxy HOWTO for information on why you might need this. NOTE: You will need to change the extension of this file to .php (or another valid PHP extension) when you install it.
Proxy Test File (POST and GET): This HTML form tests the PHP proxy above to ensure that both HTTP GET and POST are working. NOTE: This form is not live. Use Save As... to save it to your own system.
Yahoo! Search Web Services REST request (JSON output): Make a Yahoo! Search request using XMLHttpRequest through a proxy and get output back as JSON (rather than XML). Note that this example is identical to the one in the previous section except for the output parameter to the request.
class for accessing Yahoo! Web Services using dynamic
Using Dynamic Script Tags: (Yahoo!
Retro Maps) this example uses the JSONscriptRequest class, the dynamic
JSON and the Yahoo! Maps APIs. View Source to see how it works.
Yahoo! Map Mashup with JSON: This is the same sample as in the previous section, implemented this time with JSON instead of XML. View Source to compare and contrast the differences.
Yahoo! Travel Trip Browser: A visual trip plan search browser that uses the Yahoo! Travel Trip Plan APIs and JSON.
Widget Converter: Convert a widget from its bundled release format into a collection of code and resources. You can use this tool to examine the code of the sample Yahoo! Widgets.
XMLHTTP (MSDN): API Documentation for Microsoft's XMLHTTP object.
XMLHttpRequest (MozillaZine Knowledge Base): API documentation for Mozilla's XMLHttpRequest
AJAX: Getting Started (Mozilla): AJAX basics, with examples.
Mastering AJAX: Part 1: Introduction: A detailed getting started article from IBM DeveloperWorks.
How do I parse a string with XML markup into an XML DOM document? : An FAQ from faqts.com with sample code for Internet Explorer and Mozilla.
JSON: A Fat-Free Alternative to XML (json.org): A comparison of JSON and XML as a data representation format.
JSON Yahoo! Group: Discuss JSON here.
RSS To JSON Converter: a general-purpose tool to convert any RSS or Atom feed into JSON, by John Resig.
Scripting Debugging in Internet Explorer: Microsoft debuggers for Internet Explorer.
We also provide individual lists for each of the web services and APIs we support; your questions are always welcome there as well. See the Yahoo! Developer Network Community page for more information on these mailing lists.