RE: search</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=cf-talk@houseoffusion.com&q=from:%22lsellers%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">lsellers</span></span></a></span> <span class="date"><a href="/search?l=cf-talk@houseoffusion.com&q=date:20000718" rel="nofollow">Tue, 18 Jul 2000 06:56:11 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <PRE> > Hi! > > I'm looking for <title> in CFHTTP.FileContent but I'm > getting errors. Here's my code: > > <cfset Zacetek = FindNoCase > ('<title>',CFHTTP.FileContent,1)> You might want to do some error checking first. The mime type. The content length. Etc. It might not be getting any data. This is some old ugly, unoptimized, brute force code, but It's been working for over a year so.... :) <CFSET t=Bookmark.Title> <CFSET t2=''> <CFSET s=FindNoCase("<title>",CFHTTP.FileContent)> <CFSET e=FindNoCase("</title>",CFHTTP.FileContent)> <CFIF e-s-7 GT 0> <CFSET t2=trim(mid(CFHTTP.FileContent,s+7,e-s-7))> <CFSET t2=Replace("#t2#","|","-","ALL")> <CFSET t2=Replace("#t2#","<","&lt;","ALL")> <CFSET t2=Replace("#t2#",">","&gt;","ALL")> </CFIF> <CFIF len(t2) GT 0> <CFSET t=t2> </CFIF> <CFIF len(t) IS 0> <CFSET t=UCase(Bookmark.URL)> </CFIF> > > What's wrong? > > Bye, > > Iztok > ------------------------------------------------------------------ > ------------ > Archives: <A HREF="http://www.mail-archive.com/cf-talk@houseoffusion.com/">http://www.mail-archive.com/cf-talk@houseoffusion.com/</A> > To Unsubscribe visit > <A HREF="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf</A> _talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. ------------------------------------------------------------------------------ Archives: <A HREF="http://www.mail-archive.com/cf-talk@houseoffusion.com/">http://www.mail-archive.com/cf-talk@houseoffusion.com/</A> To Unsubscribe visit <A HREF="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk</A> or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. </PRE> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg14381.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="index.html#14387">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#14387">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg14389.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg14381.html"><title> search</a></span> <span class="sender italic">Iztok Polanic</span></li> <li><ul> <li class="icons-email tSliceCur"><span class="subject"></span> <span class="sender italic">lsellers</span></li> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="RE: <title> search"> <input type="hidden" name="msgid" value="LPBBKLCDEEMCHIGELIKCEEKBCIAA.lsellers@intrafoundation.com"> <input type="hidden" name="relpath" value="cf-talk@houseoffusion.com/msg14387.html"> <input type="submit" value=" lsellers "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="cf-talk@houseoffusion.com"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search cf-talk"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/cf-talk@houseoffusion.com/">cf-talk - all messages</a></li> <li class="icons-about"><a href="/cf-talk@houseoffusion.com/info.html">cf-talk - about the list</a></li> <li class="icons-expand"><a href="/search?l=cf-talk@houseoffusion.com&q=subject:%22RE%5C%3A+%3Ctitle%3E+search%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg14381.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg14389.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> <a href="#"><img src="/cf-talk@houseoffusion.com/logo.png" alt="cf-talk"></a> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">LPBBKLCDEEMCHIGELIKCEEKBCIAA.lsellers@intrafoundation.com</li> </ul> </div> </body> </html> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9e0e774e3f42f4e0',t:'MTc3NDI3OTcwNw=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>