|
Recent
Articles |
Cf.Objective() - Recap Of Day One Keynote - Jason - History of CF, themes for Scorpio, a little bit of each theme. New disclosures: RSS support (), . More to come in sessions over the weekend. Skipped the next session - spent time with Mark Drew going...
AJAX And Server Side Search I've blogged before (or at least think I have) about how to do client side filtering/searching of data with Spry. An example of this is the search at RIAForge. The...
Why Is XQuery Important? The advent of wireless internet access has made web design a very complicated matter. Previously, all web browsers were created equal. HTML was the only...
Using AJAX & Server Side Search This morning I posted a quick example of using AJAX with a server side search. I mentioned that one of the reasons to do so would be to employ more powerful searching technologies, like Verity. So I've put...
Generating XML From A CFC? Watch For Whitespace A friend sent in a question this weekend that confounded him to no end. He was generating some XML but kept getting an error in the browser because of extra...
|
|
|
05.25.07
Spry, Apollo, & Remote XML Sources
by
Raymond Camden
So this is probably a 'Duh' type post, but I was curious how Apollo and it's "open" web browser would handle remote AJAX requests.
As you know (or hopefully know), when doing AJAX requests your browser can only request AJAX data from the same server. So consider a typical Spry dataset:
Because of this, you can't use AJAX to request XML from other servers.
So if you wanted to do a RSS feed, you need to point to a ColdFusion file that does the remote hit for you.
This is what I do on the ColdFusion Portal.
One thing I've been curious about is how Apollo changes this.
I know the embedded web browser isn't locked down like a normal browser, but could it be as simple as providing a full URL to Spry?
Yes. This is all I needed to do:
Just so it is clear - I only used 2 lines since the URL I'm testing with is so long.
So I copied a bit of code from the Portal, used the command line tools I blogged about before, and was able to quickly build the demo.
If you want to see it (and it isn't really worth the time probably), you can download both the AIR and my original source files below.
Comments
About the Author:
Raymond Camden, ray@camdenfamily.com
http://ray.camdenfamily.com
Raymond Camden is Vice President of Technology for roundpeg, Inc. A long
time ColdFusion user, Raymond has worked on numerous ColdFusion books
and is the creator of many of the most popular ColdFusion community web
sites. He is an Adobe Community Expert, user group manager, and the
proud father of three little bundles of joy.
|