Re: WDDX v.s. CF 7 XML functionality

2007-04-02 Thread Tom Chiverton
On Friday 30 Mar 2007, Rick Root wrote:
> I'm currently working on a flex application where the user can set a
> variety of preferences.  For example, a list of items to be automatically
> selected in a certain list control.

OOI, why not use SharedObject() ?

-- 
Tom Chiverton
Helping to enormously industrialize cross-platform relationships
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274293
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: WDDX v.s. CF 7 XML functionality

2007-03-30 Thread Rick Root
I still use WDDX in old and new applications.  Not often, but I find it
valuable for storing data in the database that I don't need to be
searchable.

I'm currently working on a flex application where the user can set a variety
of preferences.  For example, a list of items to be automatically selected
in a certain list control.

The flex app calls a getPrefs() method of a cfc, which retrieves the WDDX
packet from the database for the specific user, converts it to a struct (one
line of code), then returns it to Flex, which handles it quite nicely as an
object.

Dealing with an XML object is considerably more complex, although that may
just be my inexperience with XML objects.

Rick


~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274218
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: WDDX v.s. CF 7 XML functionality

2007-03-30 Thread Dan O'Keefe
Thanks Jim, this is very helpful.

Dan

On 3/23/07, Jim Davis <[EMAIL PROTECTED]> wrote:
>
> > -Original Message-
> > From: Dan O'Keefe [mailto:[EMAIL PROTECTED]
> > Sent: Friday, March 23, 2007 7:54 AM
> > To: CF-Talk
> > Subject: WDDX v.s. CF 7 XML functionality
> >
> > While having a few legacy apps myself making use of WDDX, I was
> > wondering if
> > WDDX still has value that is not currently offered in the XML support
> > of CF
> > 7.02. Seems like opedwddx.org is pretty stale.
>
> It's just as valuable as it ever was.  OpenWDDX.org is definitely getting
> long in the tooth however.
>
> I've created an updated WDDX JS parser here:
>
>
> http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_W
> DDX/
>
> It's a more concise and "modern".  And (at least in my tests) quite a bit
> faster on most operations.
>
> Also, in case you're interested I've also designed my own data exchange
> layer that tries to improve on the basic ideas of WDDX (passing structured
> data) here:
>
> http://www.depressedpress.com/Content/Development/YODEL/Index.cfm
>
> I'm using it very successfully on several projects.
>
> It works very similar to WDDX but (unlike WDDX) can be validated using XML
> Schema, supports methods for shrinking file size and some other (I think)
> neat stuff.
>
> Jim Davis
>
>
> 

~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274192
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: WDDX v.s. CF 7 XML functionality

2007-03-23 Thread Jim Davis
> -Original Message-
> From: Dan O'Keefe [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 23, 2007 7:54 AM
> To: CF-Talk
> Subject: WDDX v.s. CF 7 XML functionality
> 
> While having a few legacy apps myself making use of WDDX, I was
> wondering if
> WDDX still has value that is not currently offered in the XML support
> of CF
> 7.02. Seems like opedwddx.org is pretty stale.

It's just as valuable as it ever was.  OpenWDDX.org is definitely getting
long in the tooth however.

I've created an updated WDDX JS parser here:

http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_W
DDX/

It's a more concise and "modern".  And (at least in my tests) quite a bit
faster on most operations.

Also, in case you're interested I've also designed my own data exchange
layer that tries to improve on the basic ideas of WDDX (passing structured
data) here:

http://www.depressedpress.com/Content/Development/YODEL/Index.cfm

I'm using it very successfully on several projects.

It works very similar to WDDX but (unlike WDDX) can be validated using XML
Schema, supports methods for shrinking file size and some other (I think)
neat stuff.

Jim Davis


~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273578
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: WDDX v.s. CF 7 XML functionality

2007-03-23 Thread Tero Pikala
In my opinion value of WDDX today is ability to quickly convert complex data
types to predefined XML format.  There are times when you just need query as
XML without paying too much attention how it's actually structured. 


Tero

-Original Message-
From: Dan O'Keefe [mailto:[EMAIL PROTECTED] 
Sent: 23 March 2007 11:54
To: CF-Talk
Subject: WDDX v.s. CF 7 XML functionality

While having a few legacy apps myself making use of WDDX, I was wondering if
WDDX still has value that is not currently offered in the XML support of CF
7.02. Seems like opedwddx.org is pretty stale.

Any thoughts?

Thanks,

Dan
--
Dan O'Keefe




~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273524
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: WDDX wddx2cfml error with CF5 to CF7

2007-01-26 Thread Dave Watts
> Good Morning All! Having issues parsing a WDDX recordset 
> pulled from an Oracle database.  The recordset was created 
> within JavaScript using the WDDX.js, and then passed to a CF 
> page that inserts it into an Oracle Database.  We ran into a 
> size issue inserting the record, even though it appears there 
> should have been no problem with the string length, and 
> needed to insert the record with  VALUE="#requestData#" CFSQLType="cf_sql_longvarchar">.  We 
> had tried CLOB in the CFSQLTYPE but that didn't work.  The 
> issue being, we are in the process of migrating from CF5 to 
> 7.  When pulling the recordset back in 5, there is no 
> problems.  When trying to pull back the recordset created in 
> 5 to 7, there is an error that occurs when the  wddx2cfml  is called saying it is an invalid WDDX packet.  
> Outputting the datafield and viewing the source with 
> Notepad++, I see that there is a "Null" in a black circle 
> right after the closing wddxpacket.  
> 
> When I run the test on the CF7 server, creating the recordset 
> with the same code, it appears to works both on the cf7 and 5 
> servers.  Any thoughts on how to have the recordsets in 5 
> work after migration?

I suspect it's an encoding issue. CF 7 uses UTF-8 by default, CF 5 doesn't
(and I don't know any easy way to make it do so). Presumably, if you're
using CF 5 to create the data, you would need to retrieve the data using the
same encoding used by CF 5, which presumably would be ISO-8859-1.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267735
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-22 Thread Jim Davis
> -Original Message-
> From: Roger B. [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 22, 2005 10:50 AM
> To: CF-Talk
> Subject: Re: WDDX Replacement Attempt (was RE: Ajax and CFCs)
> 
> > I'm making the assumption (probably a good one) that the problem
> > is on my end...
> 
> Jim: It's not a problem... just confusion brought on by a lack of
> explanation. That outer array is the array of s... you can
> safely ignore it.
> 
> To make things clearer, I added a second CFDUMP that displays the
> deserialized package by itself.

Cool... I like problems that end up not being problems.  ;^)

I need a lot more testing but so far, so good.

Jim Davis





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215917
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-22 Thread Roger B.
> I'm making the assumption (probably a good one) that the problem
> is on my end... 

Jim: It's not a problem... just confusion brought on by a lack of
explanation. That outer array is the array of s... you can
safely ignore it.

To make things clearer, I added a second CFDUMP that displays the
deserialized package by itself.

--
Roger Benningfield

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215895
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-21 Thread Jim Davis
> -Original Message-
> From: Roger B. [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 22, 2005 12:56 AM
> To: CF-Talk
> Subject: Re: WDDX Replacement Attempt (was RE: Ajax and CFCs)
> > If you have some time I'd much appreciate you going over my XMLRPC
> > implementation to see if it measures up.
> 
> I went ahead and set up a little debugger for you. Just go here:
> 
> http://agincourtmedia.com/xmlrpc/testxmlrpc.cfm

Here's an odd one.  This packet:

prop1
val1prop2val2<
/string>1

Through your parser produces two arrays (an outer one with one element and
an inner one with the two specified elements).

That don't seem right...

I'm making the assumption (probably a good one) that the problem is on my
end... but I'm stumped as to what it is.

Any ideas?  What'd I do wrong?

Thanks,

Jim Davis






~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215882
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-21 Thread Jim Davis
> -Original Message-
> From: Roger B. [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 22, 2005 12:56 AM
> To: CF-Talk
> Subject: Re: WDDX Replacement Attempt (was RE: Ajax and CFCs)
> 
> > But
> > although the system does seem to be well supported it also seems to be
> > poorly documented.  ;^)
> 
> Jim: That's a matter of perspective. Some people love Dave Winer's
> approach to spec-writing, and some people absolutely *loathe* it. I'm
> gonna guess you're in the latter group. :D

I don't feel that strongly about it either way.  ;^)

It just seems like some pretty big things are missing from the documentation
which could easily result in incompatible parsers...

> I went ahead and set up a little debugger for you. Just go here:
> 
> http://agincourtmedia.com/xmlrpc/testxmlrpc.cfm
> 
> and enter any of your serialized chunks into the form. It will wrap
> whatever you input in a method/param, deserialize it, and CFDUMP the
> results.
>
> I don't claim that my (de)serializer is any kind of benchmark, but
> it'll at least let you know if you're heading down the right path.

Very Cool - thanks!

With some quick passes the serializer seems to work with it.

I've just finished the JS deserializer (well - at least the first draft -
it's not tested yet).  Feel like throwing me some test packets?  ;^)

It's not fully tested but I've now got a single JavaScript object that will
serialize and deserialize from JSON, WDDX, XMLRPC (data only) and my own
YODEL format.

I'm sure it's buggy as hell... but everything works with simple stuff so
far.

I'm too beat right now but I'll post it for download tomorrow.

Jim Davis




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215881
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-21 Thread Roger B.
> But
> although the system does seem to be well supported it also seems to be
> poorly documented.  ;^)

Jim: That's a matter of perspective. Some people love Dave Winer's
approach to spec-writing, and some people absolutely *loathe* it. I'm
gonna guess you're in the latter group. :D

> - Convert a null into an empty value: .
> - Convert a null into an empty string: .
> - Throw an error.

I can't say conclusively, but I would opt for the first or third choice. 

If you can afford the ambiguity, the first is the best... most
implementations (including mine) will interpret an empty  as
a zero-length string, but at least it leaves open the possibility for
other implementations.

> Any idea about what's "right"?

Technically, XML-RPC dates have no timezone. Apps are expected to set
timezones in another method, or within another param in the current
method.

In practice, my (de)serializer respects the above... but the instant
it returns the value to my main code, I promptly assume that it is UTC
and go from there. :-)

> +) String formatting seems... odd.  The spec claims that only ampersands and
> less-than signs should be escaped - is this right?  Not even greater-than
> signs?  Nothing for control characters?

Basically, it's saying "do what you would normally do to escape any
off-limits XML characters". Technically, greater-than signs don't need
to be escaped as long as you escape any less-thans, but most of us do
it anyway, just to be safe.

Probably the easiest thing to do is just wrap strings in ,
although there may be an oddball deserializer out there that will
barf.

> If you have some time I'd much appreciate you going over my XMLRPC
> implementation to see if it measures up.

I went ahead and set up a little debugger for you. Just go here:

http://agincourtmedia.com/xmlrpc/testxmlrpc.cfm

and enter any of your serialized chunks into the form. It will wrap
whatever you input in a method/param, deserialize it, and CFDUMP the
results.

I don't claim that my (de)serializer is any kind of benchmark, but
it'll at least let you know if you're heading down the right path.

--
Roger Benningfield
JournURL
http://admin.support.journurl.com/
http://admin.mxblogspace.journurl.com/

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215879
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-21 Thread Roger B.
> Mostly because I'd never heard of it until you mentioned it.  Where have you
> been for the past two weeks while I've been ranting about not having
> something like this.  ;^)

Jim: I only skim the list, in general. I'm surprised I didn't notice
the conversation, though... I have watchlists set up for "XML" and
"RSS" for CFTalk, since those are the two areas where I'm best
positioned to be helpful. I have no idea why they failed in this
instance.

> It does look good - it's just odd that in my posting/searching I never came
> across it.

You were probably one search term away... that's how it always works
out for me. Although if it helps, I had an article/CFC published in
DRK4 that addresses XML-RPC in CF.

--
Roger Benningfield
JournURL
http://admin.support.journurl.com/
http://admin.mxblogspace.journurl.com/

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215877
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt - Take a Look!

2005-08-19 Thread Andrew Grosset
"ditto" and very original.

>>I think I've hit upon an appropriate name... get ready... here 
>
>Jim, that's a *brilliant* name for such a technology. Seriously.
>
>/t

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215852
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt - Take a Look!

2005-08-19 Thread Jim Davis
A slightly new version:

http://www.depressedpress.com/DepressedPress/Test/

This one fixed several string parsing errors - one of which I feel is
interesting enough to talk about:

Apparently IE 6 has a problem with "\v" (the escape character for "Vertical
Tab".

I'm creating a hash table of characters for each encoding scheme.  This hash
table is looped through and all characters are replaced with their encoded
versions.  However "\v" was causing trouble.  Try this code in IE 6 and
FireFox:

// Set a string
CurString = "The quick brown fox jumped over the lazy dog.";
// Set a hash table of chars to be encoded and their encoded
versions
Chars = new Array();
Chars["\v"] = "\\v";

for ( var CurChar in Chars ) {
if (typeof Chars[CurChar] != "function") {;
CurRegEx = new RegExp(CurChar, "g");
CurString = CurString.replace(CurRegEx, Chars[CurChar]);
};
};

alert(CurString);

In (at least in my version of) IE 6 the code replaces the "v" in "over" with
"\v".  It ignores the escaped character completely.  FireFox (the little
brown-noser) does the right thing.

To fix it I forced the character by using it's ASCII/UNICODE value like so:

Chars[String.fromCharCode(11)] = "\\v";

This was an easy fix, but it's still - that seems like a pretty big, pretty
foundational bug to me.  ;^)

Jim Davis




~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215844
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-19 Thread Jim Davis
> -Original Message-
> From: Roger B. [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 19, 2005 10:04 AM
> To: CF-Talk
> Subject: Re: WDDX Replacement Attempt (was RE: Ajax and CFCs)
> 
> Jim: Any reason not to go with the prior art and just use (or extend,
> if necessary) XML-RPC?
> 
> XML-RPC parsers are everywhere, so it's pretty much the no-brainer
> default option for passing around programmatic data. In fact, that was
> one of the big points made when Jeremy Allaire and I were discussing
> his idea of embedding raw data in RSS feeds a couple years ago... not
> only is it more lightweight than WDDX or SOAP, there's virtually no
> language or environment that doesn't already support it. That kind of
> ubiquity is hard to ignore.

Okay - I've added XML-RPC data support to my JS serializer extensions.  But
although the system does seem to be well supported it also seems to be
poorly documented.  ;^)

Right now I'm only creating object-to-string serializers so my solution
doesn't actually implement the full method call - it just creates a single
the "" tag from any JS object.

Some questions, if you have the time:

+) The system doesn't support explicit nulls (which is fine) but how should
a serializer react to them?  I can see at least a few ways for handing this:

- Convert a null into an empty value: .
- Convert a null into an empty string: .
- Throw an error.

I've assumed the first solution (which I think should work across
implementations) but it seems odd that this is left the impelementation.

+) The date format for an implementation is sketchy.  I've made the
assumption that dates will be serialized into UTC dates (with the specified
trailing "Z") but I see than other implementations either use local time or
don't use the trailing Z to indicate UTC.

Any idea about what's "right"?

+) String formatting seems... odd.  The spec claims that only ampersands and
less-than signs should be escaped - is this right?  Not even greater-than
signs?  Nothing for control characters?


That's about it...

Anyway I've added the serializer to the JS stuff I've been doing and
provided examples and source code here:

http://www.depressedpress.com/DepressedPress/Test/

If you have some time I'd much appreciate you going over my XMLRPC
implementation to see if it measures up.

Jim Davis





~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215843
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-19 Thread Jim Davis
> -Original Message-
> From: Roger B. [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 19, 2005 10:04 AM
> To: CF-Talk
> Subject: Re: WDDX Replacement Attempt (was RE: Ajax and CFCs)
> 
> Jim: Any reason not to go with the prior art and just use (or extend,
> if necessary) XML-RPC?

Mostly because I'd never heard of it until you mentioned it.  Where have you
been for the past two weeks while I've been ranting about not having
something like this.  ;^)

> XML-RPC parsers are everywhere, so it's pretty much the no-brainer
> default option for passing around programmatic data. In fact, that was

It does look good - it's just odd that in my posting/searching I never came
across it.

While I've a bit too much invested in YODEL right now to stop I think I'll
still add XML-RPC support (at least for the data format if not for the
method calls) to my serialization libraries.

Thanks!

(Although I still wish you had spoken up two weeks ago.  ;^)  )

Jim Davis







~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215798
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-19 Thread Roger B.
Jim: Any reason not to go with the prior art and just use (or extend,
if necessary) XML-RPC?

XML-RPC parsers are everywhere, so it's pretty much the no-brainer
default option for passing around programmatic data. In fact, that was
one of the big points made when Jeremy Allaire and I were discussing
his idea of embedding raw data in RSS feeds a couple years ago... not
only is it more lightweight than WDDX or SOAP, there's virtually no
language or environment that doesn't already support it. That kind of
ubiquity is hard to ignore.

--
Roger Benningfield
JournURL
http://admin.support.journurl.com/
http://admin.mxblogspace.journurl.com/

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215757
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt - Take a Look!

2005-08-19 Thread RADEMAKERS Tanguy
>I think I've hit upon an appropriate name... get ready... here 
>it comes...
>
>YODEL
>
>It stand for "Yet another Open Data Exchange Language".  Also 
>Yodeling began
>as a method for passing messaged from mountain peak to 
>mountain peak using
>only simple modulations of voice... all told it seems appropriate.
>
>What do you guys think?

Jim, that's a *brilliant* name for such a technology. Seriously.

/t

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215743
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt - Name?

2005-08-18 Thread S . Isaac Dealey
>> -Original Message-
>> From: Paul Hastings [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, August 18, 2005 5:20 PM
>> To: CF-Talk
>> Subject: Re: WDDX Replacement Attempt - Name?
>>
>> S. Isaac Dealey wrote:
>> >>>My personal favorite...
>> >>>XXL - XML Xchange Language
>>
>> why not just "fred" or "barney"?

> Actually - how about "Dagwood"?  After those big
> sandwiches that take a
> little bit of everything under the sun and make them, all
> together, a
> sandwich?

> I kinda like that...

Hobo Stew :)

Though I thought those sandwiches were called Hoagies.


s. isaac dealey 954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215720
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt - Name?

2005-08-18 Thread S . Isaac Dealey
> General Open Architecture Transport Specific Engine

Yeah, I don't think Jim's really going for the "lose your lunch"
effect. :)


s. isaac dealey 954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215719
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt - Name?

2005-08-18 Thread Jim Davis
> -Original Message-
> From: Paul Hastings [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 18, 2005 5:20 PM
> To: CF-Talk
> Subject: Re: WDDX Replacement Attempt - Name?
> 
> S. Isaac Dealey wrote:
> >>>My personal favorite...
> >>>XXL - XML Xchange Language
> 
> why not just "fred" or "barney"?

Actually - how about "Dagwood"?  After those big sandwiches that take a
little bit of everything under the sun and make them, all together, a
sandwich?

I kinda like that...

Jim Davis





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215717
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt - Name?

2005-08-18 Thread Jim Davis
> -Original Message-
> From: Kevin Aebig [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 18, 2005 4:22 PM
> To: CF-Talk
> Subject: RE: WDDX Replacement Attempt - Name?
> 
> If you want to be really cool:
> XDX - XML Data X-change or for the English majors, XDE - XML Data Exchange
> XTL - XML Transfer Language
> 
> My personal favorite...
> XXL - XML Xchange Language

Or maybe "XXS" (pronounced, of course, "Excess") for "XML eXchange
Specification".

Or - hell - "INXS": "Independent Network eXchange Specification".

Jim Davis





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215716
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt - Name?

2005-08-18 Thread Jim Davis
> -Original Message-
> From: Adrocknaphobia [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 18, 2005 4:27 PM
> To: CF-Talk
> Subject: Re: WDDX Replacement Attempt - Name?
> 
> I like Adamic... but not because it invloves my name.
> 
> http://en.wikipedia.org/wiki/Adamic_language
> 
> Although, I'm not crazy about the religous background.

Ohhh - I really like this one.

But it is a bit touchy on the God side of things.  ;^)

Jim Davis





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215714
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt - Name?

2005-08-18 Thread Rey Bango
Ruthless. You sir have hit a new low. LOL.

Rey...

Charlie Griefer wrote:
> General Open Architecture Transport Specific Engine
> 
> 
> On 8/18/05, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
> 
>>>S. Isaac Dealey wrote:
>>>
>>My personal favorite...
>>XXL - XML Xchange Language
>>
>>>why not just "fred" or "barney"?
>>
>>I like "Bob" for anything that can't be named... or possibly Edgar.
>>
>>
>>
>>s. isaac dealey   954.522.6080
>>new epoch : isn't it time for a change?
>>
>>add features without fixtures with
>>the onTap open source framework
>>
>>http://www.fusiontap.com
>>http://coldfusion.sys-con.com/author/4806Dealey.htm
>>
>>
>>
>>
>>
> 
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215713
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt - Name?

2005-08-18 Thread Russ Michaels
Wot about

SHOVEIT
STUFFIT
PIGLET
Fat-Packet
Data-WAD
JAFA (Just Another Frickin Acronym)
LOTD (Lots Of Transmogrified Data)


Or something more serious
XDE  (XML Data Exchange)


-Original Message-
From: Keith Gaughan [mailto:[EMAIL PROTECTED] 
Sent: 18 August 2005 21:49
To: CF-Talk
Subject: Re: WDDX Replacement Attempt - Name?

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jim Davis wrote:

> DPXL: ("Depressed Press Transfer Language") - the professional side of 
> me is leaning here.  It puts my company right in the name!  But how 
> smart is it to put a trademark in the name of something you're
open-sourcing?

Well, seeing as I came up with it first, how about OXL or ODXL? They don't
seem to be taken.

OXL  = Open Transfer Language.
ODXL = Open Data Transfer/Exchange Language.

Both suitably corporate and FOSS friendly.

> I'm really leaning towards a non-abbreviated word... something that 
> means "move" or "transfer" but maybe even with a sense of irony or humor.
> "Wormhole" perhaps?"DataSphincter"? 
> 
> Or perhaps a fun abbreviation? "STAPOD" (Specification That Allows 
> Passing Of Data)?  "MOPD" (Method of Passing Data)? "NARDS" (No 
> Assembly Required Data Specification)?  (This has the benefit that, if 
> it takes off, I may someday hear somebody say "Were you able to parse 
> my NARDS?")

How about ZAPHOD: Data Transfer Language With No Real Acronym?

K.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDBPQ1mSWF0pzlQ04RAnVAAJ4gsru3iCEI6dxuYvzH3peQrhPyHACgwrJz
QsAbaVYJfAnqw0FvdZnCFFw=
=cd5q
-END PGP SIGNATURE-



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215711
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt - Name?

2005-08-18 Thread Paul Hastings
Calvin Ward wrote:
> Then I vote for 
> 
> PDXF (Purple Dinosaur eXchange Format)... 

i was actually thinking about the flintstones.

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215710
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt - Name?

2005-08-18 Thread Calvin Ward
Then I vote for 

PDXF (Purple Dinosaur eXchange Format)... 

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 18, 2005 5:27 PM
To: CF-Talk
Subject: Re: WDDX Replacement Attempt - Name?

Because "barney" is already taken.  ;)

On 8/18/05, Paul Hastings <[EMAIL PROTECTED]> wrote:
> S. Isaac Dealey wrote:
> >>>My personal favorite...
> >>>XXL - XML Xchange Language
> 
> why not just "fred" or "barney"?
> 

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215706
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt - Name?

2005-08-18 Thread Barney Boisvert
Because "barney" is already taken.  ;)

On 8/18/05, Paul Hastings <[EMAIL PROTECTED]> wrote:
> S. Isaac Dealey wrote:
> >>>My personal favorite...
> >>>XXL - XML Xchange Language
> 
> why not just "fred" or "barney"?
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215705
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt - Name?

2005-08-18 Thread Charlie Griefer
General Open Architecture Transport Specific Engine


On 8/18/05, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
> > S. Isaac Dealey wrote:
> My personal favorite...
> XXL - XML Xchange Language
> 
> > why not just "fred" or "barney"?
> 
> I like "Bob" for anything that can't be named... or possibly Edgar.
> 
> 
> 
> s. isaac dealey   954.522.6080
> new epoch : isn't it time for a change?
> 
> add features without fixtures with
> the onTap open source framework
> 
> http://www.fusiontap.com
> http://coldfusion.sys-con.com/author/4806Dealey.htm
> 
> 
> 
> 
> 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215703
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt - Name?

2005-08-18 Thread S . Isaac Dealey
> S. Isaac Dealey wrote:
My personal favorite...
XXL - XML Xchange Language

> why not just "fred" or "barney"?

I like "Bob" for anything that can't be named... or possibly Edgar.



s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215700
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt - Name?

2005-08-18 Thread Phillip Beazley
At 05:00 PM 8/18/2005, you wrote:

>Courier ... or possibly X-Courier...
>
>DataWinch
>
>DataSieve
>
>Windlass
>
>Puny X-Press
>
>PieHole :)

LOL!

DataBitch

PacketWagon

XMule

XHNA (XHNA Has No Acronym)


-- 
Phillip Beazley
Onvix -- Website Hosting, Development & E-commerce
Visit http://www.onvix.com/ or call 727-578-9600.


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215699
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt - Name?

2005-08-18 Thread Paul Hastings
S. Isaac Dealey wrote:
>>>My personal favorite...
>>>XXL - XML Xchange Language

why not just "fred" or "barney"?

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215696
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt - Name?

2005-08-18 Thread S . Isaac Dealey
> I'm really leaning towards a non-abbreviated word...
> something that means
> "move" or "transfer" but maybe even with a sense of irony
> or humor.
> "Wormhole" perhaps?"DataSphincter"?

Courier ... or possibly X-Courier...

DataWinch

DataSieve

Windlass

Puny X-Press

PieHole :)




s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215693
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt - Name?

2005-08-18 Thread S . Isaac Dealey
> At 04:21 PM 8/18/2005, you wrote:

>>My personal favorite...
>>XXL - XML Xchange Language

> Or for really big packets, XXXL - XML Xfer and Xchange
> Language.

And pohibited in many states of course... :)

s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215692
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt - Name?

2005-08-18 Thread Keith Gaughan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jim Davis wrote:

> DPXL: ("Depressed Press Transfer Language") - the professional side of me is
> leaning here.  It puts my company right in the name!  But how smart is it to
> put a trademark in the name of something you're open-sourcing?

Well, seeing as I came up with it first, how about OXL or ODXL? They
don't seem to be taken.

OXL  = Open Transfer Language.
ODXL = Open Data Transfer/Exchange Language.

Both suitably corporate and FOSS friendly.

> I'm really leaning towards a non-abbreviated word... something that means
> "move" or "transfer" but maybe even with a sense of irony or humor.
> "Wormhole" perhaps?"DataSphincter"? 
> 
> Or perhaps a fun abbreviation? "STAPOD" (Specification That Allows Passing
> Of Data)?  "MOPD" (Method of Passing Data)? "NARDS" (No Assembly Required
> Data Specification)?  (This has the benefit that, if it takes off, I may
> someday hear somebody say "Were you able to parse my NARDS?")

How about ZAPHOD: Data Transfer Language With No Real Acronym?

K.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDBPQ1mSWF0pzlQ04RAnVAAJ4gsru3iCEI6dxuYvzH3peQrhPyHACgwrJz
QsAbaVYJfAnqw0FvdZnCFFw=
=cd5q
-END PGP SIGNATURE-

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215689
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt - Name?

2005-08-18 Thread Adrocknaphobia
I like Adamic... but not because it invloves my name.

http://en.wikipedia.org/wiki/Adamic_language

Although, I'm not crazy about the religous background.

-Adam

On 8/18/05, Jim Davis <[EMAIL PROTECTED]> wrote:
> Here are the names we've come up with so far (with my personal comments):
> 
> DPXL: ("Depressed Press Transfer Language") - the professional side of me is
> leaning here.  It puts my company right in the name!  But how smart is it to
> put a trademark in the name of something you're open-sourcing?
> 
> DEML: [dimmel] "Data Expression (or exchange) ML" - I like the fact that it
> can pronounced... for some reason I think that's important.
> 
> XDL: "XML Data Language" is taken.  "eXpression Definition Language"
> 
> XDF: "XML Data Format" is taken.  "eXtensible Data Format" which describes
> scientific data.
> 
> XIL: "XML Information Language" - Pronounceable - I like that!  But
> pronounced it's "zill" - that just sounds slurred.  It's also taken by the
> "XML Import Language" (which is kinda neat actually).
> 
> XIF: "XML Information Format" - Pronounceable as well - and it sounds better
> said that "zill".  Nice and peppy: "Ziff!"  Of course the main problem is
> that is ALSO taken!  "XML Interchange Format" (made by MS).
> 
> XIEF: "XML Information Exchange Format" - I like the sound ("Zife!")... but
> it's harder to say as letters ("ex eye ee eff").  Not a big deal but I'm
> picky.
> 
> Rosetta: Doesn't stand for nothing.  I still kinda like this.  Easy to
> remember, indicative and organic.  However not very original: they're
> probably 100 other things called "Rosetta".
> 
> I'm really leaning towards a non-abbreviated word... something that means
> "move" or "transfer" but maybe even with a sense of irony or humor.
> "Wormhole" perhaps?"DataSphincter"?
> 
> Or perhaps a fun abbreviation? "STAPOD" (Specification That Allows Passing
> Of Data)?  "MOPD" (Method of Passing Data)? "NARDS" (No Assembly Required
> Data Specification)?  (This has the benefit that, if it takes off, I may
> someday hear somebody say "Were you able to parse my NARDS?")
> 
> Damn... I should spend as much time code as I do on picking what to call
> things...
> 
> Jim Davis
> 
> 
> 
> 
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215684
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt - Name?

2005-08-18 Thread Phillip Beazley
At 04:21 PM 8/18/2005, you wrote:

>My personal favorite...
>XXL - XML Xchange Language

Or for really big packets, XXXL - XML Xfer and Xchange Language.


-- 
Phillip Beazley
Onvix -- Website Hosting, Development & E-commerce
Visit http://www.onvix.com/ or call 727-578-9600.


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215685
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt - Name?

2005-08-18 Thread Kevin Aebig
If you want to be really cool: 
XDX - XML Data X-change or for the English majors, XDE - XML Data Exchange 
XTL - XML Transfer Language

My personal favorite... 
XXL - XML Xchange Language

Cheers,

Kevin

-Original Message-
From: Jim Davis [mailto:[EMAIL PROTECTED] 
Sent: August 18, 2005 2:06 PM
To: CF-Talk
Subject: RE: WDDX Replacement Attempt - Name?

Here are the names we've come up with so far (with my personal comments):

DPXL: ("Depressed Press Transfer Language") - the professional side of me is
leaning here.  It puts my company right in the name!  But how smart is it to
put a trademark in the name of something you're open-sourcing?

DEML: [dimmel] "Data Expression (or exchange) ML" - I like the fact that it
can pronounced... for some reason I think that's important.

XDL: "XML Data Language" is taken.  "eXpression Definition Language"

XDF: "XML Data Format" is taken.  "eXtensible Data Format" which describes
scientific data.

XIL: "XML Information Language" - Pronounceable - I like that!  But
pronounced it's "zill" - that just sounds slurred.  It's also taken by the
"XML Import Language" (which is kinda neat actually).

XIF: "XML Information Format" - Pronounceable as well - and it sounds better
said that "zill".  Nice and peppy: "Ziff!"  Of course the main problem is
that is ALSO taken!  "XML Interchange Format" (made by MS).

XIEF: "XML Information Exchange Format" - I like the sound ("Zife!")... but
it's harder to say as letters ("ex eye ee eff").  Not a big deal but I'm
picky.

Rosetta: Doesn't stand for nothing.  I still kinda like this.  Easy to
remember, indicative and organic.  However not very original: they're
probably 100 other things called "Rosetta".

I'm really leaning towards a non-abbreviated word... something that means
"move" or "transfer" but maybe even with a sense of irony or humor.
"Wormhole" perhaps?"DataSphincter"? 

Or perhaps a fun abbreviation? "STAPOD" (Specification That Allows Passing
Of Data)?  "MOPD" (Method of Passing Data)? "NARDS" (No Assembly Required
Data Specification)?  (This has the benefit that, if it takes off, I may
someday hear somebody say "Were you able to parse my NARDS?")

Damn... I should spend as much time code as I do on picking what to call
things...

Jim Davis







~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215683
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt - Name?

2005-08-18 Thread Charlie Griefer
MILF

Multiple Information Language Format

yeah, means nothing and has little to nothing to do with your WDDX
replacement...but would get recognition because of the acronym, I
reckon :)

DataSphincter's gonna be hard to beat tho.

On 8/18/05, Jim Davis <[EMAIL PROTECTED]> wrote:
> Here are the names we've come up with so far (with my personal comments):
> 
> DPXL: ("Depressed Press Transfer Language") - the professional side of me is
> leaning here.  It puts my company right in the name!  But how smart is it to
> put a trademark in the name of something you're open-sourcing?
> 
> DEML: [dimmel] "Data Expression (or exchange) ML" - I like the fact that it
> can pronounced... for some reason I think that's important.
> 
> XDL: "XML Data Language" is taken.  "eXpression Definition Language"
> 
> XDF: "XML Data Format" is taken.  "eXtensible Data Format" which describes
> scientific data.
> 
> XIL: "XML Information Language" - Pronounceable - I like that!  But
> pronounced it's "zill" - that just sounds slurred.  It's also taken by the
> "XML Import Language" (which is kinda neat actually).
> 
> XIF: "XML Information Format" - Pronounceable as well - and it sounds better
> said that "zill".  Nice and peppy: "Ziff!"  Of course the main problem is
> that is ALSO taken!  "XML Interchange Format" (made by MS).
> 
> XIEF: "XML Information Exchange Format" - I like the sound ("Zife!")... but
> it's harder to say as letters ("ex eye ee eff").  Not a big deal but I'm
> picky.
> 
> Rosetta: Doesn't stand for nothing.  I still kinda like this.  Easy to
> remember, indicative and organic.  However not very original: they're
> probably 100 other things called "Rosetta".
> 
> I'm really leaning towards a non-abbreviated word... something that means
> "move" or "transfer" but maybe even with a sense of irony or humor.
> "Wormhole" perhaps?"DataSphincter"?
> 
> Or perhaps a fun abbreviation? "STAPOD" (Specification That Allows Passing
> Of Data)?  "MOPD" (Method of Passing Data)? "NARDS" (No Assembly Required
> Data Specification)?  (This has the benefit that, if it takes off, I may
> someday hear somebody say "Were you able to parse my NARDS?")
> 
> Damn... I should spend as much time code as I do on picking what to call
> things...
> 
> Jim Davis
> 
> 
> 
> 
> 
> 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215680
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt - Name?

2005-08-18 Thread Jim Davis
Here are the names we've come up with so far (with my personal comments):

DPXL: ("Depressed Press Transfer Language") - the professional side of me is
leaning here.  It puts my company right in the name!  But how smart is it to
put a trademark in the name of something you're open-sourcing?

DEML: [dimmel] "Data Expression (or exchange) ML" - I like the fact that it
can pronounced... for some reason I think that's important.

XDL: "XML Data Language" is taken.  "eXpression Definition Language"

XDF: "XML Data Format" is taken.  "eXtensible Data Format" which describes
scientific data.

XIL: "XML Information Language" - Pronounceable - I like that!  But
pronounced it's "zill" - that just sounds slurred.  It's also taken by the
"XML Import Language" (which is kinda neat actually).

XIF: "XML Information Format" - Pronounceable as well - and it sounds better
said that "zill".  Nice and peppy: "Ziff!"  Of course the main problem is
that is ALSO taken!  "XML Interchange Format" (made by MS).

XIEF: "XML Information Exchange Format" - I like the sound ("Zife!")... but
it's harder to say as letters ("ex eye ee eff").  Not a big deal but I'm
picky.

Rosetta: Doesn't stand for nothing.  I still kinda like this.  Easy to
remember, indicative and organic.  However not very original: they're
probably 100 other things called "Rosetta".

I'm really leaning towards a non-abbreviated word... something that means
"move" or "transfer" but maybe even with a sense of irony or humor.
"Wormhole" perhaps?"DataSphincter"? 

Or perhaps a fun abbreviation? "STAPOD" (Specification That Allows Passing
Of Data)?  "MOPD" (Method of Passing Data)? "NARDS" (No Assembly Required
Data Specification)?  (This has the benefit that, if it takes off, I may
someday hear somebody say "Were you able to parse my NARDS?")

Damn... I should spend as much time code as I do on picking what to call
things...

Jim Davis





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215679
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-18 Thread Jim Davis
> -Original Message-
> From: Keith Gaughan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 18, 2005 12:37 PM
> To: CF-Talk
> Subject: Re: WDDX Replacement Attempt (was RE: Ajax and CFCs)
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Jim Davis wrote:
> 
> >>-Original Message-
> >>From: Keith Gaughan [mailto:[EMAIL PROTECTED]
> >>
> >>Not quite true. The data typing in JSON is implicit. Of the types listed
> >>below it can unambiguously represent object, array, null, string,
> >>string, boolean, and number. It's all implicit in the syntax. Dynamic
> >
> > That's true I guess.  But there IS more: JSON also can't represent
> > non-numeric keyed arrays (something called "JavaScript Hashtables") for
> > example.
> 
> Ah, but isn't that what an object in JS(ON) essentially is?
> 
> {
> "I am": "a string-keyed",
> "array or": "a hashtable",
> "if":   "you will."
> }

Not really.  Sorta/kinda.

JavaScript IS WEIRD - just so we have that straight before we start.
There's definitely a method to its madness, but it IS weird.  ;^)

You can do this:

myOb = new Object();
myOb.myProp = "value";

AND 

myAr = new Array();
myAr[myProp] = "value";

However, as alike as they look, doing a "typeof" for both will still return
"object" and "array".

This is a subtlety to be sure - but one which JSON can't distinguish
between.  That last array can't really be done as an array in JSON (the
commonly available JSON parser actually just ignores the values completely).

This is strange, but understandable.  In the second case you're adding
properties to an (array) object - perfectly legal.  But it is strange (it's
also pretty common in use).

> > The main problem here is that it's impossible to describe such a
> language an
> > XSD (unless you allow "any tag" - which includes xHTML, made up tags,
> etc -
> > in any place).  XSD only allows a tag to contain ordered tags or any
> tags
> > (so the former would force us to say that  must appear before
> >  which must appear before  and so forth - which makes the
> > serialization an order of magnitude more complex).
> 
> Hmmm... I heard XSD was a bit odd, but I didn't think it was *that* bad.
> Holy crap! I think I'll stick with DTDs then.

Yeah... I probably should have.  For me I'm damned if I do, damned if I
don't with XD.

XSD also can't validate based on attribute values - which means it can't 
validate much of this at all.

But still... it does work.
 
> >>I'd like to point out that here the  tag is essentially defining a
> >>new type, so you could change this to:
> >
> > I could... but in keeping with the theme, if I did do it would probably
> be a
> > "" (data type) tag.  ;^)
> 
> Fairy nuff. :-)

I was thinking about this more...

The only real problem I see is that I would have to make the "type"
attribute accept any value (in the XSD at least) - there could be no
validation on type.

I'm not sure how I feel about that... I guess needing to make it optional to
support the  as it was is just as "bad", uh?

I'm (like in so many things) back and forth on it.

> > My thinking would be that the type would only apply as a "mask" to the
> > linked elements.  So, if a child tags type was defined it would apply
> it, if
> > not it wouldn't.  If it defined an "object" but no properties then that
> > object could have any properties.
> 
> You could do that alright. I was just thinking of a situation where you
> might have something like this:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Where the value might be an object or an array of objects.

I would think either we use just plain "" or put nothing at all.

The latter would indicate that although a value could be there - we've got
no attributes to apply to it.  User's choice.

A clearer example might do this:














In this case we really need a place holder of some kind to ensure that the
"string" type will be applied to correct field.

But I still thing an empty  is best here - since the underlying idea of
this is that attributes of the new type will replace the corresponding
attributes of the linked thing showing t

Re: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-18 Thread Keith Gaughan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jim Davis wrote:

>>-Original Message-
>>From: Keith Gaughan [mailto:[EMAIL PROTECTED]
>>
>>Not quite true. The data typing in JSON is implicit. Of the types listed
>>below it can unambiguously represent object, array, null, string,
>>string, boolean, and number. It's all implicit in the syntax. Dynamic
>
> That's true I guess.  But there IS more: JSON also can't represent
> non-numeric keyed arrays (something called "JavaScript Hashtables") for
> example.

Ah, but isn't that what an object in JS(ON) essentially is?

{
"I am": "a string-keyed",
"array or": "a hashtable",
"if":   "you will."
}

>> I'd include some kind of explicit recordset type too.
> 
> I consider that for a long... long time... but decided against it.  Any
> representation of a recordset I've ever seen is either column-based (which
> is an object whose properties are arrays) or record-based (which is an array
> of objects).
> 
> Both of these representations can be done using Arrays and Objects so why is
> it really needed?  Either we create a custom "RecordSet" object in JS or we
> convert it to the native data types... but since the latter is just as easy
> as the first for JS why bother?

True, but I was thinking that it might be nice to annote it as such.

> The main problem here is that it's impossible to describe such a language an
> XSD (unless you allow "any tag" - which includes xHTML, made up tags, etc -
> in any place).  XSD only allows a tag to contain ordered tags or any tags
> (so the former would force us to say that  must appear before
>  which must appear before  and so forth - which makes the
> serialization an order of magnitude more complex).

Hmmm... I heard XSD was a bit odd, but I didn't think it was *that* bad.
Holy crap! I think I'll stick with DTDs then.

>>I'd like to point out that here the  tag is essentially defining a
>>new type, so you could change this to:
> 
> I could... but in keeping with the theme, if I did do it would probably be a
> "" (data type) tag.  ;^)

Fairy nuff. :-)

>>>Should such a thing force all children of the array to be the same?
>>
>>Yes, unless you want to reserve the "undefined" type for use in  to
>>represent somewhere where the types are specified in the body.
> 
> I was thinking more "organically" on this one.
> 
> My thinking would be that the type would only apply as a "mask" to the
> linked elements.  So, if a child tags type was defined it would apply it, if
> not it wouldn't.  If it defined an "object" but no properties then that
> object could have any properties.

You could do that alright. I was just thinking of a situation where you
might have something like this:














Where the value might be an object or an array of objects.

> This is one reason that I'm NOT super comfortable with the "type" concept...
> it seems to imply a "full" definition when it could only part of one.

Nah, types can be just partial definitions of what's going on too.

K.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDBLk0mSWF0pzlQ04RArLqAKDAsLs7RDuzsykZFgVRVoQ+5rjzegCfTESs
dHAnWesEpA5/BmCam4IiXKI=
=rFSC
-END PGP SIGNATURE-

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215650
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-18 Thread Jim Davis
> -Original Message-
> From: Calvin Ward [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 18, 2005 7:32 AM
> To: CF-Talk
> Subject: RE: WDDX Replacement Attempt (was RE: Ajax and CFCs)
> 
> Interesting ideas and it seems like a good direction.
> 
> The use of the word object seems to trip me up (since I always think of
> objects as having both values ( properties ) and funcionality ( methods
> )...)

The basis for (almost all of this) is JavaSript - that's where "object"
comes from.

Although note that there is a "function" type - so, in theory, you can pass
objects (at least JavaScript objects) with methods and properties via the
dialect.

I say "in theory" because I've no idea about "in practice" this would work
however... ;^)

Jim Davis





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215647
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-18 Thread Jim Davis
> -Original Message-
> From: Keith Gaughan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 18, 2005 7:57 AM
> To: CF-Talk
> Subject: Re: WDDX Replacement Attempt (was RE: Ajax and CFCs)
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Why not dpxl, seeing as it's not a markup language so much as a data
> transfer language that happens to an XML application?

Perhaps... I do like to add "dp" to things.  ;^)

> Not quite true. The data typing in JSON is implicit. Of the types listed
> below it can unambiguously represent object, array, null, string,
> string, boolean, and number. It's all implicit in the syntax. Dynamic

That's true I guess.  But there IS more: JSON also can't represent
non-numeric keyed arrays (something called "JavaScript Hashtables") for
example.

I had considered extending the JSON syntax but decided against it on
principle: the beauty and simplicity of any JSON packet is that it IS
JavaScript code.  Any extensions would break that elegance... so I didn't
want to touch it.

(As an aside - I really like JSON a lot... the JS library I'm bulding for
this stuff will also do JSON... I actually envision an application that's
smart enough to know which transport mechanism is required based on the
complexity being transferred...)

> I'd include some kind of explicit recordset type too.

I consider that for a long... long time... but decided against it.  Any
representation of a recordset I've ever seen is either column-based (which
is an object whose properties are arrays) or record-based (which is an array
of objects).

Both of these representations can be done using Arrays and Objects so why is
it really needed?  Either we create a custom "RecordSet" object in JS or we
convert it to the native data types... but since the latter is just as easy
as the first for JS why bother?

> I'd say it would actually be less bulky if you changed the names of the
> types into tags.
> 
> 
> 
> 
> true
> true

The main problem here is that it's impossible to describe such a language an
XSD (unless you allow "any tag" - which includes xHTML, made up tags, etc -
in any place).  XSD only allows a tag to contain ordered tags or any tags
(so the former would force us to say that  must appear before
 which must appear before  and so forth - which makes the
serialization an order of magnitude more complex).

> > This shrinks the serialized version of the data tremendously when you
> want
> > to return large numbers of similar objects (as with a record set).
> 
> I'd like to point out that here the  tag is essentially defining a
> new type, so you could change this to:

I could... but in keeping with the theme, if I did do it would probably be a
"" (data type) tag.  ;^)

But I may do this... although I'm comfortable with both concepts if one
makes easier for others then, great.
 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Fund One
> Fund01
> 
> 
> Fund Two
> Fund02
> 
> 
> Fund Three
> Fund02
> 
> 
> 
> 
> > But there are questions.  Should "default data" be allowed in meta data
> (if
> > you fill in the content of the tags should that content be used if no
> > content is provided in the  tags)?
> 
> I'd say so, yes.

Yeah... I'm leaning that way as well... but I'm also fearing building the
deserializer.  ;^)

> > Should metadata for the contents of an array automatically apply to ALL
> > children of that array?  In other words should this be legal:
> 
> Definitely. As I said,  is essentially a type declaration, so yes.
> Mind you, such a generalisation would complicate the serialisers and
> deserialisers a bit.

Yeah... that's a fear.  Mostly the Deserializers I think: I still think
that, in practice, the whole idea of metadata/custom types will be used only
in certain situations an problems require custom code anyway.

Since all they do is cut down on verbosity I'm debating on even keeping
them... but I do really like the concept.
 
> > Should such a thing force all children of the array to be the same?
> 
> Yes, unless you want to reserve the "undefined" type for use in  to
> represent somewhere where the types are specified in the body.

I was thinking more "organically" on this one.

My thinking would be that the type would only apply as a "mask" to the
linked elements.  So, if a child tags type was defined it would apply it, if
not it wouldn't.  If it defined an "object" but no properties then that
object could h

RE: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-18 Thread Calvin Ward
XIEF (XML Information Exchange Format) 

-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 18, 2005 10:33 AM
To: CF-Talk
Subject: RE: WDDX Replacement Attempt (was RE: Ajax and CFCs)

> Well - it looks like "dataML" is already taken for something else 
> anyway...
> anybody got a good idea for a new name?

> I'm thinking either simple as in "dpml" (Depressed Press Markup 
> Language) which says absolutely NOTHING about what it does or esoteric 
> like "Rosetta".

> Whatcha think?

> I know this is weighing heavily on all your minds!  ;^)

> Jim Davis


XML Data Language (XDL)
XML Data Format (XDF)
XML Information Language (XIL)
XML Information Format (XIF)


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm






~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215628
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-18 Thread S . Isaac Dealey
> Well - it looks like "dataML" is already taken for
> something else anyway...
> anybody got a good idea for a new name?

> I'm thinking either simple as in "dpml" (Depressed Press
> Markup Language)
> which says absolutely NOTHING about what it does or
> esoteric like "Rosetta".

> Whatcha think?

> I know this is weighing heavily on all your minds!  ;^)

> Jim Davis


XML Data Language (XDL)
XML Data Format (XDF)
XML Information Language (XIL)
XML Information Format (XIF)


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215614
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-18 Thread Phillip Beazley
At 02:33 AM 8/18/2005, you wrote:

>Well - it looks like "dataML" is already taken for something else anyway...
>anybody got a good idea for a new name?
>
>I'm thinking either simple as in "dpml" (Depressed Press Markup Language)
>which says absolutely NOTHING about what it does or esoteric like "Rosetta".
>
>Whatcha think?
>
>I know this is weighing heavily on all your minds!  ;^)

How about DEML [dimmel] for data expression or exchange ML?


-- 
Phillip Beazley
Onvix -- Website Hosting, Development & E-commerce
Visit http://www.onvix.com/ or call 727-578-9600.


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215569
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-18 Thread Keith Gaughan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Why not dpxl, seeing as it's not a markup language so much as a data
transfer language that happens to an XML application?

Jim Davis wrote:

+) Something that's easy to parse for JavaScript.  SOAP is NOT easy to
> parse (which is, I think, why there's no generalized SOAP parser for JS).
> 
> +) Something that maintains general data types.  SOAP maintains complex
> datatypes (based on Java or C+).  JSON doesn't offer data typing at all.  I
> thought we needed a middle ground.

Not quite true. The data typing in JSON is implicit. Of the types listed
below it can unambiguously represent object, array, null, string,
string, boolean, and number. It's all implicit in the syntax. Dynamic
typing doesn't imply weak typing, nor does a paucity of type annotation
imply dynamic typing. For the former, see Python, which has strong
dynamic typing, and for the latter, see Haskell and ML, which both have
strong static typing through use of type inference[1].

If you're willing to extend things a little bit by including the syntax
"new X( Three tags only (I decided to minimize them to abbreviations since I'm only
> using two tags):
> 
> : This is the wrapper tag for the packet.  It can contain, first,
> any number or zero  tags and one  tag.
> 
> : "Data".  This tag contains the data items.  It can contain as many
> other  tags as you like in an orgasmic orgy of nesting.  (By having only
> one tag we eliminate problems that XSD has with randomly appearing child
> tags.)
> 
> It take three attributes:
> 
>   type: The type of the data.  I settled on using JavaScript's
> generalized types (plus the addition of "binary").  If not provided the data
> type will default to "string".   Possible values are:
>   +) "object" (equivalent to a CF Struct)
>   +) "array" (single dimensional with sparse arrays supported)
>   +) "null"
>   +) "undefined" (I'm not sure if this is actually needed yet)
>   +) "string"
>   +) "number"
>   +) "boolean" ("true" or "false" are the only acceptable
> values.)
>   +) "date"
>   +) "binary" (BASE64 Data)
>   +) "function" (representing a JavaScript function.

I'd say it would actually be less bulky if you changed the names of the
types into tags.




true
true

> 
>   
>  Jim
>  
>  Davis
>   
> 


   
   Jim
   
   Davis
   


{fname: "Jim", mname: null, lname: "Davis"}

> Where a simple record set could look like this:
> 
> 
>   
> 
>Fund One 
>Fund01 
> 
> 
>   Fund Two 
>   Fund02 
> 
> 
>   Fund Three 
>   Fund03 
> 
>   
> 




Fund One
Fund01


Fund Two
Fund02


Fund Three
Fund03




[
{text: "Fund One",   value: "Fund01"},
{text: "Fund Two",   value: "Fund02"},
{text: "Fund Three", value: "Fund03"}
]

> But over large numbers of records the repetition of the metadata would
> inflate the packet terribly.  So we use the  tag like so:
> 
> 
>   
> 
>
> 
> 
>   
>   
> 
>Fund One 
>Fund01 
> 
> 
>   Fund Two 
>   Fund02 
> 
> 
>   Fund Three 
>   Fund03 
> 
>   
> 
> 
> This shrinks the serialized version of the data tremendously when you want
> to return large numbers of similar objects (as with a record set).

I'd like to point out that here the  tag is essentially defining a
new type, so you could change this to:











Fund One
Fund01


Fund Two
Fund02


Fund Three
Fund02




> But there are questions.  Should "default data" be allowed in meta data (if
> you fill in the content of the tags should that content be used if no
> content is provided in the  tags)?

I'd say so, yes.

> Should metadata for the contents of an array automatically apply to ALL
> children of that array?  In other words should this be legal:

Definitely. As I said,  is essentially a type declaration, so yes.
Mind you, such a generalisation would complicate the serialisers and
deserialisers a bit.

> Should such a thing force all children of the array to be the same?

Yes, unless you want to reserve the "undefined" type for use in  to
represent somewhere where the types are specified in the body.

> In most cases you won't need the  at all.  It's ONLY needed to save
> space.  All deserializers should understand it, but serializers don't have
> to implement it.

Postel's law, in a way.

K.

[1] http://en.wikipedia.org/wiki/Type_inference
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDBHeImSWF0p

RE: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-18 Thread Calvin Ward
Interesting ideas and it seems like a good direction.

The use of the word object seems to trip me up (since I always think of
objects as having both values ( properties ) and funcionality ( methods
)...)

Going to be tough on a name, most of the 4/5 letter ...ml options have been
used at this point...

- Calvin
 

-Original Message-
From: Jim Davis [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 18, 2005 2:09 AM
To: CF-Talk
Subject: WDDX Replacement Attempt (was RE: Ajax and CFCs)

[Sorry - I posted this in CFCommunity already but all the action seems to be
over here...]

I've worked on it some more and have something that, on paper, seems good to
me.  I've built a JavaScript Serializer (but haven't yet begun to tackle the
deserializer).  I've created and validated the XSD as well.

The basic idea, again, is a solution which can transfer structured data
between JavaScript (or, really, any client - but primarily client-side
JavaScript) and a server.  By "structured data" I mean things like arrays
and objects (structs) nested however deeply you want.

My (simplified) goals (and complaints against other solutions) were:

+) Something that's easy to parse for JavaScript.  SOAP is NOT easy to
parse (which is, I think, why there's no generalized SOAP parser for JS).

+) Something that maintains general data types.  SOAP maintains complex
datatypes (based on Java or C+).  JSON doesn't offer data typing at all.  I
thought we needed a middle ground.

+) Something in XML.  Nearly all modern languages deal with XML natively.
The DOM makes dealing with it in JavaScript easy (if tedious).  It seemed
the way to go.

+) Something which could be described using modern XML tools.  WDDX, for
example, can't be described using an XSD... which may be stupid on the W3C's
part but is true nonetheless.  But XML/XSD provides a basic level of
validation that would have to be built from scratch otherwise.

+) Something that's appropriate for both download AND upload traffic.  
+Often
the acts of serializing or deserializing things is left to the server which
outputs raw JavaScript code.  Or JavaScript is left to receive structured
data but is left with only flat form fields to respond.

+) Finally, and not the most important, I wanted something that would be
relatively small.  JSON is VERY small (adding only 5-10% to most data
packets) while SOAP or WDDX were VERY big (something quintupling the size of
data packets).  Again, I thought there should be a middle ground without
losing capability.

I wanted something to take a complex JavaScript object and pass it, intact,
to a server which could take the resulting object, modify it and pass it
back, intact.

I wanted something JavaScript could both serialize and deserialize
relatively quickly and easily.  Most importantly I wanted something that _I_
could build and understand in JavaScript and that wouldn't take me a month
to do!

Lastly I wanted something so simple that it would be easy to recreate in
other languages as well.  And yet powerful enough not to leave (most) people
accepting compromises in their data.

So, I've come up with this.  I call it "dataML" (have you got something
better?):

Three tags only (I decided to minimize them to abbreviations since I'm only
using two tags):

: This is the wrapper tag for the packet.  It can contain, first,
any number or zero  tags and one  tag.

: "Data".  This tag contains the data items.  It can contain as many
other  tags as you like in an orgasmic orgy of nesting.  (By having only
one tag we eliminate problems that XSD has with randomly appearing child
tags.)

It take three attributes:

type: The type of the data.  I settled on using JavaScript's
generalized types (plus the addition of "binary").  If not provided the data
type will default to "string".   Possible values are:
+) "object" (equivalent to a CF Struct)
+) "array" (single dimensional with sparse arrays supported)
+) "null"
+) "undefined" (I'm not sure if this is actually needed yet)
+) "string"
+) "number"
+) "boolean" ("true" or "false" are the only acceptable
values.)
+) "date"
+) "binary" (BASE64 Data)
+) "function" (representing a JavaScript function.

fields: For objects this is a comma-delimited list of the properties
of the object (or, for CF, the keys of a struct).  For arrays, if used at
all, it would be the indexes filled in a sparse array.  It's ignored for all
other data types.

label: A label which corresponds to a label using in a 
("metadata") tag.  If used the other attributes will be pulled from the
metadata.


: "MetaData".  This allows us to create a set of attributes to be
applied later to multiple data items.  While its use may slow down
serialization/deserialization using it well can shrink the size of the
resulting packet tremendously.

We can use  to "pre-popu

RE: WDDX Replacement Attempt (was RE: Ajax and CFCs)

2005-08-17 Thread Jim Davis
Well - it looks like "dataML" is already taken for something else anyway...
anybody got a good idea for a new name?

I'm thinking either simple as in "dpml" (Depressed Press Markup Language)
which says absolutely NOTHING about what it does or esoteric like "Rosetta".

Whatcha think?

I know this is weighing heavily on all your minds!  ;^)

Jim Davis





~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215551
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX help

2005-06-20 Thread James Holmes
The docs have some info:

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/xml51.htm

On 6/21/05, Kevin Rosenthal <[EMAIL PROTECTED]> wrote:
> Greetings,
> Can anyone send me to a simple tutorial on how to use the coldfusion to wddx
> functions? I had used it once before about a year ago to convert my query
> data to a structure that I then used with JavaScript to create dynamic
> dropdown boxes, but for the life of me I can not find the files I made nor
> can I seem to remember the syntax to do this. :-( Any help would be
> appreciated.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210045
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Status?

2005-03-16 Thread Jim Davis
> -Original Message-
> From: Calvin Ward [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 15 March 2005 7:30
> To: CF-Talk
> Subject: RE: WDDX Status?
> 
> Why are questions about wddx off topic?

Well - I think questions about using WDDX in CF would be on topic... but I
was asking about WDDX (or something like it) in WebSphere/JavaScript.  ;^)
 
> It seem like a lot of stuff is going to cf-community that seems
> appropriate
> here.

True - I guess I am a little gun-shy lately for suggesting the moves...

Jim Davis





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199072
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Status?

2005-03-16 Thread James Holmes
At least CF-OT instead of CF-Community - I can't see how WDDX belongs with
muffins etc. 

-Original Message-
From: Calvin Ward [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 15 March 2005 7:30 
To: CF-Talk
Subject: RE: WDDX Status?

Why are questions about wddx off topic? 

It seem like a lot of stuff is going to cf-community that seems appropriate
here.

- Calvin

-Original Message-
From: Jim Davis [mailto:[EMAIL PROTECTED]
Sent: Monday, March 14, 2005 11:06 AM
To: CF-Talk
Subject: Re: WDDX Status?

Sorry folks - I meant that for CF_Community.  It's really off-topic for this
list.

That being said I'd still like to hear what you have to say - but please
post to the CF-community thread if possible.

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199069
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Status?

2005-03-15 Thread Calvin Ward
Why are questions about wddx off topic? 

It seem like a lot of stuff is going to cf-community that seems appropriate
here.

- Calvin

-Original Message-
From: Jim Davis [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 14, 2005 11:06 AM
To: CF-Talk
Subject: Re: WDDX Status?

Sorry folks - I meant that for CF_Community.  It's really off-topic for this
list.

That being said I'd still like to hear what you have to say - but please
post to the CF-community thread if possible.

Jim Davis




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198787
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Status?

2005-03-14 Thread Jim Davis
>SOAP is a transport protocol which is only useful in the context of web
>services. Why not just write your own schema? It's not that difficult to do
>this. I don't see much reason to bother with WDDX if you have a more
>domain-specific way to talk about your data.

Right now it's purely business-BS.  We're under some severe time restrictions.

The diaclect I've come up with isn't so very insanely different than WDDX, 
really - it simply describes a header and body where the body may contain one 
or more recordsets.  Record sets are defined generically, not domain 
specifically.

I've built all of the required JavaScript code for this - but we've recently 
discovered that our off-shore contractor (who's left suddenly) did not create 
generic java objects for the dialect - instead every instance of its use was 
essentially one-off, non-portable code.

Since he only did a little work on it, and we've got much, much more to go I 
was considering a change to allow for faster development (I assume having the 
WDDX java object could speed things up at this stage).

Jim Davis

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198670
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Status?

2005-03-14 Thread Dave Watts
> Does anybody know if the WDDX implementation in CF 7 is 
> actually updated from previous versions?  Is there any work 
> on the project?

I would be surprised if there have been any recent changes to it, or if
there ever will be. What's to change, after all? You can still use WDDX to
describe generic datatypes.

> More to the point will the current release (now well over 5 
> year old) still work in modern Java/JavaScript implementations?

The JavaScript stuff should continue to work fine. It's pretty simple
JavaScript.

> Any suggestions?
> 
> I've looked at SOAP as well, but as you need to define all 
> the elements anyway it would probably be easier to stick with 
> what we have.

SOAP is a transport protocol which is only useful in the context of web
services. Why not just write your own schema? It's not that difficult to do
this. I don't see much reason to bother with WDDX if you have a more
domain-specific way to talk about your data.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198666
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Status?

2005-03-14 Thread Jim Davis
Sorry folks - I meant that for CF_Community.  It's really off-topic for this 
list.

That being said I'd still like to hear what you have to say - but please post 
to the CF-community thread if possible.

Jim Davis


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198663
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Future

2005-02-17 Thread Dave Carabetta
On Thu, 17 Feb 2005 12:23:50 -0500, Robert Bailey
<[EMAIL PROTECTED]> wrote:
>  1) Are you using WDDX?
> 

Yes

> 2) If so, how are you using it, which languages (and versions) are you
> using
> it with (CF, JS, PHP, et al.)?
> 

CF, JavaScript, Python (extensively)

> 3) Are you limited by the current version of the WDDX SDK?

No, but I think the nature of WDDX is self-limiting, so I don't know
what you'd do with it beyond it's current capability. It's a XML
language that describes your data *types* rather than your data, which
doesn't really mesh well with today's XML-based web services where the
goal is to describe the data itself. For that reason, I don't see it
being much more than a very convenient way to transport my data
between disparate platforms.

> 4) If so, what features would you like to see included?

Can't think of any off-hand. Even performance-wise, it's pretty darn
efficient/fast (and we're passing around 30KB+ size packets at times.

> 
> 5) Should the WDDX community effort be revived and would you be willing
> to
>  actively help in this community effort to expand WDDX's capabilities?

I'm not sure how useful it would be, but that's strictly my opinion
and I wish you the best in any enhancements you go forward with.

Regards,
Dave.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195244
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Future

2005-02-17 Thread Will Tomlinson
>1) Are you using WDDX?

No, I know how it works, but haven't needed it for anything yet. 

>
>2) If so, how are you using it, which languages (and versions) are you using 
>it with (CF, JS, PHP, et al.)?
>
>3) Are you limited by the current version of the WDDX SDK?
>
>4) If so, what features would you like to see included?
>
>5) Should the WDDX community effort be revived and would you be willing to 
>actively help in this community effort to expand WDDX's capabilities?

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195220
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Future

2005-02-17 Thread Robert Bailey
 1) Are you using WDDX?

I work with it, other developers here use it all the time, I stick to
straight XML for the most part
 
2) If so, how are you using it, which languages (and versions) are you
using
it with (CF, JS, PHP, et al.)?

CF, JS

3) Are you limited by the current version of the WDDX SDK?

No

4) If so, what features would you like to see included?
 
5) Should the WDDX community effort be revived and would you be willing
to
 actively help in this community effort to expand WDDX's capabilities?

It would depend on what you are pushing; XML really does all I need and
more.

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195217
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Future

2005-02-17 Thread Caroline Wise
 1) Are you using WDDX?

Yes
 
2) If so, how are you using it, which languages (and versions) are you using
it with (CF, JS, PHP, et al.)?

Java

3) Are you limited by the current version of the WDDX SDK?

No

4) If so, what features would you like to see included?
 
5) Should the WDDX community effort be revived and would you be willing to
 actively help in this community effort to expand WDDX's capabilities?

It would be nice if some of the content that is currently out there
gets updated (in terms of broken links, etc).

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195201
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Future

2005-02-16 Thread James Holmes
 
1) Are you using WDDX?

Yes

2) If so, how are you using it, which languages (and versions) are you using
it with (CF, JS, PHP, et al.)?

Storing complex variable types (structs stored in queries) from CF6.1
directly to the DB

3) Are you limited by the current version of the WDDX SDK?

No

4) If so, what features would you like to see included?

5) Should the WDDX community effort be revived and would you be willing to
actively help in this community effort to expand WDDX's capabilities?

CF does enough for me right now.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195129
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Future

2005-02-16 Thread Barney Boisvert
In Java, for example, objects aren't serialized as an object, just
their class name and instance data is serialized.  Then on the
receiving end, a class of the same type is instnatiated, and the
serialized instance data is injected into the new instnace.  This has
a couple consequences: 1) you don't need to worry about sending
objects, just data, and 2) you must have all serialized classes on
BOTH sides of the transaction.

cheers,
barneyb

On Wed, 16 Feb 2005 16:40:06 -0500, Calvin Ward <[EMAIL PROTECTED]> wrote:
> Wonder how bloated object serialization would be...
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195102
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WDDX Future

2005-02-16 Thread Calvin Ward
Wonder how bloated object serialization would be...

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 16, 2005 4:13 PM
To: CF-Talk
Subject: Re: WDDX Future

On Wed, 16 Feb 2005 14:27:58 -0500, Rey Bango <[EMAIL PROTECTED]> wrote:
> Just wanted to take a survey on WDDX. 
> 
> 1) Are you using WDDX?

Yep

> 2) If so, how are you using it, which languages (and versions) are you
using
> it with (CF, JS, PHP, et al.)?

CF and JS

> 3) Are you limited by the current version of the WDDX SDK?

Not really.

> 5) Should the WDDX community effort be revived and would you be willing to
> actively help in this community effort to expand WDDX's capabilities?

I don't know what it would do.  I mean, WDDX is already functional,
and the types of data that need serialization hasn't really changed.

cheers,
barneyb

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195097
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Future

2005-02-16 Thread Barney Boisvert
On Wed, 16 Feb 2005 14:27:58 -0500, Rey Bango <[EMAIL PROTECTED]> wrote:
> Just wanted to take a survey on WDDX. 
> 
> 1) Are you using WDDX?

Yep

> 2) If so, how are you using it, which languages (and versions) are you using
> it with (CF, JS, PHP, et al.)?

CF and JS

> 3) Are you limited by the current version of the WDDX SDK?

Not really.

> 5) Should the WDDX community effort be revived and would you be willing to
> actively help in this community effort to expand WDDX's capabilities?

I don't know what it would do.  I mean, WDDX is already functional,
and the types of data that need serialization hasn't really changed.

cheers,
barneyb

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195089
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX Future

2005-02-16 Thread Roger B.
> 1) Are you using WDDX?

Yep.

> 2) If so, how are you using it, which languages (and versions) are you using
> it with (CF, JS, PHP, et al.)?

I use it to serialize CFML data structures and dump them to the
filesystem for caching and/or storage.

> 3) Are you limited by the current version of the WDDX SDK?

Nope.

> 5) Should the WDDX community effort be revived and would you be willing to
> actively help in this community effort to expand WDDX's capabilities?

I suppose that would depend upon what kind of expansion was on the table.

--
Roger Benningfield
free blog hosting for MX people
http://mxblogspace.journurl.com/

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195064
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: WDDX error

2004-08-27 Thread Richard Strong
That was it. 
Thanks to all that responded.

Richard

- Original Message -
From: Kwang Suh <[EMAIL PROTECTED]>
Date: Fri, 27 Aug 2004 19:24:36 -0400
Subject: Re: WDDX error
To: CF-Talk <[EMAIL PROTECTED]>

Do this:



>This is the problem:
>In form1.cfm
>
>
>   seelct  * form ...
>
>
>
>
>
>
>On the submit form:
>
>bombs if the original query some fileds with special characters in
>them. In my case &
>
>The query is based on some previous data, entered by the users and I
>have no control over it. It happnes only very rarely but still when it
>happens the user cannot continue and they get frustrated
>
>Thanks
>Richard
>
>
>- Original Message -
>From: Adrian Lynch <[EMAIL PROTECTED]>
>Date: Fri, 27 Aug 2004 22:37:21 +0100
>Subject: RE: WDDX error
>To: CF-Talk <[EMAIL PROTECTED]>
>
>
>
>Expanding on that, how about looping through the FORM scope before
>serializing it.
>
>
>
>
>
>Ade
>
>-Original Message-
>From: Adam Haskell [mailto:[EMAIL PROTECTED]
>Sent: 27 August 2004 18:57
>To: CF-Talk
>Subject: Re: WDDX error
>
>Ok if you XMlformat the entide WDDX string itd going to escape all the
><> in the WDDX . You could try something like this:
>
>wddxstuff = xmlformat(wddxstuff);
>wddxstuff =replace(wddxstuff ,'<','<','all');
>wddxstuff =replace(wddxstuff ,'>','>','all');
>wddxstuff =replace(wddxstuff ,'&&','&','all');

>
>Problem is if you have something like  5>6
>the > is still not getting escaped and it will still blow up.
>
>Adam H
>
>On Fri, 27 Aug 2004 13:38:35 -0400, Richard Strong
><[EMAIL PROTECTED]> wrote:
>root
>>
>>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: WDDX error

2004-08-27 Thread Kwang Suh
Do this:



>This is the problem:
>In form1.cfm
>
>
>   seelct  * form ...
>
>
>
>
>
>
>On the submit form:
>
>bombs if the original query some fileds with special characters in
>them. In my case &
>
>The query is based on some previous data, entered by the users and I
>have no control over it. It happnes only very rarely but still when it
>happens the user cannot continue and they get frustrated
>
>Thanks
>Richard
>
>
>- Original Message -
>From: Adrian Lynch <[EMAIL PROTECTED]>
>Date: Fri, 27 Aug 2004 22:37:21 +0100
>Subject: RE: WDDX error
>To: CF-Talk <[EMAIL PROTECTED]>
>
>
>
>Expanding on that, how about looping through the FORM scope before
>serializing it.
>
>
>
>
>
>Ade
>
>-Original Message-
>From: Adam Haskell [mailto:[EMAIL PROTECTED]
>Sent: 27 August 2004 18:57
>To: CF-Talk
>Subject: Re: WDDX error
>
>Ok if you XMlformat the entide WDDX string itd going to escape all the
><> in the WDDX . You could try something like this:
>
>wddxstuff = xmlformat(wddxstuff);
>wddxstuff =replace(wddxstuff ,'<','<','all');
>wddxstuff =replace(wddxstuff ,'>','>','all');
>wddxstuff =replace(wddxstuff ,'&&','&','all');
>
>Problem is if you have something like  5>6
>the > is still not getting escaped and it will still blow up.
>
>Adam H
>
>On Fri, 27 Aug 2004 13:38:35 -0400, Richard Strong
><[EMAIL PROTECTED]> wrote:
>root
>>
>>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: WDDX error

2004-08-27 Thread Dave Watts
> This is the problem:
> In form1.cfm
> 
> 
>    seelct  * form ...
> 
> 
> 
> output = "wddxQuery1">
> 
> 
> 
> On the submit form:
> 
> output = "wddxQuery1"> bombs if the original query some 
> fileds with special characters in them. In my case &
> 
> The query is based on some previous data, entered by the 
> users and I have no control over it. It happnes only very 
> rarely but still when it happens the user cannot continue and 
> they get frustrated

You can simply escape these characters before you use the CFWDDX tag. You
can do it in your database query, or you can loop over the query object,
examine each field, and escape them then. I wouldn't be surprised to find
something on cflib.org to do this.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: WDDX error

2004-08-27 Thread Richard Strong
This is the problem:
In form1.cfm


   seelct  * form ...






On the submit form:

bombs if the original query some fileds with special characters in
them. In my case &

The query is based on some previous data, entered by the users and I
have no control over it. It happnes only very rarely but still when it
happens the user cannot continue and they get frustrated

Thanks
Richard

- Original Message -
From: Adrian Lynch <[EMAIL PROTECTED]>
Date: Fri, 27 Aug 2004 22:37:21 +0100
Subject: RE: WDDX error
To: CF-Talk <[EMAIL PROTECTED]>

Expanding on that, how about looping through the FORM scope before
serializing it.





Ade

-Original Message-
From: Adam Haskell [mailto:[EMAIL PROTECTED]
Sent: 27 August 2004 18:57
To: CF-Talk
Subject: Re: WDDX error

Ok if you XMlformat the entide WDDX string itd going to escape all the
<> in the WDDX . You could try something like this:

wddxstuff = xmlformat(wddxstuff);
wddxstuff =replace(wddxstuff ,'<','<','all');
wddxstuff =replace(wddxstuff ,'>','>','all');
wddxstuff =replace(wddxstuff ,'&&','&','all');

Problem is if you have something like  5>6
the > is still not getting escaped and it will still blow up.

Adam H

On Fri, 27 Aug 2004 13:38:35 -0400, Richard Strong
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> We have a form that saves a query in  a wddx packet. On the submit, if
> there are any invalid characters (like &) in the wddx packet it dies:
> WDDX packet parse error at line 1, column -1. Illegal character or
> entity reference syntax..
>
> Any idea how to fix it?
>
> Thanks
> Richard
>
> PS I have tried also to use xmlFormat, but then complains about missing
root
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: WDDX error

2004-08-27 Thread Adrian Lynch
Expanding on that, how about looping through the FORM scope before
serializing it.


	


Ade

-Original Message-
From: Adam Haskell [mailto:[EMAIL PROTECTED]
Sent: 27 August 2004 18:57
To: CF-Talk
Subject: Re: WDDX error

Ok if you XMlformat the entide WDDX string itd going to escape all the
<> in the WDDX . You could try something like this:

wddxstuff = xmlformat(wddxstuff);
wddxstuff =replace(wddxstuff ,'<','<','all');
wddxstuff =replace(wddxstuff ,'>','>','all');
wddxstuff =replace(wddxstuff ,'&&','&','all');

Problem is if you have something like  5>6
the > is still not getting escaped and it will still blow up.

Adam H

On Fri, 27 Aug 2004 13:38:35 -0400, Richard Strong
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> We have a form that saves a query in  a wddx packet. On the submit, if
> there are any invalid characters (like &) in the wddx packet it dies:
> WDDX packet parse error at line 1, column -1. Illegal character or
> entity reference syntax..
>
> Any idea how to fix it?
>
> Thanks
> Richard
>
> PS I have tried also to use xmlFormat, but then complains about missing
root
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: WDDX error

2004-08-27 Thread Adrian Lynch
Expanding on that, how about looping through the FORM scope before
serializing it.


	


Ade

-Original Message-
From: Adam Haskell [mailto:[EMAIL PROTECTED]
Sent: 27 August 2004 18:57
To: CF-Talk
Subject: Re: WDDX error

Ok if you XMlformat the entide WDDX string itd going to escape all the
<> in the WDDX . You could try something like this:

wddxstuff = xmlformat(wddxstuff);
wddxstuff =replace(wddxstuff ,'<','<','all');
wddxstuff =replace(wddxstuff ,'>','>','all');
wddxstuff =replace(wddxstuff ,'&&','&','all');

Problem is if you have something like  5>6
the > is still not getting escaped and it will still blow up.

Adam H

On Fri, 27 Aug 2004 13:38:35 -0400, Richard Strong
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> We have a form that saves a query in  a wddx packet. On the submit, if
> there are any invalid characters (like &) in the wddx packet it dies:
> WDDX packet parse error at line 1, column -1. Illegal character or
> entity reference syntax..
>
> Any idea how to fix it?
>
> Thanks
> Richard
>
> PS I have tried also to use xmlFormat, but then complains about missing
root
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: WDDX error

2004-08-27 Thread Adam Haskell
Ok if you XMlformat the entide WDDX string itd going to escape all the
<> in the WDDX . You could try something like this:

wddxstuff = xmlformat(wddxstuff);
wddxstuff =replace(wddxstuff ,'<','<','all');
wddxstuff =replace(wddxstuff ,'>','>','all');
wddxstuff =replace(wddxstuff ,'&&','&','all');

Problem is if you have something like  5>6
the > is still not getting escaped and it will still blow up.

Adam H

On Fri, 27 Aug 2004 13:38:35 -0400, Richard Strong
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> We have a form that saves a query in  a wddx packet. On the submit, if
> there are any invalid characters (like &) in the wddx packet it dies:
> WDDX packet parse error at line 1, column -1. Illegal character or
> entity reference syntax..
> 
> Any idea how to fix it?
> 
> Thanks
> Richard
> 
> PS I have tried also to use xmlFormat, but then complains about missing root
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: WDDX Insanity

2004-06-09 Thread Jason Wagstaff
Rich Ziade wrote:

> I have a wddx that I'm trying to turn back into a CFML structure. The wddx
> looks fine. It CFDUMP's nicely as well. But whenever I try to turn it back
> to CFML, I get:
>
>
> WDDX packet parse error at line 1, column 1. The markup in the document
> preceding the root element must be well-formed.
>
My coworker had this exact problem today.  It was driving him crazy 
because the error was only occurring in IE.  He said that it ended up 
being that when IE rendered the wddx packet, it converted the character 
' to ' and it was messing it up.   Don't know if this is true, but 
what he has told me. 

If this isn't the case, I can check with him again.

jw
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: WDDX Insanity

2004-06-08 Thread Alexander Sherwood
At 10:16 AM 6/8/2004, you wrote:
>I have a wddx that I'm trying to turn back into a CFML structure. The wddx
>looks fine. It CFDUMP's nicely as well. But whenever I try to turn it back
>to CFML, I get:
>
>
>WDDX packet parse error at line 1, column 1. The markup in the document
>preceding the root element must be well-formed.
>
>
>Is there something painfully obvious that I'm missing?

Post the whole WDDX packet here
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: WDDX, CFMX, and NULLs

2004-05-10 Thread Scott Brady
Original Message:
> From: "Barney Boisvert" 

> WDDX changed between CF5 and CFMX.  Bottom line, CF5 WDDX and CFMX WDDX are
> incompatible.  They might be really similar, but they're different enough to
> pretty much break everything.  I think you're going to have to change your
> code throughout, or perhaps write a custom serialization routine that mimics
> the CF5 serialization.

Ay carumba!  Well, I better get started to prepare for a mid-June deployment then :)

Thanks. (for confirming my fear)

It's a shame the MX Code Analyzer doesn't seem to include this little nugget of useful info.

Scott

---
Scott Brady
http://www.scottbrady.net/
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: WDDX, CFMX, and NULLs

2004-05-10 Thread Barney Boisvert
WDDX changed between CF5 and CFMX.  Bottom line, CF5 WDDX and CFMX WDDX are
incompatible.  They might be really similar, but they're different enough to
pretty much break everything.  I think you're going to have to change your
code throughout, or perhaps write a custom serialization routine that mimics
the CF5 serialization.

Cheers,
barneyb

> -Original Message-
> From: Scott Brady [mailto:[EMAIL PROTECTED] 
> Sent: Monday, May 10, 2004 2:05 PM
> To: CF-Talk
> Subject: WDDX, CFMX, and NULLs
> 
> I managed to figure out how to fix our client variable 
> problem with MX/Oracle (we're going to have to drop and 
> rebuild the cdata and cglobal tables in the database), but am 
> running into WDDX problems for converting from CF5 to MX6.1 
> and, again, can't find anything online.
> 
> So, here's our issue.
> 
> We have a query in one frame that loads data, some of which 
> can be null. We send it to another frame as JS WDDX data and 
> go from there.  However, the null data, instead of being 
> converted to an empty string ('') [as it does in CF5], it 
> goes through as null, which causes problems in our JS code 
> where we check the length of a column.
> 
> Aside from searching through all of our code and changing it 
> to take this into account, is there some other fix someone 
> can suggest?  We use this a lot and it will be a very 
> extensive change.
> 
> Thanks!
> 
> Scott
> 
> ---
> Scott Brady
> http://www.scottbrady.net/
> 
> 
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: WDDX on CF 5.0

2004-05-09 Thread Dick Applebaum
What error do you get?

I did a lot of WDDX exchanges in 5.0 between remote hosts -- once I got 
the programs debugged there was no problem with WDDX.

Can you make it fail?

Could a timeout be the cause?

Could you catch a unaccepted WDDX packet and save it to a text file 
where you could do a diff compare with a good packet.

Do you have access to both sites so that you could write a program that 
ping-pongs a packet back and forth?

Just some thoughts.

Dick

On May 9, 2004, at 2:42 PM, Karl Simanonok wrote:

> I'm running CF 5.0 and using WDDX to get data back from another
>  site.  What's weird is sometimes the WDDX code is accepted on my 
> server,
>  sometimes it isn't and throws an error.  Exact same WDDX code is 
> returned
>  in both cases.  Has anybody seen this happen before?  Any ideas about 
> what
>  to do about it?  (Please don't tell me to upgrade to MX though, that 
> isn't
>  going to happen).
>
>  Regards,
>
>  Karl S.
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: WDDX

2004-05-05 Thread Tangorre, Michael
> I'm running CF 5.0 and using WDDX to get data back from 
> another site.  What's weird is sometimes the WDDX code is 
> accepted on my server, sometimes it isn't and throws an 
> error.  Exact same code is returned in both cases.  Has 
> anybody seen this happen before?

Could you be a bit more specific? What does your code look like, what does
the wddx look like, etc..
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: wddx for java

2004-02-23 Thread John mccosker
>http://www.openwddx.org/  
> 
>?
> 
> 
>
>
>   _  
>
>From: John mccosker [mailto:[EMAIL PROTECTED] 
>Sent: 23 February 2004 12:15
>To: CF-Talk
>Subject: wddx for java
>
>
>Hi,
>
>does anyone know where I can get the com.allaire.wddx package / api for
>serializing java objects to xml.
>
>I'm wondering is this a deprecated api under MX now, or is there something
>provided by sun now or openWddx.org.
>
>Thanx,
>John. 
>   _

Yea, silly me, I did'nt check the sdk for the software libraries.

Thank you Neil.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: wddx for java

2004-02-23 Thread Robertson-Ravo, Neil (RX)
http://www.openwddx.org/  

 
?


   _  

From: John mccosker [mailto:[EMAIL PROTECTED] 
Sent: 23 February 2004 12:15
To: CF-Talk
Subject: wddx for java

Hi,

does anyone know where I can get the com.allaire.wddx package / api for
serializing java objects to xml.

I'm wondering is this a deprecated api under MX now, or is there something
provided by sun now or openWddx.org.

Thanx,
John. 
   _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: WDDX Error!

2004-02-06 Thread Raymond Camden
Can you show us the packet? I seem to remember an issue with WDDX packets
when I was working on getting Spectra running on MX.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: WDDX inexpensive news aggregators?

2004-01-09 Thread cf-talk
Not sure of the cost but Moreover has some news feeds in WDDX format:

 
http://w.moreover.com/categories/category_list_wddx.html

 
-Novak

-Original Message-
From: Nathan C. Smith [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 09, 2004 2:38 PM
To: CF-Talk
Subject: WDDX inexpensive news aggregators?

Can anyone recommend an Inexpensive news aggregator that works with
CF-WDDX?

Thanks.

-Nate

Nathan Smith  McKee, Voorhees & Sease, P.L.C.  515.288.3667 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: WDDX vs raw XML?

2004-01-05 Thread Matt Liotta
I am aware of no limit on how deep complex types can be nested with 
WDDX. I suspect you had an application specific problem. In regard to 
WDDX vs. XML, you should remember that WDDX is XML, so what you are 
really comparing is WDDX to some non-standard XML schema you make up. 
As to whether a custom XML schema would be better for your application 
that is an open question that we can't answer without more information 
about your application. However, you should be aware that there would 
need to be compelling reasons to use some other XML schema for the 
purpose you describe since WDDX should work fine and building something 
new will take time, effort, and may result in something less robust.

Matt Liotta
Montara Software, Inc.
http://www.MontaraSoftware.com

On Jan 5, 2004, at 6:15 PM, Shawn Grover wrote:

> We had a previous app that went 3 levels deep, the third level became 
> messed
> up - the angle brackets and quotes for the XML tags got escaped.  That 
> could
> have been an issue with how we were doing the serialization (had to 
> handle
> "dangerous" characters), but that particular system had a limit of two 
> deep.
>
>
> Thanks for the response.  Any other comments?
>
>
> Shawn
>
> -Original Message-
> From: Tom Kitta [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 05, 2004 4:09 PM
> To: CF-Talk
> Subject: RE: WDDX vs raw XML?
>
> I don't think 4 or 5 should pose as a problem. I know I have a WDDX
> solutions that has around 5 or 6 and it works fine. Also you may check 
> out
> wddx site and see whatever there is a limit or no limit at all. It 
> would be
> strange in my opinion if the limit (if any) was set to something under 
> 10.
>
> TK
>   -Original Message-
>   From: Shawn Grover [mailto:[EMAIL PROTECTED]
>   Sent: Monday, January 05, 2004 6:05 PM
>   To: CF-Talk
>   Subject: WDDX vs raw XML?
>
>   We have a situation where we need to pass complex data structures 
> from the
>   server to the client, and from the client back to the server.  In the
> past,
>   I've handled this with WDDX, but am aware of a "quasi" limit to how 
> deep
> you
>   can nest WDDX packets.  Our current app is going to need multiple 
> levels -
>   probably 4 or 5. (i.e. the Base object has a collection which 
> contains
> other
>   objects that contain collections which contains other objects that
> contains
>   collections, etc).
>
>   We've done some brief exploration of the XML functions in CFMX, and
> suspect
>   this is probably the best choice for complex data like 
> this.  However, I'd
>   like to hear from others in the group to see if there are any other
>   reasonable alternatives.  (other than creating individual WDDX 
> objects for
>   each possible collection).
>
>   Any thoughts?  Thanks in advance.
>
>   Shawn
>   _
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: WDDX vs raw XML?

2004-01-05 Thread Shawn Grover
We had a previous app that went 3 levels deep, the third level became messed
up - the angle brackets and quotes for the XML tags got escaped.  That could
have been an issue with how we were doing the serialization (had to handle
"dangerous" characters), but that particular system had a limit of two deep.

 
Thanks for the response.  Any other comments?

 
Shawn

-Original Message-
From: Tom Kitta [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 4:09 PM
To: CF-Talk
Subject: RE: WDDX vs raw XML?

I don't think 4 or 5 should pose as a problem. I know I have a WDDX
solutions that has around 5 or 6 and it works fine. Also you may check out
wddx site and see whatever there is a limit or no limit at all. It would be
strange in my opinion if the limit (if any) was set to something under 10.

TK
  -Original Message-
  From: Shawn Grover [mailto:[EMAIL PROTECTED]
  Sent: Monday, January 05, 2004 6:05 PM
  To: CF-Talk
  Subject: WDDX vs raw XML?

  We have a situation where we need to pass complex data structures from the
  server to the client, and from the client back to the server.  In the
past,
  I've handled this with WDDX, but am aware of a "quasi" limit to how deep
you
  can nest WDDX packets.  Our current app is going to need multiple levels -
  probably 4 or 5. (i.e. the Base object has a collection which contains
other
  objects that contain collections which contains other objects that
contains
  collections, etc).

  We've done some brief exploration of the XML functions in CFMX, and
suspect
  this is probably the best choice for complex data like this.  However, I'd
  like to hear from others in the group to see if there are any other
  reasonable alternatives.  (other than creating individual WDDX objects for
  each possible collection).

  Any thoughts?  Thanks in advance.

  Shawn 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: WDDX vs raw XML?

2004-01-05 Thread Tom Kitta
I don't think 4 or 5 should pose as a problem. I know I have a WDDX
solutions that has around 5 or 6 and it works fine. Also you may check out
wddx site and see whatever there is a limit or no limit at all. It would be
strange in my opinion if the limit (if any) was set to something under 10.

TK
  -Original Message-
  From: Shawn Grover [mailto:[EMAIL PROTECTED]
  Sent: Monday, January 05, 2004 6:05 PM
  To: CF-Talk
  Subject: WDDX vs raw XML?

  We have a situation where we need to pass complex data structures from the
  server to the client, and from the client back to the server.  In the
past,
  I've handled this with WDDX, but am aware of a "quasi" limit to how deep
you
  can nest WDDX packets.  Our current app is going to need multiple levels -
  probably 4 or 5. (i.e. the Base object has a collection which contains
other
  objects that contain collections which contains other objects that
contains
  collections, etc).

  We've done some brief exploration of the XML functions in CFMX, and
suspect
  this is probably the best choice for complex data like this.  However, I'd
  like to hear from others in the group to see if there are any other
  reasonable alternatives.  (other than creating individual WDDX objects for
  each possible collection).

  Any thoughts?  Thanks in advance.

  Shawn
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: SOLVED Re: WDDX, cookies, and Netscape

2003-11-25 Thread Bryan Stevenson
Thanks again Rayyeah I should have mentioned...my session handling (seperate from this cookie issue) involves a client cookie holding a session ID (session_ID relates to a User_ID) and that cookie value can then be used to get user details (like name, user group, etc.).  So yes...I use a client var/database approach.rock solidnever lost a session in 6 years ;-)

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

-
Macromedia Associate Partner
www.macromedia.com
-
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
  - Original Message - 
  From: Raymond Camden 
  To: CF-Talk 
  Sent: Tuesday, November 25, 2003 2:10 PM
  Subject: RE: SOLVED Re: WDDX, cookies, and Netscape

  If you can't use session vars, or client vars, consider using a database and
  simply get/set on each request. It isn't the best solution, but its
  workable. Use a cookie to just record the PK for the user, but be sure to
  not use sequential PKs.


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: WDDX, cookies, and Netscape

2003-11-25 Thread Raymond Camden
I'm not sure if Netscape has a smaller cookie size tan IE, but why not
simply store the value in the session scope? 

Also, I have a multi-step process custom tag available on my home page that
you may like:

http://www.camdenfamily.com/morpheus/blog/index.cfm?mode=entry&entry=395FB53
7-009C-A8DB-7F53B930936AD58C


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: SOLVED Re: WDDX, cookies, and Netscape

2003-11-25 Thread Raymond Camden
If you can't use session vars, or client vars, consider using a database and
simply get/set on each request. It isn't the best solution, but its
workable. Use a cookie to just record the PK for the user, but be sure to
not use sequential PKs.


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: WDDX, cookies, and Netscape

2003-11-25 Thread Adam Wayne Lehman
As far as I know cookies cannot exceed 4k regardless of browser. Which I
think is like 256 chars.

 
. I'm positive about the 4k part, but not the 256 char part.

 
Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division

 
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 25, 2003 4:02 PM
To: CF-Talk
Subject: RE: WDDX, cookies, and Netscape

 
I'm not sure if Netscape has a smaller cookie size tan IE, but why not
simply store the value in the session scope? 

Also, I have a multi-step process custom tag available on my home page
that
you may like:

http://www.camdenfamily.com/morpheus/blog/index.cfm?mode=entry

5FB53> &entry=395FB53
7-009C-A8DB-7F53B930936AD58C

  _  


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




SOLVED Re: WDDX, cookies, and Netscape

2003-11-25 Thread Bryan Stevenson
It's definately a cookie size issue.we tested with a smaller packet size and all is well...now each step gets it's own cookie.

Thanks for the link to the tag RayI'll check it out.

I personally NEVER use the SESSION scope just so that I NEVER have to worry about an application moving to a clustered server environment and having session issuesif sessions are client side...life is good and scalable.  I've heard MX has perhaps sorted out some of the older CF loss of session issues with clustered servers.but I know my approach will always work...so for now I'm "sticking" (hehe) with it.

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

-
Macromedia Associate Partner
www.macromedia.com
-
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
  - Original Message - 
  From: Raymond Camden 
  To: CF-Talk 
  Sent: Tuesday, November 25, 2003 1:01 PM
  Subject: RE: WDDX, cookies, and Netscape

  I'm not sure if Netscape has a smaller cookie size tan IE, but why not
  simply store the value in the session scope? 

  Also, I have a multi-step process custom tag available on my home page that
  you may like:

  http://www.camdenfamily.com/morpheus/blog/index.cfm?mode=entry&entry=395FB53
  7-009C-A8DB-7F53B930936AD58C


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: WDDX and UDF

2003-02-06 Thread D. Delcomminette
Yes, Exactly what I did today  A bit tricky to play with Evaluate when
you have to pass function names and function arguments .Another problem
is scoping, functions passed by reference are known everywhere down ... but
not when passed by name ..

Dominique


-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 06, 2003 6:52 PM
To: CF-Talk
Subject: RE: WDDX and UDF

Hmm, something else to consider. You can pass the name of a UDF to a UDF
and then call it dynamically...

function alpha() { return "a"; }

function beta() { return "b"; }

function main(f) {
return f();
}

writeOutput(main("alpha"));

There is an example of a sort UDF on cflib.org that works like this.
Would this help?

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED]
WWW  : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda

> -Original Message-
> From: D. Delcomminette [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 9:38 PM
> To: CF-Talk
> Subject: RE: WDDX and UDF
>
>
> Your suggestion is good as soon as the set of function is
> pre-defined and well known, which is not the case. The object
> I am talking about is part of a completely dynamic
> development framework and must be able to handle other set of
> functions without changing the code.
>
> Dominique
>
>
> -Original Message-
> From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 7:36 PM
> To: CF-Talk
> Subject: RE: WDDX and UDF
>
> Why store the udf as a preference? I'd just store a string,
> ie, pageA.display="thumbnail" or pageA.display="Summary",
> then you could do:
>
> 
> #displayThunbnail( etc
>
> Or even easier. Write a UDF called displayContent. It takes
> as an arg what style to display and the data to show. So you could do:
>
> displayContent("thunbmail",artistnail)
>
> ==
> =
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
>
> Email: [EMAIL PROTECTED]
> WWW  : www.camdenfamily.com/morpheus
> Yahoo IM : morpheus
>
> "My ally is the Force, and a powerful ally it is." - Yoda
>
> > -Original Message-
> > From: DDE [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 05, 2003 1:17 AM
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> >
> > It is much more complex than that and it doesn't concern pages but
> > display objects ... Anyway I will add to your example so that it is
> > closer to what I need, each "page" also has a couple of functions
> > defined by default and these one can also be changed by the user.
> > Let's take your page a as an example:
> >
> > Page A
> >   Background color: red
> >   Music: techno
> >   UDF1: DisplayThumbnail
> >   UDF1_param: ArtistName
> >   UDF2: Playsong
> >   UDF2_param: SongName
> >
> > As a user I can choose to replace DisplayThumbnail by
> DisplayResume or
> > PlaySong by PlayVideo and UDF2_param by ClipName, and save it to my
> > preferences.
> >
> > DO you have a better idea of what I mean ??
> >
> > Thanks
> >
> > Dominique
> >
> >
> >
> >
> > -Original Message-
> > From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 04, 2003 10:13 PM
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> > So wait a minute - you mean your data structure looks like this -
> > kinda:
> >
> > Preferences
> > Page A
> > background color: red
> > music: techno
> >
> > Page B
> > coolness factor: high
> > hipness factor: can't walk through doors
> >
> > If so - why not simply store the preferences in a structure? How
> > exactly are you using the dynamic UDFs?
> >
> > ==
> > =
> > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> >
> > Email: [EMAIL PROTECTED]
> > WWW  : www.camdenfamily.com/morpheus
> > Yahoo IM : morpheus
> >
> > "My ally is the Force, and a powerful ally it is." - Yoda
> >
> > > -Original Message-
> > > From: D. Delcomminette [mailto:[EMAIL PROTECTED]]

RE: WDDX and UDF

2003-02-06 Thread Raymond Camden
Hmm, something else to consider. You can pass the name of a UDF to a UDF
and then call it dynamically...

function alpha() { return "a"; }

function beta() { return "b"; }

function main(f) {
return f();
}

writeOutput(main("alpha"));

There is an example of a sort UDF on cflib.org that works like this.
Would this help?

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED]
WWW  : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -Original Message-
> From: D. Delcomminette [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, February 05, 2003 9:38 PM
> To: CF-Talk
> Subject: RE: WDDX and UDF
> 
> 
> Your suggestion is good as soon as the set of function is 
> pre-defined and well known, which is not the case. The object 
> I am talking about is part of a completely dynamic 
> development framework and must be able to handle other set of 
> functions without changing the code.
> 
> Dominique
> 
> 
> -Original Message-
> From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 7:36 PM
> To: CF-Talk
> Subject: RE: WDDX and UDF
> 
> Why store the udf as a preference? I'd just store a string, 
> ie, pageA.display="thumbnail" or pageA.display="Summary", 
> then you could do:
> 
> 
> #displayThunbnail( etc
> 
> Or even easier. Write a UDF called displayContent. It takes 
> as an arg what style to display and the data to show. So you could do:
> 
> displayContent("thunbmail",artistnail)
> 
> ==
> =
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> 
> Email: [EMAIL PROTECTED]
> WWW  : www.camdenfamily.com/morpheus
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda
> 
> > -Original Message-
> > From: DDE [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 05, 2003 1:17 AM
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> >
> > It is much more complex than that and it doesn't concern pages but 
> > display objects ... Anyway I will add to your example so that it is 
> > closer to what I need, each "page" also has a couple of functions 
> > defined by default and these one can also be changed by the user. 
> > Let's take your page a as an example:
> >
> > Page A
> >   Background color: red
> >   Music: techno
> >   UDF1: DisplayThumbnail
> >   UDF1_param: ArtistName
> >   UDF2: Playsong
> >   UDF2_param: SongName
> >
> > As a user I can choose to replace DisplayThumbnail by 
> DisplayResume or 
> > PlaySong by PlayVideo and UDF2_param by ClipName, and save it to my 
> > preferences.
> >
> > DO you have a better idea of what I mean ??
> >
> > Thanks
> >
> > Dominique
> >
> >
> >
> >
> > -Original Message-
> > From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 04, 2003 10:13 PM
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> > So wait a minute - you mean your data structure looks like this - 
> > kinda:
> >
> > Preferences
> > Page A
> > background color: red
> > music: techno
> >
> > Page B
> > coolness factor: high
> > hipness factor: can't walk through doors
> >
> > If so - why not simply store the preferences in a structure? How 
> > exactly are you using the dynamic UDFs?
> >
> > ==
> > =
> > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> >
> > Email: [EMAIL PROTECTED]
> > WWW  : www.camdenfamily.com/morpheus
> > Yahoo IM : morpheus
> >
> > "My ally is the Force, and a powerful ally it is." - Yoda
> >
> > > -Original Message-
> > > From: D. Delcomminette [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, February 04, 2003 11:32 AM
> > > To: CF-Talk
> > > Subject: RE: WDDX and UDF
> > >
> > >
> > > Yeah, almost. Users can save preferences but I cannot use
> > the simple
> > > method you describe, because the same t

RE: WDDX and UDF

2003-02-05 Thread D. Delcomminette
Your suggestion is good as soon as the set of function is pre-defined and
well known, which is not the case. The object I am talking about is part of
a completely dynamic development framework and must be able to handle other
set of functions without changing the code.

Dominique


-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 7:36 PM
To: CF-Talk
Subject: RE: WDDX and UDF

Why store the udf as a preference? I'd just store a string, ie,
pageA.display="thumbnail" or pageA.display="Summary", then you could do:


#displayThunbnail( etc

Or even easier. Write a UDF called displayContent. It takes as an arg
what style to display and the data to show. So you could do:

displayContent("thunbmail",artistnail)

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED]
WWW  : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda

> -Original Message-
> From: DDE [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 1:17 AM
> To: CF-Talk
> Subject: RE: WDDX and UDF
>
>
> It is much more complex than that and it doesn't concern
> pages but display objects ... Anyway I will add to your
> example so that it is closer to what I need, each "page" also
> has a couple of functions defined by default and these one
> can also be changed by the user. Let's take your page a as an example:
>
> Page A
>   Background color: red
>   Music: techno
>   UDF1: DisplayThumbnail
>   UDF1_param: ArtistName
>   UDF2: Playsong
>   UDF2_param: SongName
>
> As a user I can choose to replace DisplayThumbnail by
> DisplayResume or PlaySong by PlayVideo and UDF2_param by
> ClipName, and save it to my preferences.
>
> DO you have a better idea of what I mean ??
>
> Thanks
>
> Dominique
>
>
>
>
> -Original Message-
> From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 10:13 PM
> To: CF-Talk
> Subject: RE: WDDX and UDF
>
> So wait a minute - you mean your data structure looks like
> this - kinda:
>
> Preferences
> Page A
> background color: red
> music: techno
>
> Page B
> coolness factor: high
> hipness factor: can't walk through doors
>
> If so - why not simply store the preferences in a structure?
> How exactly are you using the dynamic UDFs?
>
> ==
> =
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
>
> Email: [EMAIL PROTECTED]
> WWW  : www.camdenfamily.com/morpheus
> Yahoo IM : morpheus
>
> "My ally is the Force, and a powerful ally it is." - Yoda
>
> > -Original Message-
> > From: D. Delcomminette [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 04, 2003 11:32 AM
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> >
> > Yeah, almost. Users can save preferences but I cannot use
> the simple
> > method you describe, because the same thig happens on
> different pages.
> > I mena users can save preferences for different pages and the same
> > object has to handle all of them. So, I really need to save
> for user x
> > preference for page y a whole bunch of parameters amongst which a
> > couple of functions.
> >
> >
> >
> > -Original Message-
> > From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 04, 2003 8:48 PM
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> > Are you saying that based on user input, you would need to call a
> > function but you don't know which at runtime? If your options are
> > limited (let's say 3 differnet UDFs), you could use a simple cfif
> > block...
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > Or, you can consider writing one UDF and passing the option (foo
> > above) to the UDF.
> >
> > ==
> > =
> > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> >
> > Email: [EMAIL PROTECTED]
> > WWW  : www.camdenfamily.com/morpheus
> > Yahoo IM : morpheus
> >
> > "My ally is the Force, and a powerful ally it is." - Yoda
> >
> > > -Original Message-
> > > From: D. Delcomminette [mailto:[E

RE: WDDX and UDF

2003-02-05 Thread Raymond Camden
Why store the udf as a preference? I'd just store a string, ie,
pageA.display="thumbnail" or pageA.display="Summary", then you could do:


#displayThunbnail( etc

Or even easier. Write a UDF called displayContent. It takes as an arg
what style to display and the data to show. So you could do:

displayContent("thunbmail",artistnail)

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED]
WWW  : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -Original Message-
> From: DDE [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, February 05, 2003 1:17 AM
> To: CF-Talk
> Subject: RE: WDDX and UDF
> 
> 
> It is much more complex than that and it doesn't concern 
> pages but display objects ... Anyway I will add to your 
> example so that it is closer to what I need, each "page" also 
> has a couple of functions defined by default and these one 
> can also be changed by the user. Let's take your page a as an example:
> 
> Page A
>   Background color: red
>   Music: techno
>   UDF1: DisplayThumbnail
>   UDF1_param: ArtistName
>   UDF2: Playsong
>   UDF2_param: SongName
> 
> As a user I can choose to replace DisplayThumbnail by 
> DisplayResume or PlaySong by PlayVideo and UDF2_param by 
> ClipName, and save it to my preferences.
> 
> DO you have a better idea of what I mean ??
> 
> Thanks
> 
> Dominique
> 
> 
> 
> 
> -Original Message-
> From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 10:13 PM
> To: CF-Talk
> Subject: RE: WDDX and UDF
> 
> So wait a minute - you mean your data structure looks like 
> this - kinda:
> 
> Preferences
> Page A
> background color: red
> music: techno
> 
> Page B
> coolness factor: high
> hipness factor: can't walk through doors
> 
> If so - why not simply store the preferences in a structure? 
> How exactly are you using the dynamic UDFs?
> 
> ==
> =
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> 
> Email: [EMAIL PROTECTED]
> WWW  : www.camdenfamily.com/morpheus
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda
> 
> > -Original Message-
> > From: D. Delcomminette [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 04, 2003 11:32 AM
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> >
> > Yeah, almost. Users can save preferences but I cannot use 
> the simple 
> > method you describe, because the same thig happens on 
> different pages. 
> > I mena users can save preferences for different pages and the same 
> > object has to handle all of them. So, I really need to save 
> for user x 
> > preference for page y a whole bunch of parameters amongst which a 
> > couple of functions.
> >
> >
> >
> > -Original Message-
> > From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 04, 2003 8:48 PM
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> > Are you saying that based on user input, you would need to call a 
> > function but you don't know which at runtime? If your options are 
> > limited (let's say 3 differnet UDFs), you could use a simple cfif 
> > block...
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > Or, you can consider writing one UDF and passing the option (foo 
> > above) to the UDF.
> >
> > ==
> > =
> > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> >
> > Email: [EMAIL PROTECTED]
> > WWW  : www.camdenfamily.com/morpheus
> > Yahoo IM : morpheus
> >
> > "My ally is the Force, and a powerful ally it is." - Yoda
> >
> > > -Original Message-
> > > From: D. Delcomminette [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, February 04, 2003 10:34 AM
> > > To: CF-Talk
> > > Subject: RE: WDDX and UDF
> > >
> > >
> > > Ops . I wish my English was better .
> > >
> > > I do not want to store anything as a function, but I have
> > to! Because
> > > some parameters amongst

RE: WDDX and UDF

2003-02-04 Thread DDE
It is much more complex than that and it doesn't concern pages but display
objects ...
Anyway I will add to your example so that it is closer to what I need, each
"page" also has a couple of functions defined by default and these one can
also be changed by the user. Let's take your page a as an example:

Page A
Background color: red
Music: techno
UDF1: DisplayThumbnail
UDF1_param: ArtistName
UDF2: Playsong
UDF2_param: SongName

As a user I can choose to replace DisplayThumbnail by DisplayResume or
PlaySong by PlayVideo and UDF2_param by ClipName, and save it to my
preferences.

DO you have a better idea of what I mean ??

Thanks

Dominique




-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 10:13 PM
To: CF-Talk
Subject: RE: WDDX and UDF

So wait a minute - you mean your data structure looks like this - kinda:

Preferences
Page A
background color: red
music: techno

Page B
coolness factor: high
hipness factor: can't walk through doors

If so - why not simply store the preferences in a structure? How exactly
are you using the dynamic UDFs?

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED]
WWW  : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda

> -Original Message-
> From: D. Delcomminette [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 11:32 AM
> To: CF-Talk
> Subject: RE: WDDX and UDF
>
>
> Yeah, almost. Users can save preferences but I cannot use the
> simple method you describe, because the same thig happens on
> different pages. I mena users can save preferences for
> different pages and the same object has to handle all of
> them. So, I really need to save for user x preference for
> page y a whole bunch of parameters amongst which a couple of
> functions.
>
>
>
> -Original Message-
> From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 8:48 PM
> To: CF-Talk
> Subject: RE: WDDX and UDF
>
> Are you saying that based on user input, you would need to
> call a function but you don't know which at runtime? If your
> options are limited (let's say 3 differnet UDFs), you could
> use a simple cfif block...
>
> 
> 
> 
> 
> 
> 
> 
>
> Or, you can consider writing one UDF and passing the option
> (foo above) to the UDF.
>
> ==
> =
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
>
> Email: [EMAIL PROTECTED]
> WWW  : www.camdenfamily.com/morpheus
> Yahoo IM : morpheus
>
> "My ally is the Force, and a powerful ally it is." - Yoda
>
> > -Original Message-
> > From: D. Delcomminette [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 04, 2003 10:34 AM
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> >
> > Ops . I wish my English was better .
> >
> > I do not want to store anything as a function, but I have
> to! Because
> > some parameters amongst others are just the function the
> user chooses
> > to places at some point .
> >
> > Can't find how to explain it in another way.
> >
> > Thanks for your patience.
> >
> > Dominique
> >
> >
> > -Original Message-
> > From: webguy [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 04, 2003 8:00 PM
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> > Ok understand that. But what I don't understand is why you need to
> > store the preferences as a function.
> >
> > Can't you just store the "struc of array of struct" ?
> >
> > WG
> >
> > > -Original Message-
> > > From: DDE [mailto:[EMAIL PROTECTED]]
> > > Sent: 04 February 2003 15:42
> > > To: CF-Talk
> > > Subject: RE: WDDX and UDF
> > >
> > >
> > > OK, I'll try to explain a bit more , but I can't give
> full details
> > > otherwise it will become to complex. I have a struc of array of
> > > struct and so on ... A part of is a description of
> columns appearing
> > > in a dhtml
> > table. For each
> > > column, I have a name, a datatype, a filter value ..
> > and an optional
> > > reference to formatting function ...
> > > Most of those data can be customized pe

RE: WDDX and UDF

2003-02-04 Thread Raymond Camden
So wait a minute - you mean your data structure looks like this - kinda:

Preferences
Page A
background color: red
music: techno

Page B
coolness factor: high
hipness factor: can't walk through doors

If so - why not simply store the preferences in a structure? How exactly
are you using the dynamic UDFs? 

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED]
WWW  : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -Original Message-
> From: D. Delcomminette [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 04, 2003 11:32 AM
> To: CF-Talk
> Subject: RE: WDDX and UDF
> 
> 
> Yeah, almost. Users can save preferences but I cannot use the 
> simple method you describe, because the same thig happens on 
> different pages. I mena users can save preferences for 
> different pages and the same object has to handle all of 
> them. So, I really need to save for user x preference for 
> page y a whole bunch of parameters amongst which a couple of 
> functions.
> 
> 
> 
> -Original Message-
> From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 8:48 PM
> To: CF-Talk
> Subject: RE: WDDX and UDF
> 
> Are you saying that based on user input, you would need to 
> call a function but you don't know which at runtime? If your 
> options are limited (let's say 3 differnet UDFs), you could 
> use a simple cfif block...
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Or, you can consider writing one UDF and passing the option 
> (foo above) to the UDF.
> 
> ==
> =
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> 
> Email: [EMAIL PROTECTED]
> WWW  : www.camdenfamily.com/morpheus
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda
> 
> > -Original Message-
> > From: D. Delcomminette [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 04, 2003 10:34 AM
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> >
> > Ops . I wish my English was better .
> >
> > I do not want to store anything as a function, but I have 
> to! Because 
> > some parameters amongst others are just the function the 
> user chooses 
> > to places at some point .
> >
> > Can't find how to explain it in another way.
> >
> > Thanks for your patience.
> >
> > Dominique
> >
> >
> > -Original Message-
> > From: webguy [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 04, 2003 8:00 PM
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> > Ok understand that. But what I don't understand is why you need to 
> > store the preferences as a function.
> >
> > Can't you just store the "struc of array of struct" ?
> >
> > WG
> >
> > > -Original Message-
> > > From: DDE [mailto:[EMAIL PROTECTED]]
> > > Sent: 04 February 2003 15:42
> > > To: CF-Talk
> > > Subject: RE: WDDX and UDF
> > >
> > >
> > > OK, I'll try to explain a bit more , but I can't give 
> full details 
> > > otherwise it will become to complex. I have a struc of array of 
> > > struct and so on ... A part of is a description of 
> columns appearing 
> > > in a dhtml
> > table. For each
> > > column, I have a name, a datatype, a filter value ..
> > and an optional
> > > reference to formatting function ...
> > > Most of those data can be customized per user. That's the 
> reason why 
> > > I have to save it somewhere, and I choose to save in a user
> > related table of my
> > > database. I tried to store just the name of the function as
> > a string, but
> > > than I have other problems in the object managing the all stuff.
> > >
> > > Hope you get a better idea.
> > >
> > > Thanks Dominique
> > >
> > >
> > >
> > >
> > > -Original Message-
> > > From: webguy [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, February 04, 2003 6:16 PM
> > > To: CF-Talk
> > > Subject: RE: WDDX and UDF
> > >
> > > Typo..
> > >
> > > > if you do a = myfunction(a,b,c);  ... "a" will con

RE: WDDX and UDF

2003-02-04 Thread D. Delcomminette
Yeah, almost. Users can save preferences but I cannot use the simple method
you describe, because the same thig happens on different pages. I mena users
can save preferences for different pages and the same object has to handle
all of them. So, I really need to save for user x preference for page y a
whole bunch of parameters amongst which a couple of functions.



-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 8:48 PM
To: CF-Talk
Subject: RE: WDDX and UDF

Are you saying that based on user input, you would need to call a
function but you don't know which at runtime? If your options are
limited (let's say 3 differnet UDFs), you could use a simple cfif
block...









Or, you can consider writing one UDF and passing the option (foo above)
to the UDF.

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED]
WWW  : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda

> -Original Message-
> From: D. Delcomminette [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 10:34 AM
> To: CF-Talk
> Subject: RE: WDDX and UDF
>
>
> Ops . I wish my English was better .
>
> I do not want to store anything as a function, but I have to!
> Because some parameters amongst others are just the function
> the user chooses to places at some point .
>
> Can't find how to explain it in another way.
>
> Thanks for your patience.
>
> Dominique
>
>
> -Original Message-
> From: webguy [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 8:00 PM
> To: CF-Talk
> Subject: RE: WDDX and UDF
>
> Ok understand that. But what I don't understand is why you
> need to store the preferences as a function.
>
> Can't you just store the "struc of array of struct" ?
>
> WG
>
> > -Original Message-
> > From: DDE [mailto:[EMAIL PROTECTED]]
> > Sent: 04 February 2003 15:42
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> >
> > OK, I'll try to explain a bit more , but I can't give full details
> > otherwise it will become to complex.
> > I have a struc of array of struct and so on ...
> > A part of is a description of columns appearing in a dhtml
> table. For each
> > column, I have a name, a datatype, a filter value ..
> and an optional
> > reference to formatting function ...
> > Most of those data can be customized per user. That's the reason
> > why I have
> > to save it somewhere, and I choose to save in a user
> related table of my
> > database. I tried to store just the name of the function as
> a string, but
> > than I have other problems in the object managing the all stuff.
> >
> > Hope you get a better idea.
> >
> > Thanks Dominique
> >
> >
> >
> >
> > -Original Message-
> > From: webguy [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 04, 2003 6:16 PM
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> > Typo..
> >
> > > if you do a = myfunction(a,b,c);  ... "a" will contain the return
> > > code, unless you return the struct of array of struct (as
> a struct),
> > > which you should be able to store as wddx
> >
> > should read
> >
> > if you do a = myfunction(a,b,c);  ... "a" will contain the return
> > code.
> >
> > if you return the struct of array of struct (as a
> struct),you should
> > be able to store as wddx
> >
> > WG
> >
> >
>
>

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: WDDX and UDF

2003-02-04 Thread Raymond Camden
Are you saying that based on user input, you would need to call a
function but you don't know which at runtime? If your options are
limited (let's say 3 differnet UDFs), you could use a simple cfif
block...









Or, you can consider writing one UDF and passing the option (foo above)
to the UDF.

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED]
WWW  : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -Original Message-
> From: D. Delcomminette [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 04, 2003 10:34 AM
> To: CF-Talk
> Subject: RE: WDDX and UDF
> 
> 
> Ops . I wish my English was better .
> 
> I do not want to store anything as a function, but I have to! 
> Because some parameters amongst others are just the function 
> the user chooses to places at some point .
> 
> Can't find how to explain it in another way.
> 
> Thanks for your patience.
> 
> Dominique
> 
> 
> -Original Message-
> From: webguy [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 8:00 PM
> To: CF-Talk
> Subject: RE: WDDX and UDF
> 
> Ok understand that. But what I don't understand is why you 
> need to store the preferences as a function.
> 
> Can't you just store the "struc of array of struct" ?
> 
> WG
> 
> > -Original Message-
> > From: DDE [mailto:[EMAIL PROTECTED]]
> > Sent: 04 February 2003 15:42
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> >
> > OK, I'll try to explain a bit more , but I can't give full details 
> > otherwise it will become to complex.
> > I have a struc of array of struct and so on ...
> > A part of is a description of columns appearing in a dhtml 
> table. For each
> > column, I have a name, a datatype, a filter value .. 
> and an optional
> > reference to formatting function ...
> > Most of those data can be customized per user. That's the reason
> > why I have
> > to save it somewhere, and I choose to save in a user 
> related table of my
> > database. I tried to store just the name of the function as 
> a string, but
> > than I have other problems in the object managing the all stuff.
> >
> > Hope you get a better idea.
> >
> > Thanks Dominique
> >
> >
> >
> >
> > -Original Message-
> > From: webguy [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 04, 2003 6:16 PM
> > To: CF-Talk
> > Subject: RE: WDDX and UDF
> >
> > Typo..
> >
> > > if you do a = myfunction(a,b,c);  ... "a" will contain the return 
> > > code, unless you return the struct of array of struct (as 
> a struct), 
> > > which you should be able to store as wddx
> >
> > should read
> >
> > if you do a = myfunction(a,b,c);  ... "a" will contain the return 
> > code.
> >
> > if you return the struct of array of struct (as a 
> struct),you should 
> > be able to store as wddx
> >
> > WG
> >
> >
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: WDDX and UDF

2003-02-04 Thread D. Delcomminette
Ops . I wish my English was better .

I do not want to store anything as a function, but I have to! Because some
parameters amongst others are just the function the user chooses to places
at some point .

Can't find how to explain it in another way.

Thanks for your patience.

Dominique


-Original Message-
From: webguy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 8:00 PM
To: CF-Talk
Subject: RE: WDDX and UDF

Ok understand that. But what I don't understand is why you need to store the
preferences as a function.

Can't you just store the "struc of array of struct" ?

WG

> -Original Message-
> From: DDE [mailto:[EMAIL PROTECTED]]
> Sent: 04 February 2003 15:42
> To: CF-Talk
> Subject: RE: WDDX and UDF
>
>
> OK, I'll try to explain a bit more , but I can't give full
> details otherwise
> it will become to complex.
> I have a struc of array of struct and so on ...
> A part of is a description of columns appearing in a dhtml table. For each
> column, I have a name, a datatype, a filter value .. and an optional
> reference to formatting function ...
> Most of those data can be customized per user. That's the reason
> why I have
> to save it somewhere, and I choose to save in a user related table of my
> database. I tried to store just the name of the function as a string, but
> than I have other problems in the object managing the all stuff.
>
> Hope you get a better idea.
>
> Thanks Dominique
>
>
>
>
> -Original Message-
> From: webguy [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 6:16 PM
> To: CF-Talk
> Subject: RE: WDDX and UDF
>
> Typo..
>
> > if you do a = myfunction(a,b,c);  ... "a" will contain the return code,
> > unless you return the struct of array of struct (as a struct), which you
> > should be able to store as wddx
>
> should read
>
> if you do a = myfunction(a,b,c);  ... "a" will contain the return code.
>
> if you return the struct of array of struct (as a struct),you
> should be able to store as wddx
>
> WG
>
>

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




  1   2   3   4   >