Web Design and Development Forums

Event gateways for dummies

This is a discussion on "Event gateways for dummies" within the Java, JSP, Cold Fusion section. This forum, and the thread "Event gateways for dummies are both part of the Program Your Website category.

Old Jul 18th, 2007, 09:42   #1 (permalink)
New Member
 
Join Date: Jun 2007
Location: London
Posts: 6
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.
tallgal2007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jul 18th, 2007, 09:47   #2 (permalink)
New Member
 
Join Date: Jun 2007
Location: London
Posts: 6
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!
tallgal2007 is offline  
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
Rate This Thread
Rate This Thread:

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 CSS Forum 13 Jan 15th, 2008 20:32
Dreamweaver8 Scrollable text for Dummies dench82 Design & Development Software 12 May 3rd, 2007 17:24
EVENT: SPARK - Flash Event Flasher Flash & Multimedia Forum 0 Nov 15th, 2005 10:08
xml for dummies spinal007 XML, RSS & Atom 2 Mar 15th, 2005 11:06
MySQL for dummies (read: ME) Tim356 MySQL 8 Jun 29th, 2004 23:44



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 16:25.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59