-- Marc Grue <[EMAIL PROTECTED]> wrote
(on Sunday, 30 November 2008, 05:45 AM -0800):
> I have earlier used the Prototype library to pull asynchronous data from a
> standalone script file 'ajax_srcipt', more or less like this: 
> 
> .. load prototype libraries
> onclick="Javascrip:do_something_with(
> new Ajax.Updater({success: 'ajax_script'}, 'ajax_script_path_with_vars',
> {evalScripts: true});
> )"
> 
> Is there a "Dojo"-way to do this?
> 
> Should I call an ajax-action in a controller that would then return the
> calculated data? (I miss controller examples in the manual)

Look into dojo.xhr:
    
    
http://dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-and-dojo/ajax-transports

There's not a direct equivalent to Ajax.Updater, but it's trivial to use
dojo.place to inject the content into your DOM via a load callback.

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to