Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: CFHub
  • Order by date
  1. CFHub

    Hello All, Maybe I shouldn't even

    Examine the original form. It will have a field for entering part numbers.. say it is called &quot;SearchText&quot;. All you need to do is create a new form. It will have the same &quot;action&quot; but instead of a input type=&quot;text&quot; add an input type=&quot;hidden&quot; like: <form...
  2. CFHub

    Check data in database one row at a time

    There is a method to loop through each row as well. <cfquery datasource=&quot;yours&quot; name=&quot;MyQuery&quot;> SELECT stuff, morestuff FROM MyTable </cfquery> Some useful variables attached to your returned query <cfoutput> Records Returned #MyQuery.RecordCount# Columns Returned...
  3. CFHub

    Create an Array

    That last CFSET is malformed. You can iether CFSET a &quot;temp&quot; variable: <cfset j=3> <CFSET aryName = &quot;LOC&quot; & j> <CFSET aryName=arrayNew(1)> <CFSET temp=arrayappend(aryName,1)> <cfoutput> #aryName[1]# </cfoutput> OR use CFSCRIPT <cfscript> j=3; aryName=&quot;LOC&quot...
  4. CFHub

    SEO w/ CF question

    For SES to work you will want to have all your internal links using the SES format. Remember that CFLOCATION tags and the like are not part of the generated HTML so are invisible to web spiders.
  5. CFHub

    Createodbcdate change date why???

    The standard format (as far as CFML is concerned) is: month/day/year (not day/month/year as you have) You could use LSDateFormat() or simply get used to the &quot;US&quot; format. <!---DateFormat.cfm---> <cfoutput> Here is a list of 'Locales' you can use to format dates <br> <br> <br>...
  6. CFHub

    CFmail - can I send both html and text-only

    Yes, you can set a MIME border. This works for *most people. http://cfhub.com/discussion/viewmessages.cfm?Forum=11&Topic=982
  7. CFHub

    SEARCH

    You may want to try Verity. http://cfhub.com/tutorials/verity/ http://cfhub.com/tutorials/advancedverity/
  8. CFHub

    Replacing between and

    Perhaps your parsing script is using REReplace() rather than REReplaceNoCase()?
  9. CFHub

    Disinct Times from a list of Dates/Times

    There is a script here that breaks the counts (hits in this case) into 10 minute intervals. You could easily change it to 1 hour intervals. http://cfhub.com/forum//index.cfm?FuseAction=Thread&TopicID=2399
  10. CFHub

    Variable

    For the duration of the current request. Custom tags will have access to those variables through the Caller scope. http://cfhub.com/advanced/customtags/caller.cfm
  11. CFHub

    Scopes

    If it was passed as a tag attribute then prefix it with &quot;Attributes&quot;. If you did not pass it in explicitly you can &quot;grab&quot; it from the calling template by prefixing it with &quot;Caller&quot;. http://cfhub.com/advanced/customtags/index.cfm
  12. CFHub

    Using ArraySum on a Query Column

    You can use ArraySum() although the SQL method will likely be faster. #ArraySum(get_results1['q_count'])#
  13. CFHub

    Session Time Outs &amp; Password Caching

    It is possible to use JavaScript to lenthen your session timeouts. That is, if the user still has your site loaded in thier browser then perhaps they don't want to be logged off... Here is a JavaScript that goes and fetches a fresh page (on a timer) so that your session won't expire until...
  14. CFHub

    Query Output Help

    Add a GROUP BY to your query and add the columns you want to group to it. Now you can use CFML's GROUP attribute: <cfoutput query=&quot;GetQuestions&quot; GROUP=&quot;Question&quot;> #Question#<br> <cfoutput> #Answer# #Total# <cfoutput> </cfoutput> A peek at this may help...
  15. CFHub

    Alphabetic list

    Need coffee and an edit button :-) <CFQUERY NAME=&quot;getDomain&quot; DataSource=&quot;mysource&quot;> SELECT name, url, langid, Left(name,1) AS FirstChar FROM domain GROUP BY FirstChar </cfquery> <cfoutput query=&quot;getDomain&quot...
  16. CFHub

    Alphabetic list

    DOH, make that: Left(name,1)
  17. CFHub

    Alphabetic list

    A little GROUPing should help. <CFQUERY NAME=&quot;getDomain&quot; DataSource=&quot;mysource&quot;> SELECT name, url, langid, Right(name,1) AS FirstChar FROM domain GROUP BY FirstChar </cfquery> <cfoutput query=&quot;&quot; group=&quot;&quot;>...
  18. CFHub

    CFMAIL losing whitespace in plain text

    Are you inserting blank lines with #chr(13)##chr(10)#?
  19. CFHub

    Auto-Populate Fields

    Try iether the TwoSelectsRelated tag from the Macromedia dev exchange or Q-Forms over at PengoWorks.com.
  20. CFHub

    sessions timing out way too early!

    It is possible that the site administrator has set the session timeout to ten minutes.. If you can't get the administrator to change that value you may want to try a JavaScript to extend the session. There are many such tags in the macromedia developers exchange in addition to this one...

Part and Inventory Search

Back
Top