first off -- what is it that you want to do with wddx?  the <!DOCTYPE... 
header seems to be out of place here.  typically, if you're serving up a 
page as wddx content, you don't want anything but the packet itself (makes 
it easier on the application making request).

wddx is NOT a replacement for HTML code.  it is a way to format your data 
in a standard way so that it can be exchanged between different 
applications and environments.  i can't think of any situation where you'd 
want to output a wddx directly to the end-user.

could you be more explicit with what your goal is?  or are you just 
experimenting with wddx to see what it is?  the simple answer to the last 
question is that the wddx engine eliminates the tedious task of writing 
parser code for situations where you want/need to transfer data, usually in 
the case of serving data to another machine (like another webserver).  say 
that webserver uses <CFHTTP> to request some data from another webserver 
which responds with a wddx packet so that the calling webserver only has to 
use the built-in CF wddx parser to get the data it needs.

that's what i use it for anyways.  an example of a system i built that uses 
wddx is:
http://myneighborhoodbb.com21.com

every form submission on that site actually parses the form data then sends 
form data to another server (that in turn communicates with about 8+ cable 
internet service providers via form posts and wddx) which in turn responds 
to the webserver with a wddx packet which is parsed and then the end-user 
response page is built from the parsed data.

the site would have been hellah tedious without wddx.  (actually it still 
was, but it coulda been worse...)

:)

--brendan avery / [EMAIL PROTECTED]

At 06:40 AM 1/12/2001 -0600, you wrote:
>ok I'm trying to have peace talks with wddx.
>Here is the code the wddx packet and the way the page looks. So now what? 
>Is there something majic to creating a usable webpage from here OR does it 
>become an exercize in string manipulation?? OR should I go CFML2js and 
>deal with javascript?? Any advise would be appreciated.
>
>CODE:
><cfquery name="qryTest2" datasource="northwind">
>  select top 1 CustomerID, ContactTitle, ContactName
>  from customers
></cfquery>
><cfwddx action="CFML2WDDX" input="#qrytest2#" output="qoutput">
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>#qoutput#
>WDDX PACKET
>
><wddxPacket version='0.9'><header></header><data><recordset rowCount='1' 
>fieldNames='CUSTOMERID,CONTACTTITLE,CONTACTNAME'><field 
>name='CUSTOMERID'><string>ALFKI</string></field><field 
>name='CONTACTTITLE'><string>Sales Representative</string></field><field 
>name='CONTACTNAME'><string>Maria 
>Something</string></field></recordset></data></wddxPacket>
>
>PAGE:
>ALFKISales RepresentativeMaria Something
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to