RE: [flexcoders] HTTPService Error event

2007-10-01 Thread Tracy Spratt
Your call is an update call, but is it returning someithig to Flex
anyway? On all HTTPService calls, I have the backend wrap my data in a
status node, and for update calls, I just return the empty status node
with status="sucess".  This lets me tell the user when the update
happens successfully, or navigate somewhere else, or do whatever I want.

 

If you are not retuning anything, perhaps Flex sees this as a fault.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of George Georgiou
Sent: Sunday, September 30, 2007 4:44 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] HTTPService Error event

 

Hi Scott,

 

I have been through many Flex Tutorials but unfortunately our world
lacks of tutorials for connectivity with ColdFusion. I am an experianced
CF developer but unfortunately I cannot figure out how to proceed with
data through Flex and CF. 

 

Indeed - your way is much easier to write and better to understand than
the one that I have posted. I will keep that one :-) Thanks!

 

But still... the 'fault' function in the HTTPService tag is always
triggered! Even with your own way.

 

How can I handle this? All I want is to be able to 'alert' the users
that there is some kind of error (I know how to get the exact error
message through the event handler) but I have no clue how to trigger
this function if and only if there is some kind of problem in my CFM
file. 

 

any ideas?

 

Thanks,

George



 

On 9/30/07, Scott - FastLane <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

George -

I have not seen this syntax for passing request params to an
HTTPService.  Of course that doesn't mean it is wrong :)  But, here is
how I would do it.

Change button definition to
 
  
then

public function callServer():void
{
var params:Object = new Object();
params.firstName = firstName.text;
...
srv.send(params);
}

hth
Scott 



George Georgiou wrote: 

Hi,

 

I have this code. It works perfect but I would like to get alerted only
when I have some kind of error in my test.cfm file. Instead, the
'errorAlert()' function always is triggered :(

 

Any idea's on how to make this work only when I have problems in my
test.cfm file?

 



http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " layout="absolute"> 

http://myserver.flex/test.cfm <http://myserver.flex/test.cfm>
" 
  fault="errorAlert();"
  method="POST"> 


{firstName.text}
{ lastName.text}
{salary.text} 
{startDate.text}




 
  
 






 




 














 

 



Re: [flexcoders] HTTPService Error event

2007-10-01 Thread George Georgiou
I am playing around with all available ways to achieve this.

It's a good time to ask - in order to deploy an application with cf flash
remoting to a production server, does my hosting provider need to provide
something more than just CF 7.02?

thanks,
George



On 10/1/07, Randy Martin <[EMAIL PROTECTED]> wrote:
>
>Just out of curiosity, why aren't you using flash remoting?
>
> ~randy
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Sheriff
> *Sent:* Sunday, September 30, 2007 3:52 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] HTTPService Error event
>
>
>
>  why not just use a webService, and then only show an error if something
> is wrong.?
>
> - Original Message 
> From: George Georgiou <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Sunday, September 30, 2007 3:43:55 PM
> Subject: Re: [flexcoders] HTTPService Error event
>
>  Hi Scott,
>
> I have been through many Flex Tutorials but unfortunately our world lacks
> of tutorials for connectivity with ColdFusion. I am an experianced CF
> developer but unfortunately I cannot figure out how to proceed with data
> through Flex and CF.
>
> Indeed - your way is much easier to write and better to understand than
> the one that I have posted. I will keep that one :-) Thanks!
>
> But still... the 'fault' function in the HTTPService tag is always
> triggered! Even with your own way.
>
> How can I handle this? All I want is to be able to 'alert' the users that
> there is some kind of error (I know how to get the exact error message
> through the event handler) but I have no clue how to trigger this function
> if and only if there is some kind of problem in my CFM file.
>
> any ideas?
>
> Thanks,
> George
>
>
>
> On 9/30/07, Scott - FastLane <[EMAIL PROTECTED] com<[EMAIL PROTECTED]>>
> wrote:
> >
> >   George -
> >
> > I have not seen this syntax for passing request params to an
> > HTTPService.  Of course that doesn't mean it is wrong :)  But, here is how I
> > would do it.
> >
> > Change button definition to
> > 
> >
> > then
> >
> > public function callServer() :void
> > {
> > var params:Object = new Object();
> > params.firstName = firstName.text;
> > ...
> > srv.send(params) ;
> > }
> >
> > hth
> > Scott
> >
> >
> > George Georgiou wrote:
> >
> >  Hi,
> >
> > I have this code. It works perfect but I would like to get alerted only
> > when I have some kind of error in my test.cfm file. Instead, the
> > 'errorAlert()' function always is triggered :(
> >
> > Any idea's on how to make this work only when I have problems in my
> > test.cfm file?
> >
> > 
> >
> > http://www.adobe. com/2006/ 
> > mxml<http://www.adobe.com/2006/mxml>"
> > layout="absolute">
> >
> >  >   id="srv"
> >   url="http://myserver. flex/test. cfm<http://myserver.flex/test.cfm>"
> >
> >   fault="errorAlert() ;"
> >   method="POST">
> >
> > 
> > {firstName.text}
> > { lastName.text}
> > {salary.text}
> > {startDate.text}
> > 
> > 
> >
> >
> >  
> >   
> >  
> >
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 
> >
> >
> >
>
>
>
>
> --
> Check out
> <http://us.rd.yahoo.com/evt=51201/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE5NWVzZGVyBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDYXV0b3MtbmV3Y2Fy>the
> hottest 2008 models today at Yahoo! Autos.
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.488 / Virus Database: 269.13.35/1039 - Release Date:
> 9/29/2007 9:46 PM
>
> 
>


RE: [flexcoders] HTTPService Error event

2007-09-30 Thread Randy Martin
Just out of curiosity, why aren't you using flash remoting?
 
~randy


   _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sheriff
Sent: Sunday, September 30, 2007 3:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] HTTPService Error event





why not just use a webService, and then only show an error if something is
wrong.?


- Original Message 
From: George Georgiou <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Sunday, September 30, 2007 3:43:55 PM
Subject: Re: [flexcoders] HTTPService Error event





Hi Scott,
 
I have been through many Flex Tutorials but unfortunately our world lacks of
tutorials for connectivity with ColdFusion. I am an experianced CF developer
but unfortunately I cannot figure out how to proceed with data through Flex
and CF. 
 
Indeed - your way is much easier to write and better to understand than the
one that I have posted. I will keep that one :-) Thanks!
 
But still... the 'fault' function in the HTTPService tag is always
triggered! Even with your own way.
 
How can I handle this? All I want is to be able to 'alert' the users that
there is some kind of error (I know how to get the exact error message
through the event handler) but I have no clue how to trigger this function
if and only if there is some kind of problem in my CFM file. 
 
any ideas?
 
Thanks,
George


 
On 9/30/07, Scott - FastLane mailto:[EMAIL PROTECTED]"
[EMAIL PROTECTED] com> wrote: 

George -

I have not seen this syntax for passing request params to an HTTPService.
Of course that doesn't mean it is wrong :)  But, here is how I would do it.

Change button definition to
 
  
then

public function callServer() :void
{
var params:Object = new Object();
params.firstName = firstName.text;
...
srv.send(params) ;
}

hth
Scott 



George Georgiou wrote: 

Hi,
 
I have this code. It works perfect but I would like to get alerted only when
I have some kind of error in my test.cfm file. Instead, the 'errorAlert(-)'
function always is triggered :(
 
Any idea's on how to make this work only when I have problems in my test.cfm
file?
 


http://www.adobe.com/2006/mxml";
\nhttp://www.adobe. com/2006/ mxml" layout="absolute"> 

http://myserver.flex/test.cfm"; \nhttp://myserver.
flex/test. cfm" 
  fault="errorAlert(-) ;"
  method="POST"> 


{firstName.text}
{ lastName.text}
{salary.text} 
{startDate.text}




 
  
 






 




 


















   _  

HYPERLINK
"http://us.rd.yahoo.com/evt=51201/*http://autos.yahoo.com/new_cars.html;_ylc
=X3oDMTE5NWVzZGVyBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDYXV0b3MtbmV3Y2Fy"Ch
eck out the hottest 2008 models today at Yahoo! Autos. 



 


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.488 / Virus Database: 269.13.35/1039 - Release Date: 9/29/2007
9:46 PM
 


Re: [flexcoders] HTTPService Error event

2007-09-30 Thread George Georgiou
Hi Scott,

I have been through many Flex Tutorials but unfortunately our world lacks of
tutorials for connectivity with ColdFusion. I am an experianced CF developer
but unfortunately I cannot figure out how to proceed with data through Flex
and CF.

Indeed - your way is much easier to write and better to understand than the
one that I have posted. I will keep that one :-) Thanks!

But still... the 'fault' function in the HTTPService tag is always
triggered! Even with your own way.

How can I handle this? All I want is to be able to 'alert' the users that
there is some kind of error (I know how to get the exact error message
through the event handler) but I have no clue how to trigger this function
if and only if there is some kind of problem in my CFM file.

any ideas?

Thanks,
George



On 9/30/07, Scott - FastLane <[EMAIL PROTECTED]> wrote:
>
>   George -
>
> I have not seen this syntax for passing request params to an HTTPService.
> Of course that doesn't mean it is wrong :)  But, here is how I would do it.
>
> Change button definition to
> 
>
> then
>
> public function callServer():void
> {
> var params:Object = new Object();
> params.firstName = firstName.text;
> ...
> srv.send(params);
> }
>
> hth
> Scott
>
> George Georgiou wrote:
>
>  Hi,
>
> I have this code. It works perfect but I would like to get alerted only
> when I have some kind of error in my test.cfm file. Instead, the
> 'errorAlert()' function always is triggered :(
>
> Any idea's on how to make this work only when I have problems in my
> test.cfm file?
>
> 
>
> http://www.adobe.com/2006/mxml";
> layout="absolute">
>
>id="srv"
>   url="http://myserver.flex/test.cfm";
>   fault="errorAlert();"
>   method="POST">
>
> 
> {firstName.text}
> {lastName.text}
> {salary.text}
> {startDate.text}
> 
> 
>
>
>  
>   
>  
>
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
>
>
> 
>


Re: [flexcoders] HTTPService Error event

2007-09-30 Thread Scott - FastLane

George -

I figured maybe the way you were passing params was incorrect and thus 
causing the fault event that you are catching.  I don't use ColdFusion, 
I use Java Servlets on the back end.  But, should be very similar.  I 
get the fault event only when the servlet cannot be called at all.  I 
use result codes, error messages, embedded in my application XML 
returned from the back end to indicate application error information.  
So... from my experience, I would guess that your fault event that you 
are catching indicates that your back end is not getting called 
correctly.  Have you put a debugger or tracing in your cfm file and 
verified that it is actually getting called successfully?


hth
Scott

George Georgiou wrote:

Hi Scott,
 
I have been through many Flex Tutorials but unfortunately our world 
lacks of tutorials for connectivity with ColdFusion. I am an 
experianced CF developer but unfortunately I cannot figure out how to 
proceed with data through Flex and CF.
 
Indeed - your way is much easier to write and better to understand 
than the one that I have posted. I will keep that one :-) Thanks!
 
But still... the 'fault' function in the HTTPService tag is always 
triggered! Even with your own way.
 
How can I handle this? All I want is to be able to 'alert' the users 
that there is some kind of error (I know how to get the exact error 
message through the event handler) but I have no clue how to trigger 
this function if and only if there is some kind of problem in my CFM 
file.
 
any ideas?
 
Thanks,

George


 
On 9/30/07, *Scott - FastLane* <[EMAIL PROTECTED] 
> wrote:


George -

I have not seen this syntax for passing request params to an
HTTPService.  Of course that doesn't mean it is wrong :)  But,
here is how I would do it.

Change button definition to

 
then


public function callServer():void
{
var params:Object = new Object();
params.firstName = firstName.text;
...
srv.send(params);
}

hth
Scott



George Georgiou wrote:

Hi,
 
I have this code. It works perfect but I would like to get

alerted only when I have some kind of error in my test.cfm file.
Instead, the 'errorAlert()' function always is triggered :(
 
Any idea's on how to make this work only when I have problems in

my test.cfm file?
 



http://www.adobe.com/2006/mxml
" layout="absolute">

http://myserver.flex/test.cfm
"
  fault="errorAlert();"
  method="POST">
   


{firstName.text}
{ lastName.text}
{salary.text}
{startDate.text}




 
  
 

























 




Re: [flexcoders] HTTPService Error event

2007-09-30 Thread Sheriff
why not just use a webService, and then only show an error if something is 
wrong.?

- Original Message 
From: George Georgiou <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Sunday, September 30, 2007 3:43:55 PM
Subject: Re: [flexcoders] HTTPService Error event









  




Hi Scott,

 

I have been through many Flex Tutorials but unfortunately our world lacks of 
tutorials for connectivity with ColdFusion. I am an experianced CF developer 
but unfortunately I cannot figure out how to proceed with data through Flex and 
CF.


 

Indeed - your way is much easier to write and better to understand than the one 
that I have posted. I will keep that one :-) Thanks!

 

But still... the 'fault' function in the HTTPService tag is always triggered! 
Even with your own way.

 

How can I handle this? All I want is to be able to 'alert' the users that there 
is some kind of error (I know how to get the exact error message through the 
event handler) but I have no clue how to trigger this function if and only if 
there is some kind of problem in my CFM file.


 

any ideas?

 

Thanks,

George



 

On 9/30/07, Scott - FastLane <[EMAIL PROTECTED] com> wrote:





George -

I have not seen this syntax for passing request params to an HTTPService.  Of 
course that doesn't mean it is wrong :)  But, here is how I would do it.

Change button definition to


  
then

public function callServer() :void
{
var params:Object = new Object();
params.firstName = firstName.text;
...
srv.send(params) ;
}

hth
Scott 



George Georgiou wrote: 


Hi,

 

I have this code. It works perfect but I would like to get alerted only when I 
have some kind of error in my test.cfm file. Instead, the 'errorAlert()' 
function always is triggered :(

 

Any idea's on how to make this work only when I have problems in my test.cfm 
file?

 



http://www.adobe. com/2006/ mxml" layout="absolute">


http://myserver. flex/test. cfm"

  fault="errorAlert() ;"
  method="POST"> 


{firstName.text}
{
lastName.text}
{salary.text} 
{startDate.text}





 
  
 






 





 
















 







  
























  

Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html

Re: [flexcoders] HTTPService Error event

2007-09-30 Thread Scott - FastLane

George -

I have not seen this syntax for passing request params to an 
HTTPService.  Of course that doesn't mean it is wrong :)  But, here is 
how I would do it.


Change button definition to


then

public function callServer():void
{
   var params:Object = new Object();
   params.firstName = firstName.text;
   ...
   srv.send(params);
}

hth
Scott

George Georgiou wrote:

Hi,
 
I have this code. It works perfect but I would like to get alerted 
only when I have some kind of error in my test.cfm file. Instead, the 
'errorAlert()' function always is triggered :(
 
Any idea's on how to make this work only when I have problems in my 
test.cfm file?
 



http://www.adobe.com/2006/mxml 
" layout="absolute">


http://myserver.flex/test.cfm "
  fault="errorAlert();"
  method="POST">
   


{firstName.text}
{lastName.text}
{salary.text}
{startDate.text}