• Register
  • Log In
  • Home
  • Quick Start
    • Configurator
    • Download YUI 3
  • Documentation
    • User Guides
    • Examples
    • API Docs
    • Environments
    • Tutorials
  • Community
    • Gallery
    • Blog
    • Forums
    • YUI Theater
    • Calendar
  • Contribute
    • YUI on GitHub »
    • File a Ticket
    • View Tickets
    • Dashboard
  • Other Projects
    • Shifter »
    • Yogi »
    • YUI 2
    • YUI Doc »
    • YUI Test
    • YUI Website
    • YUI Compressor »
    • YUI Builder »
    • YUI PHP Loader
    • Grid Builder »
    • Skin Builder »
  • YUI
  • >
  • Community
  • >
  • Gallery

Gallery

Modules

  • Home
  • Featured
  • Popular
  • New
  • All

Documentation

  • Yogi Documentation
  • Shifter Documentation
  • Developer Guide
  • Module Setup

Tag Cloud

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.

    IO Multi-response (gallery-io-multiresponse) on cdn

    Last Updated: 04/7/13
    + 0 -

    John Lindal

    YUI Contributor

    See 50 more by this user.

    Created: 03/9/11
    Last CDN Push: 06/27/12
    Build Tag: gallery-2012.06.27-20-10
    Project: YUI 3
    License: YUI BSD
    YUI Version: 3.5.1
    Free for use.

    This IO module allows the server to return an unlimited number of responses to a single request. This can be useful if you need to return results in small batches, as they become available, instead of all at once, after the processing is finished. It is also useful as a replacement for chained requests. The chaining logic can be implemented on the server, so the server doesn't have to wait for the next request before working on it.

    • Tags:
    • iframe
    • upload
    • multiresponse
    • jafl
    • io
    • Download
    • Docs
    • Homepage
    • Bugs
    • Source
    • Example
    • Forum
    • History

    Simple example of making a multiresponse call to the server. You can also specify data and/or a form (possibly with upload:true), just like with any other call to Y.io().

    Code Sample

    <script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script>
    YUI({
        //Last Gallery Build of this module
        gallery: 'gallery-2012.06.27-20-10'
    }).use('gallery-io-multiresponse', function(Y)
    {
    	Y.io('my-multi-response-uri',
    	{
    		multiresponse: true,
    		json: { b:2, y:'z' }, // will be serialized and sent as the json parameter
    		on:
    		{
    			response: function(id, data)
    			{
    				// data contains the object returned by the server
    				// This function is invoked for every response.
    			}
    		}
    	});
     
    });

    Forum Posts

    Subject Author Date
    Why Multi-response not return request object? Mayank Gupta 06/17/12
    Re: Why Multi-response not return request object? John Lindal 06/22/12
    Re: Why Multi-response not return request object? Mayank Gupta 06/29/12

    © 2006-2013 Yahoo! Inc. All rights reserved.
    All code on this site is licensed under the BSD License unless stated otherwise.
    About This Site · Security Contact Info