CFCs called from Flex are not seeing APP =?ISO-8859-1?Q?LICAT ION,_SESSION,_or_other_shared-sco=70?= e variables‏

View: New views
14 Messages — Rating Filter:   Alert me  

CFCs called from Flex are not seeing APP =?ISO-8859-1?Q?LICAT ION,_SESSION,_or_other_shared-sco=70?= e variables‏

by Jordan Farr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello all,
 
When I call my CFCs (CF8) using CFML from a CFM page, I can access APPLICATION and SESSION variables no problem (i.e. the CFC is aware that it is part of a given application that has some session variables). However, a Flash movie built with Flex 3, sitting on the same CFM page as my working CFML code, calling the same CFC as my CFML code, does not work because it says that variables APPLICATION, SESSION, etc are undefined.
 
I am not sure how to fix this issue.
 
I know the CFC is accessible from the Flash movie because if I change the CFC code to return a string "Hello World!" and ask the Flash movie to Alert.show() it, it shows "Hello World!", so the lines of communications are open. It is as if when a CFC is called via Flash remoting from Flex (I'm using Remote Objects in Flex), the CFC doesn't know it is part of an Application instance and instead acts statically.
 
Any ideas or suggestions would be greatly appreciated.
 
Happy Friday to all.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5780
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

=?ISO-8859-1?Q?Re: CFCs called from Flex are not seein=67?= =?ISO-8859-1?Q? APPLICAT ION, SESSION, or other share=64?= =?ISO-8859-1?Q?-scope va riables=E2=80=8F?=

by David Henry-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Jordan,
Someone correct me if I'm wrong.  I think calling a cfc directly will
bypass the Application.cfm or Application.cfc file.  This means there is
no context for the application or session scope because the
cfapplication tag was probably skipped.

Hope that helps,
David


Jordan Farr wrote:
> Hello all,
>  
> When I call my CFCs (CF8) using CFML from a CFM page, I can access APPLICATION and SESSION variables no problem (i.e. the CFC is aware that it is part of a given application that has some session variables). However, a Flash movie built with Flex 3, sitting on the same CFM page as my working CFML code, calling the same CFC as my CFML code, does not work because it says that variables APPLICATION, SESSION, etc are undefined.
>  
> I am not sure how to fix this issue.
>  
> I know the CFC is accessible from the Flash movie because if I change the CFC code to return a string "Hello World!" and ask the Flash movie to Alert.show() it, it shows "Hello World!", so the lines of communications are open. It is as if when a CFC is called via Flash remoting from Flex (I'm using Remote Objects in Flex), the CFC doesn't know it is part of an Application instance and instead acts statically.
>  
>  

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5782
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

=?ISO-8859-1?Q?RE:_CFCs_called_from_Flex_are_no t_seei=6E?= =?ISO-8859-1?Q?g__APPLICAT_ION,_SESSION, _or_other_sha=72?= =?ISO-8859-1?Q?ed-scope_va_riable s=C3=A2=E2=82=AC=C2=8F?=

by Paul Kukiel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


David,

That’s actually not correct.  Flex remoting works in the same way as a normal cfm.  You have full access to application and session scoping even if you just directly access a cfc.

Paul

-----Original Message-----
From: David Henry [mailto:davidhenry@...]
Sent: Friday, February 20, 2009 5:13 PM
To: flex
Subject: Re: CFCs called from Flex are not seeing APPLICAT ION, SESSION, or other shared-scope va riables‏


Jordan,
Someone correct me if I'm wrong.  I think calling a cfc directly will
bypass the Application.cfm or Application.cfc file.  This means there is
no context for the application or session scope because the
cfapplication tag was probably skipped.

Hope that helps,
David


Jordan Farr wrote:
> Hello all,
>  
> When I call my CFCs (CF8) using CFML from a CFM page, I can access APPLICATION and SESSION variables no problem (i.e. the CFC is aware that it is part of a given application that has some session variables). However, a Flash movie built with Flex 3, sitting on the same CFM page as my working CFML code, calling the same CFC as my CFML code, does not work because it says that variables APPLICATION, SESSION, etc are undefined.
>  
> I am not sure how to fix this issue.
>  
> I know the CFC is accessible from the Flash movie because if I change the CFC code to return a string "Hello World!" and ask the Flash movie to Alert.show() it, it shows "Hello World!", so the lines of communications are open. It is as if when a CFC is called via Flash remoting from Flex (I'm using Remote Objects in Flex), the CFC doesn't know it is part of an Application instance and instead acts statically.
>  
>  



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5784
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

=?ISO-8859-1?Q?Re: CFCs called from Flex are no t seei=6E?= =?ISO-8859-1?Q?g AP PLICAT ION, SESSION, or other sh=61?= =?ISO-8859-1?Q?red-scope v a riable s=C3=A2=E2=82=AC?=

by Mike Nimer-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


you just need to make sure your application.cfm/cfc is in a folder above the cfc's. CF uses the same rules to find the application.cfm/cfc when invoking a cfc directly from flex as it does when its looking for the application.cfm/cfc when you invoke a cfm page. It walks up the folder tree to find it.

Most likely you have an application.cfm in the folder with your test cfm pages, but that is not in a folder above the cfcs so when you invoke the cfc directly ColdFusion can't find the same application.cfm.

hth,
---nimer




________________________________
From: Paul Kukiel <kukielp@...>
To: flex <flex@...>
Sent: Friday, February 20, 2009 6:29:12 PM
Subject: RE: CFCs called from Flex are no t seeing  APPLICAT ION, SESSION,  or other shared-scope va riable sâ€


David,

That’s actually not correct.  Flex remoting works in the same way as a normal cfm.  You have full access to application and session scoping even if you just directly access a cfc.

Paul

-----Original Message-----
From: David Henry [mailto:davidhenry@...]
Sent: Friday, February 20, 2009 5:13 PM
To: flex
Subject: Re: CFCs called from Flex are not seeing APPLICAT ION, SESSION, or other shared-scope va riablesâ€


Jordan,
Someone correct me if I'm wrong.  I think calling a cfc directly will
bypass the Application.cfm or Application.cfc file.  This means there is
no context for the application or session scope because the
cfapplication tag was probably skipped.

Hope that helps,
David


Jordan Farr wrote:
> Hello all,
>  
> When I call my CFCs (CF8) using CFML from a CFM page, I can access APPLICATION and SESSION variables no problem (i.e. the CFC is aware that it is part of a given application that has some session variables). However, a Flash movie built with Flex 3, sitting on the same CFM page as my working CFML code, calling the same CFC as my CFML code, does not work because it says that variables APPLICATION, SESSION, etc are undefined.
>  
> I am not sure how to fix this issue.
>  
> I know the CFC is accessible from the Flash movie because if I change the CFC code to return a string "Hello World!" and ask the Flash movie to Alert.show() it, it shows "Hello World!", so the lines of communications are open. It is as if when a CFC is called via Flash remoting from Flex (I'm using Remote Objects in Flex), the CFC doesn't know it is part of an Application instance and instead acts statically.
>  
>  





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5785
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

=?ISO-8859-1?Q?RE:_CFCs_c alled_from _Flex_are_ no_t_s=65?= =?ISO-8859-1?Q?ein g__AP_PLIC AT_ION,_SE SSION,__or _o=74?= =?ISO-8859-1?Q?her_sha red-scope_ v_a_riable _s=C3=A2=E2=82=AC?=

by Jordan Farr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Nimer, Paul, and David,

 

Thank you for your replies.

 

My Application.cfc (CF8) is indeed in a folder just above my CFCs folder. I know the Application.cfc functions are being called because my CFM page (let's call it dsp_CFCTestBody.cfm) displays with the header and footer that are included in onRequestStart() and onRequestEnd() which are both part of Application.cfc. In other words, Application.cfc is in the right place and is being called correctly (unless I'm missing something here).

 

The problematic part is this: My dsp_CFCTestBody.cfm invokes the exact same function (myFunction) in the exact same CFC (myCFC) but in two different ways; in CFML using CFINVOKE and from a Flash movie built in Flex 3 using Flash remoting. All myFunction does is return a value in SESSION scope, so basically <CFRETURN SESSION.someVar>. When myFunction is called in CFML, it returns someVar correctly, but when it is called via Flash remoting, it barks SESSION is undefined. I know the function is being called correctly from the Flash movie because if I change <CFRETURN SESSION.someVar> to <CFRETURN "Hello World!"> in myFunction, I'll get "Hello World!" in the Flash movie.

 

I hope this clarifies the issue.

 

Is there an XML setting somewhere I need to worry about? Is there something I have to change in CF8 Administrator (besides the obvious Enable Flash Remoting)?

 

Thank you all.

 

JF

 

> Date: Sat, 21 Feb 2009 10:02:41 -0800
> Subject: Re: CFCs called from Flex are no t seeing AP PLICAT ION, SESSION, or other shared-scope v a riable sâ€
> From: mikenimer@...
> To: flex@...
>
>
> you just need to make sure your application.cfm/cfc is in a folder above the cfc's. CF uses the same rules to find the application.cfm/cfc when invoking a cfc directly from flex as it does when its looking for the application.cfm/cfc when you invoke a cfm page. It walks up the folder tree to find it.
>
> Most likely you have an application.cfm in the folder with your test cfm pages, but that is not in a folder above the cfcs so when you invoke the cfc directly ColdFusion can't find the same application.cfm.
>
> hth,
> ---nimer
>
>
>
>
> ________________________________
> From: Paul Kukiel <kukielp@...>
> To: flex <flex@...>
> Sent: Friday, February 20, 2009 6:29:12 PM
> Subject: RE: CFCs called from Flex are no t seeing APPLICAT ION, SESSION, or other shared-scope va riable sâ€
>
>
> David,
>
> That’s actually not correct. Flex remoting works in the same way as a normal cfm. You have full access to application and session scoping even if you just directly access a cfc.
>
> Paul
>
> -----Original Message-----
> From: David Henry [mailto:davidhenry@...]
> Sent: Friday, February 20, 2009 5:13 PM
> To: flex
> Subject: Re: CFCs called from Flex are not seeing APPLICAT ION, SESSION, or other shared-scope va riablesâ€
>
>
> Jordan,
> Someone correct me if I'm wrong. I think calling a cfc directly will
> bypass the Application.cfm or Application.cfc file. This means there is
> no context for the application or session scope because the
> cfapplication tag was probably skipped.
>
> Hope that helps,
> David
>
>
> Jordan Farr wrote:
> > Hello all,
> >
> > When I call my CFCs (CF8) using CFML from a CFM page, I can access APPLICATION and SESSION variables no problem (i.e. the CFC is aware that it is part of a given application that has some session variables). However, a Flash movie built with Flex 3, sitting on the same CFM page as my working CFML code, calling the same CFC as my CFML code, does not work because it says that variables APPLICATION, SESSION, etc are undefined.
> >
> > I am not sure how to fix this issue.
> >
> > I know the CFC is accessible from the Flash movie because if I change the CFC code to return a string "Hello World!" and ask the Flash movie to Alert.show() it, it shows "Hello World!", so the lines of communications are open. It is as if when a CFC is called via Flash remoting from Flex (I'm using Remote Objects in Flex), the CFC doesn't know it is part of an Application instance and instead acts statically.
> >
> >
>
>
>
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5786
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

Re: CFCs c alled from Flex are no t seei =?ISO-8859-1?Q?n_g_AP_PLIC_ AT_ION,_SE_SSION,_or_other=5F?= =?ISO-8859-1?Q?sha_red-scope_v_a_riable_s=E2=E2 =?=

by Douglas Knudsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Whenever I hear mention of onRequest(), onRequestStart(), onRequestEnd() and
Flex remoting in the same sentence, its time to question life and everything
else.  They don't mix well.  Check out saythis blog post for one
http://www.sargeway.com/blog/index.cfm/2006/11/29/OnRequest-and-OnRequestStart-Discussion

HTH

peas



Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


On Sat, Feb 21, 2009 at 2:12 PM, Jordan Farr <absit.invidia@...>wrote:

>
> Nimer, Paul, and David,
>
>
>
> Thank you for your replies.
>
>
>
> My Application.cfc (CF8) is indeed in a folder just above my CFCs folder. I
> know the Application.cfc functions are being called because my CFM page
> (let's call it dsp_CFCTestBody.cfm) displays with the header and footer that
> are included in onRequestStart() and onRequestEnd() which are both part of
> Application.cfc. In other words, Application.cfc is in the right place and
> is being called correctly (unless I'm missing something here).
>
>
>
> The problematic part is this: My dsp_CFCTestBody.cfm invokes the exact same
> function (myFunction) in the exact same CFC (myCFC) but in two different
> ways; in CFML using CFINVOKE and from a Flash movie built in Flex 3 using
> Flash remoting. All myFunction does is return a value in SESSION scope, so
> basically <CFRETURN SESSION.someVar>. When myFunction is called in CFML, it
> returns someVar correctly, but when it is called via Flash remoting, it
> barks SESSION is undefined. I know the function is being called correctly
> from the Flash movie because if I change <CFRETURN SESSION.someVar> to
> <CFRETURN "Hello World!"> in myFunction, I'll get "Hello World!" in the
> Flash movie.
>
>
>
> I hope this clarifies the issue.
>
>
>
> Is there an XML setting somewhere I need to worry about? Is there something
> I have to change in CF8 Administrator (besides the obvious Enable Flash
> Remoting)?
>
>
>
> Thank you all.
>
>
>
> JF
>
>
> > Date: Sat, 21 Feb 2009 10:02:41 -0800
> > Subject: Re: CFCs called from Flex are no t seeing AP PLICAT ION,
> SESSION, or other shared-scope v a riable sâ€
> > From: mikenimer@...
> > To: flex@...
> >
> >
> > you just need to make sure your application.cfm/cfc is in a folder above
> the cfc's. CF uses the same rules to find the application.cfm/cfc when
> invoking a cfc directly from flex as it does when its looking for the
> application.cfm/cfc when you invoke a cfm page. It walks up the folder tree
> to find it.
> >
> > Most likely you have an application.cfm in the folder with your test cfm
> pages, but that is not in a folder above the cfcs so when you invoke the cfc
> directly ColdFusion can't find the same application.cfm.
> >
> > hth,
> > ---nimer
> >
> >
> >
> >
> > ________________________________
> > From: Paul Kukiel <kukielp@...>
> > To: flex <flex@...>
> > Sent: Friday, February 20, 2009 6:29:12 PM
> > Subject: RE: CFCs called from Flex are no t seeing APPLICAT ION, SESSION,
> or other shared-scope va riable sâ€
> >
> >
> > David,
> >
> > That's actually not correct. Flex remoting works in the same way as a
> normal cfm. You have full access to application and session scoping even if
> you just directly access a cfc.
> >
> > Paul
> >
> > -----Original Message-----
> > From: David Henry [mailto:davidhenry@...]
> > Sent: Friday, February 20, 2009 5:13 PM
> > To: flex
> > Subject: Re: CFCs called from Flex are not seeing APPLICAT ION, SESSION,
> or other shared-scope va riablesâ€
> >
> >
> > Jordan,
> > Someone correct me if I'm wrong. I think calling a cfc directly will
> > bypass the Application.cfm or Application.cfc file. This means there is
> > no context for the application or session scope because the
> > cfapplication tag was probably skipped.
> >
> > Hope that helps,
> > David
> >
> >
> > Jordan Farr wrote:
> > > Hello all,
> > >
> > > When I call my CFCs (CF8) using CFML from a CFM page, I can access
> APPLICATION and SESSION variables no problem (i.e. the CFC is aware that it
> is part of a given application that has some session variables). However, a
> Flash movie built with Flex 3, sitting on the same CFM page as my working
> CFML code, calling the same CFC as my CFML code, does not work because it
> says that variables APPLICATION, SESSION, etc are undefined.
> > >
> > > I am not sure how to fix this issue.
> > >
> > > I know the CFC is accessible from the Flash movie because if I change
> the CFC code to return a string "Hello World!" and ask the Flash movie to
> Alert.show() it, it shows "Hello World!", so the lines of communications are
> open. It is as if when a CFC is called via Flash remoting from Flex (I'm
> using Remote Objects in Flex), the CFC doesn't know it is part of an
> Application instance and instead acts statically.
> > >
> > >
> >
> >
> >
> >
> >
> >
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5787
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

Re: CFCs c alled from Flex are no t seei =?ISO-8859-1?Q?n_g_AP_PL IC__AT_ION,_SE_SSION,_or_othe=72?= =?ISO-8859-1?Q?_sha_red-scope_v_ a_riable_s=E2=E2=5F?=

by Stefan Richter-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I cannot believe we still have to wrestle with issues like this. CF is  
in version 8 now for crying out loud and Remoting has been around how  
many years? Yet in almost every project that requires me to use Flex/
Flash and CF I discover new issues or stupidly difficult tasks (ever  
tried to set up Remoting over SSL in Flex by following the docs?)  
such as this one described here.

Sorry about the rant but this is starting to get boring. Adobe needs  
to dedicate some efforts and get both technologies to play together  
much more smoothly without requiring rocket scientific skills for both  
Flex and CF.

There, that's me done for tonight.


Stefan (who loves both Flex and CF)




On 21 Feb 2009, at 19:39, Douglas Knudsen wrote:

>
> Whenever I hear mention of onRequest(), onRequestStart(),  
> onRequestEnd() and
> Flex remoting in the same sentence, its time to question life and  
> everything
> else.  They don't mix well.  Check out saythis blog post for one
> http://www.sargeway.com/blog/index.cfm/2006/11/29/OnRequest-and-OnRequestStart-Discussion
>
> HTH
>
> peas
>
>
>
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>
>
> On Sat, Feb 21, 2009 at 2:12 PM, Jordan Farr <absit.invidia@...
> >wrote:
>
>>
>> Nimer, Paul, and David,
>>
>>
>>
>> Thank you for your replies.
>>
>>
>>
>> My Application.cfc (CF8) is indeed in a folder just above my CFCs  
>> folder. I
>> know the Application.cfc functions are being called because my CFM  
>> page
>> (let's call it dsp_CFCTestBody.cfm) displays with the header and  
>> footer that
>> are included in onRequestStart() and onRequestEnd() which are both  
>> part of
>> Application.cfc. In other words, Application.cfc is in the right  
>> place and
>> is being called correctly (unless I'm missing something here).
>>
>>
>>
>> The problematic part is this: My dsp_CFCTestBody.cfm invokes the  
>> exact same
>> function (myFunction) in the exact same CFC (myCFC) but in two  
>> different
>> ways; in CFML using CFINVOKE and from a Flash movie built in Flex 3  
>> using
>> Flash remoting. All myFunction does is return a value in SESSION  
>> scope, so
>> basically <CFRETURN SESSION.someVar>. When myFunction is called in  
>> CFML, it
>> returns someVar correctly, but when it is called via Flash  
>> remoting, it
>> barks SESSION is undefined. I know the function is being called  
>> correctly
>> from the Flash movie because if I change <CFRETURN SESSION.someVar>  
>> to
>> <CFRETURN "Hello World!"> in myFunction, I'll get "Hello World!" in  
>> the
>> Flash movie.
>>
>>
>>
>> I hope this clarifies the issue.
>>
>>
>>
>> Is there an XML setting somewhere I need to worry about? Is there  
>> something
>> I have to change in CF8 Administrator (besides the obvious Enable  
>> Flash
>> Remoting)?
>>
>>
>>
>> Thank you all.
>>
>>
>>
>> JF
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5788
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

=?ISO-8859-1?Q?Re: CFCs c alled from Flex are no t see=69?= =?ISO-8859-1?Q?n g AP PL IC AT ION, SE SSION, or othe=72?= =?ISO-8859-1?Q? sha red-scope v a riable s=E2=E2=5F?=

by Bugzilla from tom.chiverton@halliwells.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Saturday 21 Feb 2009, Stefan Richter wrote:
> Flash and CF I discover new issues or stupidly difficult tasks (ever
> tried to set up Remoting over SSL in Flex by following the docs?)
> such as this one described here.

If you have some ideas about how to improve this area, please let me know
(here or directly) and I can pass them to the docs team.
They're fairly good about fixing things once they become aware of them.

Alternatively, comment on the livedocs directly.

> much more smoothly without requiring rocket scientific skills for both
> Flex and CF.

I didn't find it that hard, though it was a while ago.

--
Tom Chiverton
Helping to ambassadorially target fourth-generation back-end holistic
experiences

****************************************************

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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners.  We use the word “partner” to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority.

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 2500.

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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5794
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

=?ISO-8859-1?Q?RE:_CFCs_c _alled_fro m_Flex_are _no_t_=73?= =?ISO-8859-1?Q?eei n_g_AP_PL_ IC__AT_ION ,_SE_SSION ,_=6F?= =?ISO-8859-1?Q?r_other _sha_red-s cope_v__a_ riable_s=E2=E2?= =?ISO-8859-1?Q? =5F?=

by Jordan Farr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks everybody for your feedback. I took my code as is to another machine and it worked. I have no explanation for why that is.

 

Cheers.

 

JF
 

> Date: Mon, 23 Feb 2009 14:34:31 +0000
> Subject: Re: CFCs c alled from Flex are no t seein g AP PL IC AT ION, SE SSION, or other sha red-scope v a riable sââ_
> From: tom.chiverton@...
> To: flex@...
>
>
> On Saturday 21 Feb 2009, Stefan Richter wrote:
> > Flash and CF I discover new issues or stupidly difficult tasks (ever
> > tried to set up Remoting over SSL in Flex by following the docs?)
> > such as this one described here.
>
> If you have some ideas about how to improve this area, please let me know
> (here or directly) and I can pass them to the docs team.
> They're fairly good about fixing things once they become aware of them.
>
> Alternatively, comment on the livedocs directly.
>
> > much more smoothly without requiring rocket scientific skills for both
> > Flex and CF.
>
> I didn't find it that hard, though it was a while ago.
>
> --
> Tom Chiverton
> Helping to ambassadorially target fourth-generation back-end holistic
> experiences
>
> ****************************************************
>
> 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word “partner” to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority.
>
> 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 2500.
>
> For more information about Halliwells LLP visit www.halliwells.co
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5795
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

Checking MD5 Hash of uploaded file

by Stefan Richter-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


This should be an easy one: how can I check the MD5 hash of an  
uploaded file in Coldfusion?

Use case: Flex app uploads a file and CF converts it, but if the same  
file already exists on the server I want to discard the conversion  
process and return the already converted file from disk. Has someone  
got a code snipped for the MD5 hash check? I've never done that before.

Cheers

Stefan




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5801
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

Re: Checking MD5 Hash of uploaded file

by James Holmes-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Have you tried the hash() function?

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/


2009/2/27 Stefan Richter <stefan@...>:
>
> This should be an easy one: how can I check the MD5 hash of an
> uploaded file in Coldfusion?
>
> Use case: Flex app uploads a file and CF converts it, but if the same
> file already exists on the server I want to discard the conversion
> process and return the already converted file from disk. Has someone
> got a code snipped for the MD5 hash check? I've never done that before.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5802
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

Re: Checking MD5 Hash of uploaded file

by Stefan Richter-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I've used that for passwords, but since it takes a string as input I  
am unsure how to use that to verify a binary file.

Cheers

Stefan



On 27 Feb 2009, at 14:19, James Holmes wrote:

>
> Have you tried the hash() function?
>
> mxAjax / CFAjax docs and other useful articles:
> http://www.bifrost.com.au/blog/
>
>
> 2009/2/27 Stefan Richter <stefan@...>:
>>
>> This should be an easy one: how can I check the MD5 hash of an
>> uploaded file in Coldfusion?
>>
>> Use case: Flex app uploads a file and CF converts it, but if the same
>> file already exists on the server I want to discard the conversion
>> process and return the already converted file from disk. Has someone
>> got a code snipped for the MD5 hash check? I've never done that  
>> before.
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5803
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

Re: Checking MD5 Hash of uploaded file

by listman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


read the file with cffile then hash() that cffile variable, like so

<cffile action="read" file="#fileYouWantToHash#" variable="xFile" />
<cfoutput>#hash(xFile)# should be equal to
#md5_of_fileYouWantToHash#</cfoutput>

Stefan Richter wrote:

> I've used that for passwords, but since it takes a string as input I  
> am unsure how to use that to verify a binary file.
>
> Cheers
>
> Stefan
>
>
>
> On 27 Feb 2009, at 14:19, James Holmes wrote:
>
>> Have you tried the hash() function?
>>
>> mxAjax / CFAjax docs and other useful articles:
>> http://www.bifrost.com.au/blog/
>>
>>
>> 2009/2/27 Stefan Richter <stefan@...>:
>>> This should be an easy one: how can I check the MD5 hash of an
>>> uploaded file in Coldfusion?
>>>
>>> Use case: Flex app uploads a file and CF converts it, but if the same
>>> file already exists on the server I want to discard the conversion
>>> process and return the already converted file from disk. Has someone
>>> got a code snipped for the MD5 hash check? I've never done that  
>>> before.
>>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5804
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37

Re: Checking MD5 Hash of uploaded file

by Stefan Richter-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


oh nice one, thanks.

Stefan


On 27 Feb 2009, at 14:54, rex wrote:

>
> read the file with cffile then hash() that cffile variable, like so
>
> <cffile action="read" file="#fileYouWantToHash#" variable="xFile" />
> <cfoutput>#hash(xFile)# should be equal to
> #md5_of_fileYouWantToHash#</cfoutput>
>
> Stefan Richter wrote:
>> I've used that for passwords, but since it takes a string as input I
>> am unsure how to use that to verify a binary file.
>>
>> Cheers
>>
>> Stefan
>>
>>
>>
>> On 27 Feb 2009, at 14:19, James Holmes wrote:
>>
>>> Have you tried the hash() function?
>>>
>>> mxAjax / CFAjax docs and other useful articles:
>>> http://www.bifrost.com.au/blog/
>>>
>>>
>>> 2009/2/27 Stefan Richter <stefan@...>:
>>>> This should be an easy one: how can I check the MD5 hash of an
>>>> uploaded file in Coldfusion?
>>>>
>>>> Use case: Flex app uploads a file and CF converts it, but if the  
>>>> same
>>>> file already exists on the server I want to discard the conversion
>>>> process and return the already converted file from disk. Has  
>>>> someone
>>>> got a code snipped for the MD5 hash check? I've never done that
>>>> before.
>>>
>>
>>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5805
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37