Using CFHTTP to grab a Google News RSS feed
Hi, I have a function that has loon worked just fine and recently stopped. It hangs when it tries to access news.google.com using CFHTTP. Does anyone know if something changed at google to cause this problem. My code to grab the fee is as follows. cfhttp url=http://news.google.com/?q=hipposoutput=rss; method=GET resolveurl=No charset=utf-8 useragent=Firefox/cfhttp CFOUTPUT #cfhttp.FileContent# /CFOUTPUT If I switch to Yahoo news, it works fine as it does for just about any other site. Problem with Yahoo news is that after a few refreshes, I start getting error messages from Yahoo instead of the news feed. I'm happy to sign up or purchase the feed if that is necessary, I just need to get it working again. Thanks. ~| 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:326270 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Measuring the pixel length of a piece fo text.
Hi, I'm trying to take a piece of a longer text and display it so that it is exactly 4 lines long and 200 pixels wide. If I use the regular text string functions (right, left, mid, etc.) I can create 4 lines with a certain number of characters, but depending on the text, sometimes they are too long or so short that I could have fit another word on the line. Is there a function that takes into account the actual linear length in pixels of a line of text formatted in the current style? Also the original text could have HTML codes in it, so I would want to ignore these when selecting the text so that I don't count non-displaying characters or leave open ended HTML in my page. If I have the wrong approach, any guidance would be appreciated. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318702 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4