YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub
  • Home
  • Gallery
  • Forums
  • YUI 2
  • YUI 3
  • YUI Compressor
  • YUI Doc
  • More
  • Gallery Forums
  • Gallery Stats
  • Gallery Calendar
  • Register
  • Login

Modules

  • Home
  • Featured
  • Popular
  • New
  • All

Documentation

  • FAQ
  • Developer FAQ
  • Developer Guide
  • Module Setup

Tag Cloud

rgrove davglass io overlay ericf slideshow node lsmith port plugin form skinnable widget ajax caridy event filter animation yui2 adam apipkin jafl nzakas jsonp foxxtrot html5

Context Navigation

    YUI Library is not responsible for bugs or support with this module. It is available as a free service. For support please contact the module owner with the provided links.

    simple-ajax (gallery-simple-ajax)

    Last Updated: 03/8/10
    + 1 -

    JB Malatrasi

    Created: 03/5/10
    Project: YUI 3
    License: YUI BSD
    YUI Version: 3.0.0
    Free for use.

    This module allows developers to make some POST and GET ajax request that returns JSON result or void, more easily. It's similar to the method post() and get() from jQuery.

    The module contains 2 methods post() and get().

    • Tags:
    • jumbay
    • ajax
    • Download
    • Docs
    • Homepage
    • Bugs
    • Source
    • Example
    • Forum
    • History

    This module allows developers to make some POST and GET ajax request that returns JSON result or void, more easily. It's similar to the method post() and get() from jQuery.

    The module contains 2 methods post() and get().

    Code Sample

    YUI().use('gallery-simple-ajax', function(Y) {
    	//Make a POST request
    	Y.SimpleAjax.post('ajax.php?id=1',function(data){
    		if(data.json){
    			Y.log(data.json);
    		}
    	},myContext, {action: 'getNames',page:2})
     
            //Make a GET request
    	Y.SimpleAjax.get('ajax.php?id=1',function(data){
    		if(data.json){
    			Y.log(data.json);
    		}
    	})
    });

    Forum Posts

    No forum posts for this module.

    YUI Projects
    • All YUI Downloads
    • YUI 2
    • YUI 3
    • YUI Doc
    • YUI Compressor
    • YUILibrary.com
    • YUI Build Tool
    • YUI PHP Loader
    Pages & Links
    • All YUI Downloads
    • Git FAQ
    • Graded Browser Support
    • Contribute to YUI
    • Forum Stats
    • Gallery Stats
    • YUI Calendar
    Contribute
    • Submit a Bug
    • Request a Feature
    • Write Code
    • Meet the Team
    Follow YUI
    • on GitHub
    • on Twitter
    • on FriendFeed
    • on Facebook
    • on IRC
    • YUI Blog
    • YUI Theater
    • YUI Forums

    © 2010 YUI Library - Site Credits