invoking a cf page from static html via img

2010-02-13 Thread Matthew Smith

I've heard it can be done, but not sure how to do it.

I have just moved some pages and would like to track people going to the old 
stuff.

Can I pass parameters?
The images doesn't have to show up.  It could be a 1 pixel clear gif. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330698
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: invoking a cf page from static html via img

2010-02-13 Thread Matt Quackenbush

Here is a quick overview of how to do it...

-- myHtmlPage.html --

img src=myCFprocessor.cfm alt= width=1 height=1 /

-- myCFprocessor.cfm --

!--- do whatever needs to be done with CF here ---

!--- now serve the image ---
cfcontent type=image/gif file=images/myClearGif.gif /


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330699
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: invoking a cf page from static html via img

2010-02-13 Thread Matt Quackenbush

Oh, and yes, you can pass parameters via the querystring.

img src=myCFprocessor.cfm?param1=fooparam2=bar alt= width=1
height=1 /

On your processor page you would simply reference them as #url.param1# and
#url.param2#.


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330700
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4