RE: CFLocation and Passing Complex Data

2001-08-21 Thread Brent Goldman

Hi,

You can only pass simple data type (strings, lists, dates) in CFLOCATION,
because only strings of text can go in a URL, and structures are complex
data types.  The way to do this is to use WDDX.  First, serialize the
structure, then transmit the WDDX packet at the end of the URL.  Then you
need to deserialize the info once it is on the next page.
Here is the code:

!--- the page that performs the redirection ---
cfwddx action=CFML2WDDX input=#stMemberInfo# output=#wddxMemberInfo#
cflocation url=template.cfm?stMemberData=#wddxMemberInfo#

!--- the target page ---
cfwddx action=WDDX2CFML input=#wddxMemberInfo# output=#stMemberInfo#

-Brent

-Original Message-
From: Yvette Ingram [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 3:44 PM
To: CF-Talk
Subject: CFLocation and Passing Complex Data


Hi:

I'm trying to pass complex data (structure in particular), using cflocation,
but I'm not able to.  The example is like this:

cflocation url=template.cfm?stMemberData=#stMemberInfo#

The error I'm getting is saying that I can only pass simple data with
cflocation.  I need to pass complex data.  Is this possible to do?

Thanks in advance.
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLocation and Passing Complex Data

2001-08-20 Thread JSchlosser

Someone told me I couldn't pass any variables in a CFLOCATION (I went along
with her to humor her since I had to do a refresh anyway, so I put it in a
meta tag:

META HTTP-EQUIV=Refresh
CONTENT=1;URL=https://members.magazine.org/source/members/cmemberdisplay.cf
m?id=#client.id#

Could this work for you?  I'm pretty new to this, too, so I won't be
surprised if I get jumped on over this.  If so, excuse my ignorance :-)

JoAnn A. Schlosser
Senior Consultant
Association Management Software
Grant Thornton LLP
Washington, D. C.
703.837.4428



-Original Message-
From: Kevin Mansel [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 7:12 PM
To: CF-Talk
Subject: RE: CFLocation and Passing Complex Data


You could use structs, maybe use a session var?   You could put it in a temp
table and then assign a number to it so you can retrieve it on a different
page?

~
Kevin Mansel
Senior Web Developer
Fox Communications
[EMAIL PROTECTED]
DL : 425-649-1321
C : 425-346-7221



-Original Message-
From: Yvette Ingram [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 4:05 PM
To: CF-Talk
Subject: Re: CFLocation and Passing Complex Data


Keven:

It doesn't have to do with the addtoken.  It's the problem with passing a
structure that basically ends up being in the URL and it's large.  I need a
way to get around that.

All suggestions are welcome.

TIA
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com


- Original Message -
From: Kevin Mansel [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 6:48 PM
Subject: RE: CFLocation and Passing Complex Data


 I'm not sure why you are getting that error.  It could be to a few things,
 that I can maybe rattle off my head...

 1)  what is the value of #stMemberInfo#    That could be a potential
 problem
 2)  this could have nothing to do with it, but adding the   addtoken=no
 might help the situation

 hth

 -kevin

 ~
 Kevin Mansel
 Senior Web Developer
 Fox Communications
 [EMAIL PROTECTED]
 DL : 425-649-1321
 C : 425-346-7221



 -Original Message-
 From: Yvette Ingram [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 17, 2001 3:44 PM
 To: CF-Talk
 Subject: CFLocation and Passing Complex Data


 Hi:

 I'm trying to pass complex data (structure in particular), using
cflocation,
 but I'm not able to.  The example is like this:

 cflocation url=template.cfm?stMemberData=#stMemberInfo#

 The error I'm getting is saying that I can only pass simple data with
 cflocation.  I need to pass complex data.  Is this possible to do?

 Thanks in advance.
 Yvette Ingram
 Brainbench Certified ColdFusion 4.5 Programmer
 Email: [EMAIL PROTECTED] or
 [EMAIL PROTECTED], or
 [EMAIL PROTECTED]
 ICQ:  21200397
 Website:  http://www.tkisolutions.com

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-18 Thread Bud

Yvette, wouldn't a simple solution be to store the data in a session 
variable then pick it up on the receiving end? You can add a switch 
to the querystring if needed.

First template:

cflock scope=session timeout=30 type=exclusive
cfset session.mydata = some_complex_structure
/cflock

CFLOCATION url=template.cfm?readdata=1 addtoken=yes

Second template:

cflock scope=session timeout=30 type=readonly
CFIF isDefined('url.readdata') and isdefined('session.mydata')
cfset some_complex_structure = session.mydata
/CFIF
/cflock
-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-18 Thread Al Musella, DPM

I may be paranoid  (actually - I would only be paranoid if people aren't 
actually trying to break into my machine...  I am watching my Blackice 
Defender graph now - I had 1,500 attacks in the last 90 minutes:), but when 
i do things like this, I would pass 2 UUIDs through the URL...  one is the 
index into the temporary table, the other is a check - which is also stored 
in the temporary table.  On the second page, I first check that the 2 UUIDs 
match each other before displaying the data...
otherwise, a hacker could set up a loop to take your UUID, and just 
increment it and keep trying until it finds something.  By using 2 UUIDs, 
that would be impractical.

Al Musella, DPM




At 07:56 PM 8/17/2001 -0400, you wrote:

  A simple solution to this URL truncation problem may be to create a
  table in your database to use a storage repository for the WDDX packet,
  insert the WDDX packet into the db, and then just pass a UUID through
  the URL variable, retrieve the wddx packet from the db, and then
  recreate your structure.


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-18 Thread Al Musella, DPM


Also - you have to worry about the new patches from microsoft that cut off 
long URLs.. as well as firewalls that are now looking for long URLs..  it 
might make sense to stay away from long urls from now on..
Al


At 07:45 PM 8/17/2001 -0400, you wrote:
  First Template
  cfwddx action=CFML2WDDX input=#myStruct# output=packet
  cflocation url=sometemplate.cfm?packet=#urlencodedformat(packet)#
 
  Second template
 
  cfwddx action=WDDX2CFML input=#url.packet# output=myStruct
 
  myStruct now exists in second template. Again be careful if this is
complex
  or it may get truncated by browser


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFLocation and Passing Complex Data

2001-08-17 Thread Yvette Ingram

Hi:

I'm trying to pass complex data (structure in particular), using cflocation,
but I'm not able to.  The example is like this:

cflocation url=template.cfm?stMemberData=#stMemberInfo#

The error I'm getting is saying that I can only pass simple data with
cflocation.  I need to pass complex data.  Is this possible to do?

Thanks in advance.
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-17 Thread Yvette Ingram

Hi:

Just wanted to add that the error message is also saying that you used to be
able to do this in version 2.0.  What version can do this now?


Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com


- Original Message -
From: Yvette Ingram [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 6:44 PM
Subject: CFLocation and Passing Complex Data


 Hi:

 I'm trying to pass complex data (structure in particular), using
cflocation,
 but I'm not able to.  The example is like this:

 cflocation url=template.cfm?stMemberData=#stMemberInfo#

 The error I'm getting is saying that I can only pass simple data with
 cflocation.  I need to pass complex data.  Is this possible to do?

 Thanks in advance.
 Yvette Ingram
 Brainbench Certified ColdFusion 4.5 Programmer
 Email: [EMAIL PROTECTED] or
 [EMAIL PROTECTED], or
 [EMAIL PROTECTED]
 ICQ:  21200397
 Website:  http://www.tkisolutions.com





~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLocation and Passing Complex Data

2001-08-17 Thread Kevin Mansel

I'm not sure why you are getting that error.  It could be to a few things,
that I can maybe rattle off my head...

1)  what is the value of #stMemberInfo#    That could be a potential
problem
2)  this could have nothing to do with it, but adding the   addtoken=no
might help the situation

hth

-kevin

~
Kevin Mansel
Senior Web Developer
Fox Communications
[EMAIL PROTECTED]
DL : 425-649-1321
C : 425-346-7221



-Original Message-
From: Yvette Ingram [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 3:44 PM
To: CF-Talk
Subject: CFLocation and Passing Complex Data


Hi:

I'm trying to pass complex data (structure in particular), using cflocation,
but I'm not able to.  The example is like this:

cflocation url=template.cfm?stMemberData=#stMemberInfo#

The error I'm getting is saying that I can only pass simple data with
cflocation.  I need to pass complex data.  Is this possible to do?

Thanks in advance.
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLocation and Passing Complex Data

2001-08-17 Thread Dave Watts

 I'm trying to pass complex data (structure in particular), 
 using cflocation, but I'm not able to.  The example is like this:
 
 cflocation url=template.cfm?stMemberData=#stMemberInfo#
 
 The error I'm getting is saying that I can only pass simple data with
 cflocation. I need to pass complex data. Is this possible to do?

The problem is that you're trying to pass something that can't directly be
represented as a string (a structure) within a URL string, as if you could
type a structure in your browser location field. You could conceivably
convert your structure to a WDDX packet, then use the URLEncodedFormat
function to allow the WDDX packet to be placed in the URL, but it may very
well get truncated if you have too much data in it.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-17 Thread Don Vawter

You can only pass simple data as a url parameter not complex such as
structs. You could serialize the struct with wddx and then pass the
resultant string but you would quite likely exceed the character limits on a
url if you had a complex struct. You might consider storing the struct in a
session var or storing the serialized struct as a client variable.

- Original Message -
From: Yvette Ingram [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 4:44 PM
Subject: CFLocation and Passing Complex Data


 Hi:

 I'm trying to pass complex data (structure in particular), using
cflocation,
 but I'm not able to.  The example is like this:

 cflocation url=template.cfm?stMemberData=#stMemberInfo#

 The error I'm getting is saying that I can only pass simple data with
 cflocation.  I need to pass complex data.  Is this possible to do?

 Thanks in advance.
 Yvette Ingram
 Brainbench Certified ColdFusion 4.5 Programmer
 Email: [EMAIL PROTECTED] or
 [EMAIL PROTECTED], or
 [EMAIL PROTECTED]
 ICQ:  21200397
 Website:  http://www.tkisolutions.com





~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-17 Thread Yvette Ingram

Keven:

It doesn't have to do with the addtoken.  It's the problem with passing a
structure that basically ends up being in the URL and it's large.  I need a
way to get around that.

All suggestions are welcome.

TIA
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com


- Original Message -
From: Kevin Mansel [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 6:48 PM
Subject: RE: CFLocation and Passing Complex Data


 I'm not sure why you are getting that error.  It could be to a few things,
 that I can maybe rattle off my head...

 1)  what is the value of #stMemberInfo#    That could be a potential
 problem
 2)  this could have nothing to do with it, but adding the   addtoken=no
 might help the situation

 hth

 -kevin

 ~
 Kevin Mansel
 Senior Web Developer
 Fox Communications
 [EMAIL PROTECTED]
 DL : 425-649-1321
 C : 425-346-7221



 -Original Message-
 From: Yvette Ingram [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 17, 2001 3:44 PM
 To: CF-Talk
 Subject: CFLocation and Passing Complex Data


 Hi:

 I'm trying to pass complex data (structure in particular), using
cflocation,
 but I'm not able to.  The example is like this:

 cflocation url=template.cfm?stMemberData=#stMemberInfo#

 The error I'm getting is saying that I can only pass simple data with
 cflocation.  I need to pass complex data.  Is this possible to do?

 Thanks in advance.
 Yvette Ingram
 Brainbench Certified ColdFusion 4.5 Programmer
 Email: [EMAIL PROTECTED] or
 [EMAIL PROTECTED], or
 [EMAIL PROTECTED]
 ICQ:  21200397
 Website:  http://www.tkisolutions.com

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-17 Thread Yvette Ingram

Can I or how do I get around that.  Apparently it used to be done in V. 2.0?
Do you know how that worked.  I'm basically looking for a way around this.
My problem is that I want to get out of the template I'm currently in by
using cflocation.  Is there a way around this?

Hey, I appreciate all responses and TIA.
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com


- Original Message -
From: Dave Watts [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 6:56 PM
Subject: RE: CFLocation and Passing Complex Data


  I'm trying to pass complex data (structure in particular),
  using cflocation, but I'm not able to.  The example is like this:
 
  cflocation url=template.cfm?stMemberData=#stMemberInfo#
 
  The error I'm getting is saying that I can only pass simple data with
  cflocation. I need to pass complex data. Is this possible to do?

 The problem is that you're trying to pass something that can't directly be
 represented as a string (a structure) within a URL string, as if you could
 type a structure in your browser location field. You could conceivably
 convert your structure to a WDDX packet, then use the URLEncodedFormat
 function to allow the WDDX packet to be placed in the URL, but it may very
 well get truncated if you have too much data in it.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 voice: (202) 797-5496
 fax: (202) 797-5444


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-17 Thread Yvette Ingram

So I should serialize it before sending.  Ok.  then how can I send it?  I
can choose between cflocation, cfmodule, cfinclude.  What's the best way to
get this to the other file.  I'm using WDDX on the receiving end to
deserialize it.

TIA
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com


- Original Message -
From: Don Vawter [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 7:00 PM
Subject: Re: CFLocation and Passing Complex Data


 You can only pass simple data as a url parameter not complex such as
 structs. You could serialize the struct with wddx and then pass the
 resultant string but you would quite likely exceed the character limits on
a
 url if you had a complex struct. You might consider storing the struct in
a
 session var or storing the serialized struct as a client variable.

 - Original Message -
 From: Yvette Ingram [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, August 17, 2001 4:44 PM
 Subject: CFLocation and Passing Complex Data


  Hi:
 
  I'm trying to pass complex data (structure in particular), using
 cflocation,
  but I'm not able to.  The example is like this:
 
  cflocation url=template.cfm?stMemberData=#stMemberInfo#
 
  The error I'm getting is saying that I can only pass simple data with
  cflocation.  I need to pass complex data.  Is this possible to do?
 
  Thanks in advance.
  Yvette Ingram
  Brainbench Certified ColdFusion 4.5 Programmer
  Email: [EMAIL PROTECTED] or
  [EMAIL PROTECTED], or
  [EMAIL PROTECTED]
  ICQ:  21200397
  Website:  http://www.tkisolutions.com
 
 
 
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLocation and Passing Complex Data

2001-08-17 Thread Kevin Mansel

You could use structs, maybe use a session var?   You could put it in a temp
table and then assign a number to it so you can retrieve it on a different
page?

~
Kevin Mansel
Senior Web Developer
Fox Communications
[EMAIL PROTECTED]
DL : 425-649-1321
C : 425-346-7221



-Original Message-
From: Yvette Ingram [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 4:05 PM
To: CF-Talk
Subject: Re: CFLocation and Passing Complex Data


Keven:

It doesn't have to do with the addtoken.  It's the problem with passing a
structure that basically ends up being in the URL and it's large.  I need a
way to get around that.

All suggestions are welcome.

TIA
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com


- Original Message -
From: Kevin Mansel [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 6:48 PM
Subject: RE: CFLocation and Passing Complex Data


 I'm not sure why you are getting that error.  It could be to a few things,
 that I can maybe rattle off my head...

 1)  what is the value of #stMemberInfo#    That could be a potential
 problem
 2)  this could have nothing to do with it, but adding the   addtoken=no
 might help the situation

 hth

 -kevin

 ~
 Kevin Mansel
 Senior Web Developer
 Fox Communications
 [EMAIL PROTECTED]
 DL : 425-649-1321
 C : 425-346-7221



 -Original Message-
 From: Yvette Ingram [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 17, 2001 3:44 PM
 To: CF-Talk
 Subject: CFLocation and Passing Complex Data


 Hi:

 I'm trying to pass complex data (structure in particular), using
cflocation,
 but I'm not able to.  The example is like this:

 cflocation url=template.cfm?stMemberData=#stMemberInfo#

 The error I'm getting is saying that I can only pass simple data with
 cflocation.  I need to pass complex data.  Is this possible to do?

 Thanks in advance.
 Yvette Ingram
 Brainbench Certified ColdFusion 4.5 Programmer
 Email: [EMAIL PROTECTED] or
 [EMAIL PROTECTED], or
 [EMAIL PROTECTED]
 ICQ:  21200397
 Website:  http://www.tkisolutions.com

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-17 Thread Yvette Ingram

Ok.  I'm using CFML2WDDX on the receiving end.  So how do I get it over
there.  I'm totally brain dead at the moment.  I know a bell will go off
shortly.  Hush...  I think I may hear it;-)


Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com


- Original Message -
From: Yvette Ingram [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 7:09 PM
Subject: Re: CFLocation and Passing Complex Data


 So I should serialize it before sending.  Ok.  then how can I send it?  I
 can choose between cflocation, cfmodule, cfinclude.  What's the best way
to
 get this to the other file.  I'm using WDDX on the receiving end to
 deserialize it.

 TIA
 Yvette Ingram
 Brainbench Certified ColdFusion 4.5 Programmer
 Email: [EMAIL PROTECTED] or
 [EMAIL PROTECTED], or
 [EMAIL PROTECTED]
 ICQ:  21200397
 Website:  http://www.tkisolutions.com


 - Original Message -
 From: Don Vawter [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, August 17, 2001 7:00 PM
 Subject: Re: CFLocation and Passing Complex Data


  You can only pass simple data as a url parameter not complex such as
  structs. You could serialize the struct with wddx and then pass the
  resultant string but you would quite likely exceed the character limits
on
 a
  url if you had a complex struct. You might consider storing the struct
in
 a
  session var or storing the serialized struct as a client variable.
 
  - Original Message -
  From: Yvette Ingram [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, August 17, 2001 4:44 PM
  Subject: CFLocation and Passing Complex Data
 
 
   Hi:
  
   I'm trying to pass complex data (structure in particular), using
  cflocation,
   but I'm not able to.  The example is like this:
  
   cflocation url=template.cfm?stMemberData=#stMemberInfo#
  
   The error I'm getting is saying that I can only pass simple data with
   cflocation.  I need to pass complex data.  Is this possible to do?
  
   Thanks in advance.
   Yvette Ingram
   Brainbench Certified ColdFusion 4.5 Programmer
   Email: [EMAIL PROTECTED] or
   [EMAIL PROTECTED], or
   [EMAIL PROTECTED]
   ICQ:  21200397
   Website:  http://www.tkisolutions.com
  
  
  
  
  
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-17 Thread Don Vawter

First Template
cfwddx action=CFML2WDDX input=#myStruct# output=packet
cflocation url=sometemplate.cfm?packet=#urlencodedformat(packet)#

Second template

cfwddx action=WDDX2CFML input=#url.packet# output=myStruct

myStruct now exists in second template. Again be careful if this is complex
or it may get truncated by browser


- Original Message -
From: Yvette Ingram [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 5:18 PM
Subject: Re: CFLocation and Passing Complex Data


 Ok.  I'm using CFML2WDDX on the receiving end.  So how do I get it over
 there.  I'm totally brain dead at the moment.  I know a bell will go off
 shortly.  Hush...  I think I may hear it;-)


 Yvette Ingram
 Brainbench Certified ColdFusion 4.5 Programmer
 Email: [EMAIL PROTECTED] or
 [EMAIL PROTECTED], or
 [EMAIL PROTECTED]
 ICQ:  21200397
 Website:  http://www.tkisolutions.com


 - Original Message -
 From: Yvette Ingram [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, August 17, 2001 7:09 PM
 Subject: Re: CFLocation and Passing Complex Data


  So I should serialize it before sending.  Ok.  then how can I send it?
I
  can choose between cflocation, cfmodule, cfinclude.  What's the best way
 to
  get this to the other file.  I'm using WDDX on the receiving end to
  deserialize it.
 
  TIA
  Yvette Ingram
  Brainbench Certified ColdFusion 4.5 Programmer
  Email: [EMAIL PROTECTED] or
  [EMAIL PROTECTED], or
  [EMAIL PROTECTED]
  ICQ:  21200397
  Website:  http://www.tkisolutions.com
 
 
  - Original Message -
  From: Don Vawter [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, August 17, 2001 7:00 PM
  Subject: Re: CFLocation and Passing Complex Data
 
 
   You can only pass simple data as a url parameter not complex such as
   structs. You could serialize the struct with wddx and then pass the
   resultant string but you would quite likely exceed the character
limits
 on
  a
   url if you had a complex struct. You might consider storing the struct
 in
  a
   session var or storing the serialized struct as a client variable.
  
   - Original Message -
   From: Yvette Ingram [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Friday, August 17, 2001 4:44 PM
   Subject: CFLocation and Passing Complex Data
  
  
Hi:
   
I'm trying to pass complex data (structure in particular), using
   cflocation,
but I'm not able to.  The example is like this:
   
cflocation url=template.cfm?stMemberData=#stMemberInfo#
   
The error I'm getting is saying that I can only pass simple data
with
cflocation.  I need to pass complex data.  Is this possible to do?
   
Thanks in advance.
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com
   
   
   
   
   
  
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-17 Thread Yvette Ingram

Thanks

I'm going to try to serialize it before it gets to the receiving page and
try to deserialize it when it gets there.  Normally, I can do this with
something like cf_thatpage stMemberData=#StMemberInfo# or cfmodule like
cfmodule template=thatpage.cfm stMember=#stMemberInfo#.  But it would still
keep me in the current template.  I need to get out of the template to do
this serialize and deserialize, and the only tag I can think of is
cflocation, but it can't handle the passing the structure.

Thanks to all who responded.  I will keep trying and maybe the answer is in
front of my eye, but I'm brain dead at the moment.

Thanks again,
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com


- Original Message -
From: Yvette Ingram [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 7:18 PM
Subject: Re: CFLocation and Passing Complex Data


 Ok.  I'm using CFML2WDDX on the receiving end.  So how do I get it over
 there.  I'm totally brain dead at the moment.  I know a bell will go off
 shortly.  Hush...  I think I may hear it;-)


 Yvette Ingram
 Brainbench Certified ColdFusion 4.5 Programmer
 Email: [EMAIL PROTECTED] or
 [EMAIL PROTECTED], or
 [EMAIL PROTECTED]
 ICQ:  21200397
 Website:  http://www.tkisolutions.com


 - Original Message -
 From: Yvette Ingram [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, August 17, 2001 7:09 PM
 Subject: Re: CFLocation and Passing Complex Data


  So I should serialize it before sending.  Ok.  then how can I send it?
I
  can choose between cflocation, cfmodule, cfinclude.  What's the best way
 to
  get this to the other file.  I'm using WDDX on the receiving end to
  deserialize it.
 
  TIA
  Yvette Ingram
  Brainbench Certified ColdFusion 4.5 Programmer
  Email: [EMAIL PROTECTED] or
  [EMAIL PROTECTED], or
  [EMAIL PROTECTED]
  ICQ:  21200397
  Website:  http://www.tkisolutions.com
 
 
  - Original Message -
  From: Don Vawter [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, August 17, 2001 7:00 PM
  Subject: Re: CFLocation and Passing Complex Data
 
 
   You can only pass simple data as a url parameter not complex such as
   structs. You could serialize the struct with wddx and then pass the
   resultant string but you would quite likely exceed the character
limits
 on
  a
   url if you had a complex struct. You might consider storing the struct
 in
  a
   session var or storing the serialized struct as a client variable.
  
   - Original Message -
   From: Yvette Ingram [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Friday, August 17, 2001 4:44 PM
   Subject: CFLocation and Passing Complex Data
  
  
Hi:
   
I'm trying to pass complex data (structure in particular), using
   cflocation,
but I'm not able to.  The example is like this:
   
cflocation url=template.cfm?stMemberData=#stMemberInfo#
   
The error I'm getting is saying that I can only pass simple data
with
cflocation.  I need to pass complex data.  Is this possible to do?
   
Thanks in advance.
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com
   
   
   
   
   
  
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-17 Thread Yvette Ingram

Don:

Now this sounds like a plan.  I'll try this and let you know how I made out.

That's why cf-talk is awesum ;-)

Thanks Again,


Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com


- Original Message -
From: Don Vawter [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 7:35 PM
Subject: Re: CFLocation and Passing Complex Data


 First Template
 cfwddx action=CFML2WDDX input=#myStruct# output=packet
 cflocation url=sometemplate.cfm?packet=#urlencodedformat(packet)#

 Second template

 cfwddx action=WDDX2CFML input=#url.packet# output=myStruct

 myStruct now exists in second template. Again be careful if this is
complex
 or it may get truncated by browser


 - Original Message -
 From: Yvette Ingram [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, August 17, 2001 5:18 PM
 Subject: Re: CFLocation and Passing Complex Data


  Ok.  I'm using CFML2WDDX on the receiving end.  So how do I get it over
  there.  I'm totally brain dead at the moment.  I know a bell will go off
  shortly.  Hush...  I think I may hear it;-)
 
 
  Yvette Ingram
  Brainbench Certified ColdFusion 4.5 Programmer
  Email: [EMAIL PROTECTED] or
  [EMAIL PROTECTED], or
  [EMAIL PROTECTED]
  ICQ:  21200397
  Website:  http://www.tkisolutions.com
 
 
  - Original Message -
  From: Yvette Ingram [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, August 17, 2001 7:09 PM
  Subject: Re: CFLocation and Passing Complex Data
 
 
   So I should serialize it before sending.  Ok.  then how can I send it?
 I
   can choose between cflocation, cfmodule, cfinclude.  What's the best
way
  to
   get this to the other file.  I'm using WDDX on the receiving end to
   deserialize it.
  
   TIA
   Yvette Ingram
   Brainbench Certified ColdFusion 4.5 Programmer
   Email: [EMAIL PROTECTED] or
   [EMAIL PROTECTED], or
   [EMAIL PROTECTED]
   ICQ:  21200397
   Website:  http://www.tkisolutions.com
  
  
   - Original Message -
   From: Don Vawter [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Friday, August 17, 2001 7:00 PM
   Subject: Re: CFLocation and Passing Complex Data
  
  
You can only pass simple data as a url parameter not complex such as
structs. You could serialize the struct with wddx and then pass the
resultant string but you would quite likely exceed the character
 limits
  on
   a
url if you had a complex struct. You might consider storing the
struct
  in
   a
session var or storing the serialized struct as a client variable.
   
- Original Message -
From: Yvette Ingram [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 4:44 PM
Subject: CFLocation and Passing Complex Data
   
   
 Hi:

 I'm trying to pass complex data (structure in particular), using
cflocation,
 but I'm not able to.  The example is like this:

 cflocation url=template.cfm?stMemberData=#stMemberInfo#

 The error I'm getting is saying that I can only pass simple data
 with
 cflocation.  I need to pass complex data.  Is this possible to do?

 Thanks in advance.
 Yvette Ingram
 Brainbench Certified ColdFusion 4.5 Programmer
 Email: [EMAIL PROTECTED] or
 [EMAIL PROTECTED], or
 [EMAIL PROTECTED]
 ICQ:  21200397
 Website:  http://www.tkisolutions.com





   
  
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLocation and Passing Complex Data

2001-08-17 Thread Jay Sudowski - Handy Networks LLC

A simple solution to this URL truncation problem may be to create a
table in your database to use a storage repository for the WDDX packet,
insert the WDDX packet into the db, and then just pass a UUID through
the URL variable, retrieve the wddx packet from the db, and then
recreate your structure.

- Jay
-Original Message-
From: Don Vawter [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 17, 2001 7:36 PM
To: CF-Talk
Subject: Re: CFLocation and Passing Complex Data


First Template
cfwddx action=CFML2WDDX input=#myStruct# output=packet
cflocation url=sometemplate.cfm?packet=#urlencodedformat(packet)#

Second template

cfwddx action=WDDX2CFML input=#url.packet# output=myStruct

myStruct now exists in second template. Again be careful if this is
complex or it may get truncated by browser


- Original Message -
From: Yvette Ingram [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 5:18 PM
Subject: Re: CFLocation and Passing Complex Data


 Ok.  I'm using CFML2WDDX on the receiving end.  So how do I get it 
 over there.  I'm totally brain dead at the moment.  I know a bell will

 go off shortly.  Hush...  I think I may hear it;-)


 Yvette Ingram
 Brainbench Certified ColdFusion 4.5 Programmer
 Email: [EMAIL PROTECTED] or [EMAIL PROTECTED], or
 [EMAIL PROTECTED]
 ICQ:  21200397
 Website:  http://www.tkisolutions.com


 - Original Message -
 From: Yvette Ingram [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, August 17, 2001 7:09 PM
 Subject: Re: CFLocation and Passing Complex Data


  So I should serialize it before sending.  Ok.  then how can I send
it?
I
  can choose between cflocation, cfmodule, cfinclude.  What's the best
way
 to
  get this to the other file.  I'm using WDDX on the receiving end to
  deserialize it.
 
  TIA
  Yvette Ingram
  Brainbench Certified ColdFusion 4.5 Programmer
  Email: [EMAIL PROTECTED] or
  [EMAIL PROTECTED], or
  [EMAIL PROTECTED]
  ICQ:  21200397
  Website:  http://www.tkisolutions.com
 
 
  - Original Message -
  From: Don Vawter [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, August 17, 2001 7:00 PM
  Subject: Re: CFLocation and Passing Complex Data
 
 
   You can only pass simple data as a url parameter not complex such
as
   structs. You could serialize the struct with wddx and then pass
the
   resultant string but you would quite likely exceed the character
limits
 on
  a
   url if you had a complex struct. You might consider storing the
struct
 in
  a
   session var or storing the serialized struct as a client variable.
  
   - Original Message -
   From: Yvette Ingram [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Friday, August 17, 2001 4:44 PM
   Subject: CFLocation and Passing Complex Data
  
  
Hi:
   
I'm trying to pass complex data (structure in particular), using
   cflocation,
but I'm not able to.  The example is like this:
   
cflocation url=template.cfm?stMemberData=#stMemberInfo#
   
The error I'm getting is saying that I can only pass simple data
with
cflocation.  I need to pass complex data.  Is this possible to
do?
   
Thanks in advance.
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com
   
   
   
   
   
  
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-17 Thread Yvette Ingram

This is just a general question to whomever.  How do we get around the
truncated problem in passing complex data with WDDX or otherwise when using
cflocation?  We need to pass simple and complex data between templates
(perhaps on different directories).  Is WDDX the solution?  Which tag should
we be using?  cflocation, cfinclude, cfmodule, cf_somecustometag?  Is there
something else?  I feel like I'm missing something.  I'm still a student
here :-)

Just a question in general.  This is not directed at  Don.


Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com


- Original Message -
From: Yvette Ingram [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 7:45 PM
Subject: Re: CFLocation and Passing Complex Data


 Don:

 Now this sounds like a plan.  I'll try this and let you know how I made
out.

 That's why cf-talk is awesum ;-)

 Thanks Again,


 Yvette Ingram
 Brainbench Certified ColdFusion 4.5 Programmer
 Email: [EMAIL PROTECTED] or
 [EMAIL PROTECTED], or
 [EMAIL PROTECTED]
 ICQ:  21200397
 Website:  http://www.tkisolutions.com


 - Original Message -
 From: Don Vawter [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, August 17, 2001 7:35 PM
 Subject: Re: CFLocation and Passing Complex Data


  First Template
  cfwddx action=CFML2WDDX input=#myStruct# output=packet
  cflocation url=sometemplate.cfm?packet=#urlencodedformat(packet)#
 
  Second template
 
  cfwddx action=WDDX2CFML input=#url.packet# output=myStruct
 
  myStruct now exists in second template. Again be careful if this is
 complex
  or it may get truncated by browser
 
 
  - Original Message -
  From: Yvette Ingram [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, August 17, 2001 5:18 PM
  Subject: Re: CFLocation and Passing Complex Data
 
 
   Ok.  I'm using CFML2WDDX on the receiving end.  So how do I get it
over
   there.  I'm totally brain dead at the moment.  I know a bell will go
off
   shortly.  Hush...  I think I may hear it;-)
  
  
   Yvette Ingram
   Brainbench Certified ColdFusion 4.5 Programmer
   Email: [EMAIL PROTECTED] or
   [EMAIL PROTECTED], or
   [EMAIL PROTECTED]
   ICQ:  21200397
   Website:  http://www.tkisolutions.com
  
  
   - Original Message -
   From: Yvette Ingram [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Friday, August 17, 2001 7:09 PM
   Subject: Re: CFLocation and Passing Complex Data
  
  
So I should serialize it before sending.  Ok.  then how can I send
it?
  I
can choose between cflocation, cfmodule, cfinclude.  What's the best
 way
   to
get this to the other file.  I'm using WDDX on the receiving end to
deserialize it.
   
TIA
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com
   
   
- Original Message -
From: Don Vawter [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 7:00 PM
Subject: Re: CFLocation and Passing Complex Data
   
   
 You can only pass simple data as a url parameter not complex such
as
 structs. You could serialize the struct with wddx and then pass
the
 resultant string but you would quite likely exceed the character
  limits
   on
a
 url if you had a complex struct. You might consider storing the
 struct
   in
a
 session var or storing the serialized struct as a client variable.

 - Original Message -
 From: Yvette Ingram [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, August 17, 2001 4:44 PM
 Subject: CFLocation and Passing Complex Data


  Hi:
 
  I'm trying to pass complex data (structure in particular), using
 cflocation,
  but I'm not able to.  The example is like this:
 
  cflocation url=template.cfm?stMemberData=#stMemberInfo#
 
  The error I'm getting is saying that I can only pass simple data
  with
  cflocation.  I need to pass complex data.  Is this possible to
do?
 
  Thanks in advance.
  Yvette Ingram
  Brainbench Certified ColdFusion 4.5 Programmer
  Email: [EMAIL PROTECTED] or
  [EMAIL PROTECTED], or
  [EMAIL PROTECTED]
  ICQ:  21200397
  Website:  http://www.tkisolutions.com
 
 
 
 
 

   
  
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-17 Thread Yvette Ingram

Jay:

I will look into that.  You are the second person who has suggested putting
this into a database.  There must be something to this.  I just hate to use
yet another db table for this.  I'm already using tables to store WDDX
packages on certain users.  I would hate to keep storing info in the db just
to move from one tempate to another.  But I'm learning :-)

Thanks much for your response.


Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com


- Original Message -
From: Jay Sudowski - Handy Networks LLC [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 7:51 PM
Subject: RE: CFLocation and Passing Complex Data


 A simple solution to this URL truncation problem may be to create a
 table in your database to use a storage repository for the WDDX packet,
 insert the WDDX packet into the db, and then just pass a UUID through
 the URL variable, retrieve the wddx packet from the db, and then
 recreate your structure.

 - Jay
 -Original Message-
 From: Don Vawter [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 17, 2001 7:36 PM
 To: CF-Talk
 Subject: Re: CFLocation and Passing Complex Data


 First Template
 cfwddx action=CFML2WDDX input=#myStruct# output=packet
 cflocation url=sometemplate.cfm?packet=#urlencodedformat(packet)#

 Second template

 cfwddx action=WDDX2CFML input=#url.packet# output=myStruct

 myStruct now exists in second template. Again be careful if this is
 complex or it may get truncated by browser


 - Original Message -
 From: Yvette Ingram [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, August 17, 2001 5:18 PM
 Subject: Re: CFLocation and Passing Complex Data


  Ok.  I'm using CFML2WDDX on the receiving end.  So how do I get it
  over there.  I'm totally brain dead at the moment.  I know a bell will

  go off shortly.  Hush...  I think I may hear it;-)
 
 
  Yvette Ingram
  Brainbench Certified ColdFusion 4.5 Programmer
  Email: [EMAIL PROTECTED] or [EMAIL PROTECTED], or
  [EMAIL PROTECTED]
  ICQ:  21200397
  Website:  http://www.tkisolutions.com
 
 
  - Original Message -
  From: Yvette Ingram [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, August 17, 2001 7:09 PM
  Subject: Re: CFLocation and Passing Complex Data
 
 
   So I should serialize it before sending.  Ok.  then how can I send
 it?
 I
   can choose between cflocation, cfmodule, cfinclude.  What's the best
 way
  to
   get this to the other file.  I'm using WDDX on the receiving end to
   deserialize it.
  
   TIA
   Yvette Ingram
   Brainbench Certified ColdFusion 4.5 Programmer
   Email: [EMAIL PROTECTED] or
   [EMAIL PROTECTED], or
   [EMAIL PROTECTED]
   ICQ:  21200397
   Website:  http://www.tkisolutions.com
  
  
   - Original Message -
   From: Don Vawter [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Friday, August 17, 2001 7:00 PM
   Subject: Re: CFLocation and Passing Complex Data
  
  
You can only pass simple data as a url parameter not complex such
 as
structs. You could serialize the struct with wddx and then pass
 the
resultant string but you would quite likely exceed the character
 limits
  on
   a
url if you had a complex struct. You might consider storing the
 struct
  in
   a
session var or storing the serialized struct as a client variable.
   
- Original Message -
From: Yvette Ingram [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 4:44 PM
Subject: CFLocation and Passing Complex Data
   
   
 Hi:

 I'm trying to pass complex data (structure in particular), using
cflocation,
 but I'm not able to.  The example is like this:

 cflocation url=template.cfm?stMemberData=#stMemberInfo#

 The error I'm getting is saying that I can only pass simple data
 with
 cflocation.  I need to pass complex data.  Is this possible to
 do?

 Thanks in advance.
 Yvette Ingram
 Brainbench Certified ColdFusion 4.5 Programmer
 Email: [EMAIL PROTECTED] or
 [EMAIL PROTECTED], or
 [EMAIL PROTECTED]
 ICQ:  21200397
 Website:  http://www.tkisolutions.com





   
  
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLocation and Passing Complex Data

2001-08-17 Thread Bill Holloway

Or POST the packet using a form with a hidden input field where the
action page is where you want to go.  The header can handle a lot more
info that the URL string.  I've forgotten exactly how much (1024 k?) but
unless your struct has tons o' keys you should be fine.  
HTH
Bill

-Original Message-
From: Jay Sudowski - Handy Networks LLC [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 17, 2001 4:51 PM
To: CF-Talk
Subject: RE: CFLocation and Passing Complex Data

A simple solution to this URL truncation problem may be to create a
table in your database to use a storage repository for the WDDX packet,
insert the WDDX packet into the db, and then just pass a UUID through
the URL variable, retrieve the wddx packet from the db, and then
recreate your structure.

- Jay
-Original Message-
From: Don Vawter [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 17, 2001 7:36 PM
To: CF-Talk
Subject: Re: CFLocation and Passing Complex Data


First Template
cfwddx action=CFML2WDDX input=#myStruct# output=packet
cflocation url=sometemplate.cfm?packet=#urlencodedformat(packet)#

Second template

cfwddx action=WDDX2CFML input=#url.packet# output=myStruct

myStruct now exists in second template. Again be careful if this is
complex or it may get truncated by browser


- Original Message -
From: Yvette Ingram [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 5:18 PM
Subject: Re: CFLocation and Passing Complex Data


 Ok.  I'm using CFML2WDDX on the receiving end.  So how do I get it 
 over there.  I'm totally brain dead at the moment.  I know a bell will

 go off shortly.  Hush...  I think I may hear it;-)


 Yvette Ingram
 Brainbench Certified ColdFusion 4.5 Programmer
 Email: [EMAIL PROTECTED] or [EMAIL PROTECTED], or
 [EMAIL PROTECTED]
 ICQ:  21200397
 Website:  http://www.tkisolutions.com


 - Original Message -
 From: Yvette Ingram [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, August 17, 2001 7:09 PM
 Subject: Re: CFLocation and Passing Complex Data


  So I should serialize it before sending.  Ok.  then how can I send
it?
I
  can choose between cflocation, cfmodule, cfinclude.  What's the best
way
 to
  get this to the other file.  I'm using WDDX on the receiving end to
  deserialize it.
 
  TIA
  Yvette Ingram
  Brainbench Certified ColdFusion 4.5 Programmer
  Email: [EMAIL PROTECTED] or
  [EMAIL PROTECTED], or
  [EMAIL PROTECTED]
  ICQ:  21200397
  Website:  http://www.tkisolutions.com
 
 
  - Original Message -
  From: Don Vawter [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, August 17, 2001 7:00 PM
  Subject: Re: CFLocation and Passing Complex Data
 
 
   You can only pass simple data as a url parameter not complex such
as
   structs. You could serialize the struct with wddx and then pass
the
   resultant string but you would quite likely exceed the character
limits
 on
  a
   url if you had a complex struct. You might consider storing the
struct
 in
  a
   session var or storing the serialized struct as a client variable.
  
   - Original Message -
   From: Yvette Ingram [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Friday, August 17, 2001 4:44 PM
   Subject: CFLocation and Passing Complex Data
  
  
Hi:
   
I'm trying to pass complex data (structure in particular), using
   cflocation,
but I'm not able to.  The example is like this:
   
cflocation url=template.cfm?stMemberData=#stMemberInfo#
   
The error I'm getting is saying that I can only pass simple data
with
cflocation.  I need to pass complex data.  Is this possible to
do?
   
Thanks in advance.
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com
   
   
   
   
   
  
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-17 Thread Steve Aylor

Wouldnt you want to use cfhttp and post the wddx packet as a form field
cfhttpparam?

I my have missed something in an earlier post - sorry if so.

What version of CF Server?

Steve

- Original Message -
From: Bill Holloway [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 4:57 PM
Subject: RE: CFLocation and Passing Complex Data


 Or POST the packet using a form with a hidden input field where the
 action page is where you want to go.  The header can handle a lot more
 info that the URL string.  I've forgotten exactly how much (1024 k?) but
 unless your struct has tons o' keys you should be fine.
 HTH
 Bill

 -Original Message-
 From: Jay Sudowski - Handy Networks LLC [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 17, 2001 4:51 PM
 To: CF-Talk
 Subject: RE: CFLocation and Passing Complex Data

 A simple solution to this URL truncation problem may be to create a
 table in your database to use a storage repository for the WDDX packet,
 insert the WDDX packet into the db, and then just pass a UUID through
 the URL variable, retrieve the wddx packet from the db, and then
 recreate your structure.

 - Jay
 -Original Message-
 From: Don Vawter [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 17, 2001 7:36 PM
 To: CF-Talk
 Subject: Re: CFLocation and Passing Complex Data


 First Template
 cfwddx action=CFML2WDDX input=#myStruct# output=packet
 cflocation url=sometemplate.cfm?packet=#urlencodedformat(packet)#

 Second template

 cfwddx action=WDDX2CFML input=#url.packet# output=myStruct

 myStruct now exists in second template. Again be careful if this is
 complex or it may get truncated by browser


 - Original Message -
 From: Yvette Ingram [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, August 17, 2001 5:18 PM
 Subject: Re: CFLocation and Passing Complex Data


  Ok.  I'm using CFML2WDDX on the receiving end.  So how do I get it
  over there.  I'm totally brain dead at the moment.  I know a bell will

  go off shortly.  Hush...  I think I may hear it;-)
 
 
  Yvette Ingram
  Brainbench Certified ColdFusion 4.5 Programmer
  Email: [EMAIL PROTECTED] or [EMAIL PROTECTED], or
  [EMAIL PROTECTED]
  ICQ:  21200397
  Website:  http://www.tkisolutions.com
 
 
  - Original Message -
  From: Yvette Ingram [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, August 17, 2001 7:09 PM
  Subject: Re: CFLocation and Passing Complex Data
 
 
   So I should serialize it before sending.  Ok.  then how can I send
 it?
 I
   can choose between cflocation, cfmodule, cfinclude.  What's the best
 way
  to
   get this to the other file.  I'm using WDDX on the receiving end to
   deserialize it.
  
   TIA
   Yvette Ingram
   Brainbench Certified ColdFusion 4.5 Programmer
   Email: [EMAIL PROTECTED] or
   [EMAIL PROTECTED], or
   [EMAIL PROTECTED]
   ICQ:  21200397
   Website:  http://www.tkisolutions.com
  
  
   - Original Message -
   From: Don Vawter [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Friday, August 17, 2001 7:00 PM
   Subject: Re: CFLocation and Passing Complex Data
  
  
You can only pass simple data as a url parameter not complex such
 as
structs. You could serialize the struct with wddx and then pass
 the
resultant string but you would quite likely exceed the character
 limits
  on
   a
url if you had a complex struct. You might consider storing the
 struct
  in
   a
session var or storing the serialized struct as a client variable.
   
- Original Message -
From: Yvette Ingram [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 4:44 PM
Subject: CFLocation and Passing Complex Data
   
   
 Hi:

 I'm trying to pass complex data (structure in particular), using
cflocation,
 but I'm not able to.  The example is like this:

 cflocation url=template.cfm?stMemberData=#stMemberInfo#

 The error I'm getting is saying that I can only pass simple data
 with
 cflocation.  I need to pass complex data.  Is this possible to
 do?

 Thanks in advance.
 Yvette Ingram
 Brainbench Certified ColdFusion 4.5 Programmer
 Email: [EMAIL PROTECTED] or
 [EMAIL PROTECTED], or
 [EMAIL PROTECTED]
 ICQ:  21200397
 Website:  http://www.tkisolutions.com





   
  
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLocation and Passing Complex Data

2001-08-17 Thread Aaron Rouse

I have had a problem with this in the past.  You can only pass so much on
the URL and my packets were getting cut off and causing strange errors due
to that.

Snipe - CF_BotMaster Network=EFNet Channel=ColdFusion


- Original Message -
From: Yvette Ingram [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 6:45 PM
Subject: Re: CFLocation and Passing Complex Data


 Don:

 Now this sounds like a plan.  I'll try this and let you know how I made
out.

 That's why cf-talk is awesum ;-)

 Thanks Again,


 Yvette Ingram
 Brainbench Certified ColdFusion 4.5 Programmer
 Email: [EMAIL PROTECTED] or
 [EMAIL PROTECTED], or
 [EMAIL PROTECTED]
 ICQ:  21200397
 Website:  http://www.tkisolutions.com


 - Original Message -
 From: Don Vawter [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, August 17, 2001 7:35 PM
 Subject: Re: CFLocation and Passing Complex Data


  First Template
  cfwddx action=CFML2WDDX input=#myStruct# output=packet
  cflocation url=sometemplate.cfm?packet=#urlencodedformat(packet)#
 
  Second template
 
  cfwddx action=WDDX2CFML input=#url.packet# output=myStruct
 
  myStruct now exists in second template. Again be careful if this is
 complex
  or it may get truncated by browser
 
 
  - Original Message -
  From: Yvette Ingram [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, August 17, 2001 5:18 PM
  Subject: Re: CFLocation and Passing Complex Data
 
 
   Ok.  I'm using CFML2WDDX on the receiving end.  So how do I get it
over
   there.  I'm totally brain dead at the moment.  I know a bell will go
off
   shortly.  Hush...  I think I may hear it;-)
  
  
   Yvette Ingram
   Brainbench Certified ColdFusion 4.5 Programmer
   Email: [EMAIL PROTECTED] or
   [EMAIL PROTECTED], or
   [EMAIL PROTECTED]
   ICQ:  21200397
   Website:  http://www.tkisolutions.com
  
  
   - Original Message -
   From: Yvette Ingram [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Friday, August 17, 2001 7:09 PM
   Subject: Re: CFLocation and Passing Complex Data
  
  
So I should serialize it before sending.  Ok.  then how can I send
it?
  I
can choose between cflocation, cfmodule, cfinclude.  What's the best
 way
   to
get this to the other file.  I'm using WDDX on the receiving end to
deserialize it.
   
TIA
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ:  21200397
Website:  http://www.tkisolutions.com
   
   
- Original Message -
From: Don Vawter [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 7:00 PM
Subject: Re: CFLocation and Passing Complex Data
   
   
 You can only pass simple data as a url parameter not complex such
as
 structs. You could serialize the struct with wddx and then pass
the
 resultant string but you would quite likely exceed the character
  limits
   on
a
 url if you had a complex struct. You might consider storing the
 struct
   in
a
 session var or storing the serialized struct as a client variable.

 - Original Message -
 From: Yvette Ingram [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, August 17, 2001 4:44 PM
 Subject: CFLocation and Passing Complex Data


  Hi:
 
  I'm trying to pass complex data (structure in particular), using
 cflocation,
  but I'm not able to.  The example is like this:
 
  cflocation url=template.cfm?stMemberData=#stMemberInfo#
 
  The error I'm getting is saying that I can only pass simple data
  with
  cflocation.  I need to pass complex data.  Is this possible to
do?
 
  Thanks in advance.
  Yvette Ingram
  Brainbench Certified ColdFusion 4.5 Programmer
  Email: [EMAIL PROTECTED] or
  [EMAIL PROTECTED], or
  [EMAIL PROTECTED]
  ICQ:  21200397
  Website:  http://www.tkisolutions.com
 
 
 
 
 

   
  
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists