[flexcoders] Desperate Times...Desprate Messures: What is sent by HTTPRequest?

2008-12-08 Thread wkolcz
I am just trying to send 4 parameters over to a CFC or CFM page to insert into 
the database and both WebService and HTTPRequest are giving me fits. 

Ok here is the scenerio:
When the user watches a video, it starts a timer, when the user either exits 
the page or clicks the 'stop' button it triggers a function that sends out 3 
pieces of info: what video, how long, and whether they clicked stop or left. I 
am packaging that information into an Object and sending it to a .cfm page with 
a query on it, ready to insert.

What exactly is my .cfm page 'seeing' sent to it? Are they form., url., or just 
the stuct name?

Here is my AS code:
trackInfo.duration =  myTimer.currentCount;
trackInfo.action = Video Stopped;
trackInfo.source = source;
var service:HTTPService = new HTTPService();
service.url = https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm;;
service.method = POST;
service.addEventListener(ResultEvent.RESULT, countHandler);
service.addEventListener(FaultEvent.FAULT, alertFault);
service.send(trackInfo);

How should I constuct the query on the tracker.cfm page? Something like:

cfquery name=countIt datasource=#request.dsn#
Insert Into tracker (clickCount, duration, action, videoFile, 
datePlayed)
VALUES(1, #trackInfo.duration#, '#trackInfo.action#', 
'#trackInfo.source#', #Now()#)
/cfquery



RE: [flexcoders] Desperate Times...Desprate Messures: What is sent by HTTPRequest?

2008-12-08 Thread Tracy Spratt
With POST, it should be seeing form parameters, in name=value pairs.
I do not know CF, but in asp.net, the parameters would be available
through Request.Form(action)

 

What is the tracker.cfm page returning? 

 

Have you given up on the WebService?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wkolcz
Sent: Monday, December 08, 2008 3:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Desperate Times...Desprate Messures: What is sent
by HTTPRequest?

 

I am just trying to send 4 parameters over to a CFC or CFM page to
insert into the database and both WebService and HTTPRequest are giving
me fits. 

Ok here is the scenerio:
When the user watches a video, it starts a timer, when the user either
exits the page or clicks the 'stop' button it triggers a function that
sends out 3 pieces of info: what video, how long, and whether they
clicked stop or left. I am packaging that information into an Object and
sending it to a .cfm page with a query on it, ready to insert.

What exactly is my .cfm page 'seeing' sent to it? Are they form., url.,
or just the stuct name?

Here is my AS code:
trackInfo.duration =  myTimer.currentCount;
trackInfo.action = Video Stopped;
trackInfo.source = source;
var service:HTTPService = new HTTPService();
service.url =
https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm;;
service.method = POST;
service.addEventListener(ResultEvent.RESULT, countHandler);
service.addEventListener(FaultEvent.FAULT, alertFault);
service.send(trackInfo);

How should I constuct the query on the tracker.cfm page? Something like:

cfquery name=countIt datasource=#request.dsn#
Insert Into tracker (clickCount, duration, action,
videoFile, datePlayed)
VALUES(1, #trackInfo.duration#, '#trackInfo.action#',
'#trackInfo.source#', #Now()#)
/cfquery

 



RE: [flexcoders] Desperate Times...Desprate Messures: What is sent by HTTPRequest?

2008-12-08 Thread wkolcz
Not necessarily giving up, but the internet is fruitless and not anyone in the 
Adobe Forums has chimed it, and you are the only one on here. Unfortunately for 
me, I need this thing running by Wednesday. So I am exploring both options 
right now. 

Which ever one works first, will be for the demo on Wednesday.


From: Tracy Spratt [EMAIL PROTECTED]
Sent: Monday, December 08, 2008 12:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Desperate Times...Desprate Messures: What is sent by 
HTTPRequest? 

With POST, it should be seeing form
parameters, in name=value pairs.  I do not know CF, but in asp.net, the
parameters would be available through Request.Form(action)   What is the 
tracker.cfm page returning?Have you given up on the WebService?   Tracy   

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wkolcz
Sent: Monday, December 08, 2008
3:16 PM
To:flexcoders@yahoogroups.com
Subject: [flexcoders] Desperate
Times...Desprate Messures: What is sent by HTTPRequest?   

I am just
trying to send 4 parameters over to a CFC or CFM page to insert into the
database and both WebService and HTTPRequest are giving me fits. 

Ok here is the scenerio:

When the user watches a video, it starts a timer, when the user either exits
the page or clicks the 'stop' button it triggers a function that sends out 3
pieces of info: what video, how long, and whether they clicked stop or left. I
am packaging that information into an Object and sending it to a .cfm page with
a query on it, ready to insert.

What exactly is my .cfm page 'seeing' sent to it? Are they form., url., or just
the stuct name?

Here is my AS code:

trackInfo.duration =  myTimer.currentCount;

trackInfo.action = Video Stopped;

trackInfo.source = source;

var service:HTTPService = new HTTPService();

service.url = https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm;;

service.method = POST;

service.addEventListener(ResultEvent.RESULT, countHandler);

service.addEventListener(FaultEvent.FAULT, alertFault);

service.send(trackInfo);

How should I constuct the query on the tracker.cfm page? Something like:

cfquery name=countIt
datasource=#request.dsn#

Insert Into
tracker (clickCount, duration, action, videoFile, datePlayed)

VALUES(1, #trackInfo.duration#, '#trackInfo.action#',
'#trackInfo.source#', #Now()#)

/cfquery