Thanks for that, excellent makes sense!!

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 23 February 2001 13:46
To: CF-Talk
Subject: RE: Multible http:// requests:


How about -

1) Get the recordset from your database as you said

then in the same CF page,

2) Use CFHTTP with a POST operation, something like -

<cfquery name="qry_coordinates" ...>
  SELECT   Longtitude, latitude, speed
  FROM     dbo.stats
  WHERE    veichleID = #relationshipID#
</cfquery>

<cfhttp url="http://www.getMappingServer.com/map.exe">
        <cfhttpparam name="longitude" type="formfield"
value="#qry_coordinates.Longitude#">
        <cfhttpparam name="latitude" type="formfield"
value="#qry_coordinates.Latitude#">
        <cfhttpparam name="speed" type="formfield"
value="#qry_coordinates.speed#">
</cfhttp>

Then you will have a variable called CFHTTP.FileContent containing the
output of getMappingServer.com/map.exe

Have a look in the CFStudio docs for CFHTTP - I'm sure you'll find something
in there that helps.

Good Luck

Alistair Davidson
Senior Web Developer
Rocom New Media
www.rocomx.net
[EMAIL PROTECTED]


-----Original Message-----
From: John McCosker [mailto:[EMAIL PROTECTED]]
Sent: 23 February 2001 13:37
To: CF-Talk
Subject: Multible http:// requests:


Can anyone help me with this.

>From a database I want to request a recordset,

E.g    SELECT   Longtitude, latitude, speed
       FROM     dbo.stats
       WHERE    veichleID = #relationshipID#

OK I can do this with a select box within a form, but!

I want to send the #lontitude#, #latitude# and #speed# values to a different
server to get a map based on the cordinates, say
""//www.getMappingServer.com/map.exe once I get them.

Now I suspect that my form action like so will not work because the second
http request has nothing to request until it gets the data returned by my
query from my action template.

<form action="getCo-rdinates.cfm?http//www.getMappingServer.com/map.exe>

What is the right way to do this, I'm sure its very simple but I just cannot
think of a solution?

Thank you world!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to