I just got a working example of Ajax (XMLHTTP request) working on my
farcry site.

For those of you who don't know what Ajax or XMLHTTP request is, it is
a method for using javascript to retrieive information from the server
without a page refresh.  It's very cool and what makes gmail, google
maps and google suggest so cool.  Read more about it here.

http://www.adaptivepath.com/publications/essays/archives/000385.php

So, I just got this working but its not very integrated with farcry
and I wanted to get some feedback on a better way to work with farcry
on this.

Here is the demo...
http://www.numinalabs.com/farcry/rpg/www/index.cfm?objectid=B1BA5E49-09A7-4031-DDF2B00322F4FBD0

Click on the link for Tellurians and a matching dmFact is searched for
and displayed in the side nav.

The data is retrived via a cfm file that looks like this...

<cfsetting enablecfoutputonly="true" showdebugoutput="false">
<cfparam name="url.def" default="" />
<cfquery name="qFact" datasource="numina">
        SELECT * FROM dmFacts WHERE title LIKE '#url.def#'
</cfquery>
<cfcontent type="text/xml" reset="true" />
<!--- <defTitle>#qFact.title#</defTitle><defBody>#qFact.body#</defBody> --->
<cfoutput><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
        <method>getFact</method>
        
<result><definition><defTitle>#qFact.title#</defTitle><defBody>#qFact.body#</defBody></definition></result>
</response></cfoutput>

It works great, but I feel like I shouldn't be querying the datasource
directly here.  Any other ideas?

Thanks,
Ryan Miller



-- 
Ryan P. Miller
[EMAIL PROTECTED]

---
You are currently subscribed to farcry-dev as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to