CFHTTP and Caching
I am getting problems with CFHTTP and caching a RSS feed, I cant find out why I am getting the error below ?? Any ideas on what it can be ? This is the error I am getting below even though weather_xml has been defined in the application.cfm page i.e. CFSET APPLICATION.weather_xml =XMLParse(cfhttp.FileContent) ERROR IS Element WEATHER_XML is undefined in APPLICATION. My application.cfm page is cfset Application.TimeStamp=#TimeFormat(now(), 'hh:mm:ss')# CFIF (APPLICATION.TimeStamp EQ ) OR (DateDiff(n, APPLICATION.TimeStamp, TimeFormat(NOW(), hh:mm:s)) GT 20) CFSET APPLICATION.TimeStamp = CreateTime(TimeFormat(NOW(), hh), TimeFormat(NOW(), mm), TimeFormat(NOW(), s)) cfhttp url=http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/3314.xml; method=GET resolveurl=No/cfhttp CFSET APPLICATION.weather_xml =XMLParse(cfhttp.FileContent) /CFIF My weather page is head /head body cfdump var=#application.weather_xml# cfoutput img src=#application.weather_xml.rss.channel.image.url.xmlText# alt=#application.weather_xml.rss.channel.item.DESCRIPTION.xmlText# cfloop index=x from=1 to=#ArrayLen(application.weather_xml.rss.channel.item)# br #replace(application.weather_xml.rss.channel.item[x].title.xmlText, ',', 'br', 'ALL')# br /cfloop /cfoutput ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295317 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Set or lengthen the Time-Out on an image ALT tag or workaround?
Hi, I need help please! I have fields with images next to them used as tooltips, I'm using the ALT but the problem io have the users have lenthy text they want to display over the images. The ALT works fine but it time-out which does not allow users to read the full tooltip text! Is there a way i can set the lenght or a workaround or another way? Please Assist! Regards ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295318 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Set or lengthen the Time-Out on an image ALT tag or workaround?
On Dec 24, 2007 1:18 AM, ismail cassiem [EMAIL PROTECTED] wrote: Hi, I need help please! I have fields with images next to them used as tooltips, I'm using the ALT but the problem io have the users have lenthy text they want to display over the images. The ALT works fine but it time-out which does not allow users to read the full tooltip text! Is there a way i can set the lenght or a workaround or another way? you're trying to use an attribute that's not meant to be a true tool tip as a tool tip. if you want a tooltip, check a site like dynamicdrive.com or one of the many jQuery tooltip plugins: http://www.codylindley.com/blogstuff/js/jtip/ -- Scientists tell us that the fastest animal on earth, with a top speed of 120 feet per second, is a cow that has been dropped out of a helicopter. - Dave Barry ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295319 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Set or lengthen the Time-Out on an lt;image ALTgt; tag or workaround?
Wow Thanks it looks great the only thing is I dowloaded the demo but have no clue how to incorporate it? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295320 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFHTTP and Caching
Ian, This is the error I am getting below even though weather_xml has been defined in the application.cfm page i.e. CFSET APPLICATION.weather_xml =XMLParse(cfhttp.FileContent) ERROR IS Element WEATHER_XML is undefined in APPLICATION. My application.cfm page is cfset Application.TimeStamp=#TimeFormat(now(), 'hh:mm:ss')# CFIF (APPLICATION.TimeStamp EQ ) OR (DateDiff(n, APPLICATION.TimeStamp, TimeFormat(NOW(), hh:mm:s)) GT 20) CFSET APPLICATION.TimeStamp = CreateTime(TimeFormat(NOW(), hh), TimeFormat(NOW(), mm), TimeFormat(NOW(), s)) cfhttp url=http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/3314.xml; method=GET resolveurl=No/cfhttp CFSET APPLICATION.weather_xml =XMLParse(cfhttp.FileContent) /CFIF The way that logic reads, the Application.TimeStamp will always be less than 20 the first time the application is loaded--so your CFHTTP tag will never run. Change the code to something like: cfif not structKeyExists(Application, TimeStamp) or (dateDiff(n, Application.TimeStamp, now()) gt 20) cfset Application.TimeStamp = now() / cfhttp url=http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/3314.xml; method=GET resolveurl=No/cfhttp cfset Application.weather_xml = xmlParse(cfhttp.FileContent) / /cfif There's no need to convert your Application.TimeStamp variable to any specific formatting--you can just set it to now(). -Dan ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295321 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Send Blowfish-encoded string to PHP
Unfortunate as it is, but I need to send a string encrypted with Blowfish over to a PHP page, decrypt it there and use it there. Let's say: cfset x = encrypt(var,key,blowfish,hex) cfset redirectTo('som_page/?v=#x#') where redirectTo simply redirects the page over to some place and sends the encoded value over with it. Now, in Coldfusion I could easily do cfset x = decrypt(var,key,blowfish,hex) How can this be accomplished in PHP (using mcrypt library for instance)? All I get back is a bunch of unreadable characters :( ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295322 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Send Blowfish-encoded string to PHP
where redirectTo simply redirects the page over to some place and sends the encoded value over with it. How can this be accomplished in PHP (using mcrypt library for instance)? Something is not clear: why does it has to be done in PHP since apparently it is not done yet, and you seem to do not know how to do it? As far as redirect is concerned, you may use CFLOCATION Now for the question about how to do it in PHP, you would have more luck in some PHP group I suppose. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295323 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CF Image question...
I'd like to do something similar. In my case, drive space is limited. So, I'd really like to store the image once, but then control how it is displayed totally on the fly. I'd like 3 options.. 1) Display as thumbnail 2) Display full size for web 3) download original picture for printing I'm not super concerned about speed, I just hate all the manual processing and having to upload images into 3 directories (original, display, thumbnail) as I am doing now. Plus, I am rapidly running out of drive space. Any suggestions would be greatly appreciated. My photo directory (about a thousand pictures now) is falling behind because I have such a manual process now. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295324 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
WebAssist DataBase Search extension doesnt work!
Hi: I use DW8/CF8 and I tried to use this DW8 extension(WebAssist Database Search version 1.4.1) to make the search for the website. But the problem is at the end when I apply (I click finish) it returns an error about a javascript. Anyone has used it? Anyone has the same problem? Thanks ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295325 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: JREE Servers (was Session Management - sticky sessions)
On Dec 23, 2007 11:13 PM, Brad Wood [EMAIL PROTECTED] wrote: I'll admit, it's nice how well CF simplifies the messy stuff, but messing with the mutli-server install has a way of dumping you waist-deep with the unfamiliar (and previously hidden) world of Java. True. I prefer the multiserver install because I have a Java background and I like the extra level of control and flexibility. The JRE (or SDK) runs on the OS. This is what defines what version of Java you are on. Would it best be described as a compiler, interpreter, a VM, or?? The VM is the Virtual Machine that interprets the Java bytecode and (on some JVMs like Sun's HotSpot system) compiles bytecode to machine code for extra performance. The JRE is the Java Runtime Environment which includes the JVM as well as all of the libraries needed to run (most) Java applications. This is also referred to as J2SE and, now, Java SE (Standard Edition) since we're a long way past Java 2. The JDK is the Java Development Kit and includes the compiler and some other stuff (as well as the JRE). Then there's J2EE which is now known as Java EE - Enterprise Edition. This includes all of the additional libraries and tools for writing Enterprise Java Beans and all of the optional stuff in the EE spec above and beyond the SE spec. Then your app server runs on that. This is JRun, or WebShpere or whatever. (This is the J2EE part, right?) Yes, a Java EE app server runs on top of the JRE and provides all of the libraries etc that are part of EE (above and beyond SE). But Tomcat - a Servlet container - also runs on top of the JRE. Think of a Servlet container as a (fairly small) subset of a Java EE app server. Then your CF instance(s) are deployed to the app server (possibly as an EAR or a WAR). Right, CF can run on any Servlet container such as Tomcat or any Java EE app server. A WAR can be deployed on a Servlet container. An EAR requires a Java EE server. Hope that helps? -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295326 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Set or lengthen the Time-Out on an image ALT tag or workaround?
you're trying to use an attribute that's not meant to be a true tool tip as a tool tip. if you want a tooltip, check a site like dynamicdrive.com or one of the many jQuery tooltip plugins: http://www.codylindley.com/blogstuff/js/jtip/ and/or use the title attribute on the image in addition to the alt tag -- title actually is intended to be a tool tip, although depending on your users, it may still crop part of the text. I don't know where different browsers clip the attributes, but I'd guess there's a good chance they'll allow a longer title than alt. But I know I've seen them cut title attributes short too. ike -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 503.236.3691 http://onTap.riaforge.org ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295327 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Set or lengthen the Time-Out on an image ALT tag or workaround?
On Dec 24, 2007 1:20 PM, s. isaac dealey [EMAIL PROTECTED] wrote: you're trying to use an attribute that's not meant to be a true tool tip as a tool tip. if you want a tooltip, check a site like dynamicdrive.com or one of the many jQuery tooltip plugins: http://www.codylindley.com/blogstuff/js/jtip/ and/or use the title attribute on the image in addition to the alt tag -- title actually is intended to be a tool tip, although depending on your users, it may still crop part of the text. I don't know where different browsers clip the attributes, but I'd guess there's a good chance they'll allow a longer title than alt. But I know I've seen them cut title attributes short too. I think the title attribute times out the same as the alt attribute (but i do agree that it's the more correct option of the 2 choices). I suggested the js solution because he was apparently looking for a popup tooltip that persisted for a longer period of time. I don't think title will do that for him (?) -- Scientists tell us that the fastest animal on earth, with a top speed of 120 feet per second, is a cow that has been dropped out of a helicopter. - Dave Barry ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295328 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: JREE Servers (was Session Management - sticky sessions)
Hope that helps? Very much so-- thanks. I need to find (or make) a big Venn diagram that shows all these relations... ~Brad ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295329 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Set or lengthen the Time-Out on an image ALT tag or workaround?
I think the title attribute times out the same as the alt attribute (but i do agree that it's the more correct option of the 2 choices). I suggested the js solution because he was apparently looking for a popup tooltip that persisted for a longer period of time. I don't think title will do that for him (?) Oh maybe I was confused... There seemed to be a mild language barrier issue and I was inferring (maybe incorrectly) that time out was being used to describe the character limit, rather than the actual display duration, simply because he mentioned the users wanting to enter lots of text and not being able to read it all. But ja, any number of options aside from alt. Title may not get them any closer to what they really want, so the js may be what works for them. I honestly have no idea how the browsers determine how long the alt or title text displays or how many characters to show -- although I do know IE has a setting for always expand alt text which seems to imply that there are situations in which the alt text is just omitted. I'm guessing that's not the case with title. -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 503.236.3691 http://onTap.riaforge.org ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295330 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CF Image question...
The thing I wish it would do is add a permanent watermark on uploaded images instead of only on temp png while being shown. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295331 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Thoughts on my version of a DAO
Merry Christmas all. Don't ask why I'm up at 5 in the morning on Xmas day! I've written my own version of a DAO and have been using this for my latest project and have found it to be very nice to use albeit not perfect. I would love peoples' criticisms and comments. http://www.adrianlynch.co.uk/post.cfm?postID=21 Thanks. Adrian Lynch ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295332 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4