Skip to Main Content
MooTools 1.3 Cookbook
book

MooTools 1.3 Cookbook

by Jay L Johnston
July 2011
Intermediate to advanced content levelIntermediate to advanced
276 pages
5h 11m
English
Packt Publishing
Content preview from MooTools 1.3 Cookbook

Displaying cross domain remote data via Ajax within a DIV

Ajax, inherently, cannot make a call to another domain. When we need to grab remote data from another domain, we have to turn to some kind of helper to get the data.

Getting ready

This example requires either PHP or ColdFusion to be installed on our development machine. The example shows a call to 05_remote_data.php. If we are using ColdFusion, please use the included snippet named 05_remote_data.cfm instead.

The recipe is a continuation of what we are working on in the previous, local data request recipe. When we are familiar with those concepts, adding the remote call will be an easy stepping stone.

How to do it...

Interestingly, the client-side portion of this only changes in the URL variable. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Jump Start Web Performance

Jump Start Web Performance

Craig Buckler

Publisher Resources

ISBN: 9781849515689Other