Event gateways for dummies

This is a discussion on "Event gateways for dummies" within the Other Programming Languages section. This forum, and the thread "Event gateways for dummies are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Other Programming Languages

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 18th, 2007, 09:42
New Member
Join Date: Jun 2007
Location: London
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Event gateways for dummies

Hello,

I am trying to get my head round the concept of event gateways. I have a CFC on my local host in the gateway/cfc folder called weather.cfc. This CFC asks for a user's city, and then calls a weather's webservice to get the weather details for that city.

What I don't know how to do us to use it in my cfm page. Please explain as if you are talking to a two-year old. Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 18th, 2007, 09:47
New Member
Join Date: Jun 2007
Location: London
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Event gateways for dummies

To help you understand what I am trying to acheive better, my call to the event gateway is as follows:

Code: Select all
<h1>Weather in your city</h1>
<p>This is a test of the weather gateway.</p>
<cfscript>
   status = false;
   props = structNew();
   props.cfcpath="C:\CFusionMX7\gateway\cfc\ecamples\mesnu\weather.cfc";
   props.method="enter";
   props.OriginatorID=CGI.SCRIPT_NAME;
   props.Message="TW13 5JN";
   props.file="gateway_test";
   props.type="warning";
   status = SendGatewayMessage("Weather", props);
   if (status IS True) 
      WriteOutput('Event Message "#props.Message#" has been sent.');
</cfscript>
Really, what I want to get is the value returned by the CFC.

Last edited by karinne; Jul 18th, 2007 at 14:12. Reason: Please use [code]...[/code] tags when displaying code!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
cfevent

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS for dummies. mcdanielnc89 Web Page Design 13 Jan 15th, 2008 20:32
Dreamweaver8 Scrollable text for Dummies dench82 Scripts and Online Services 12 May 3rd, 2007 17:24
EVENT: SPARK - Flash Event Flasher Flash & Multimedia Forum 0 Nov 15th, 2005 10:08
xml for dummies spinal007 Other Programming Languages 2 Mar 15th, 2005 11:06
MySQL for dummies (read: ME) Tim356 Databases 8 Jun 29th, 2004 23:44


All times are GMT. The time now is 16:17.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42