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: *

  1. tleish

    XSL: Convert Escaped XML into DOM

    I'm using xsl to parse an xml document. It's a bit rediculous, but part of the xml is escaped and there's currently nothing I can do about it. <parent> <child> &lt;id&gt;1&lt;/id&gt; &lt;name&gt;Test&lt;/name&gt; </child> </parent> I want to be able to read it as: <parent> <child>...
  2. tleish

    RPCSERVER and Groupshield 6.0

    I think we might be having a similar problem. Can you tell me what the hotfix is? If the software is all up to date, then should the hotfix be included? Thank you, -tleish - tleish
  3. tleish

    Email - Change the From

    Try this: === START CODE EXAMPLE === <?php $headline = $HTTP_POST_VARS['Headline']; $text = $HTTP_POST_VARS['Text']; $email_to = &quot;contact@mysite.com&quot;; $email_subject = &quot;Press Release&quot;; $email_message = &quot;The following was submitted as a...
  4. tleish

    CF Calendar - does it exist?

    I know there's a few out there, but essentially they are html/javascript code put into a cf tag, very little cf programming is used. You can take some other html/javascript pop-up calendars and put it in your code. Here's a bunch to look at, the first one is excellent and by far the best...
  5. tleish

    #form.#variable## ?

    I try to avoid using the Evaluate() whenever possible, it takes longer than other methods. The FORM scope is actually a structure. The followinf variable can be writen 1 of 2 ways: #FORM.myvar# #FORM[&quot;myvar&quot;]# or, if you are passing a variable it can be: <cfset string =...
  6. tleish

    Regex Nightmare

    I'm not sure if this id the direction you are going, but you may be interested in this tag: DP_ParseBBML v1.0 The Depressed Press of Boston http://vboston.com/DepressedPress/Content/ColdFusion/CustomTags/DP_ParseBBML/Index.cfm This ColdFusion 4.5+ CFML custom tag translates a simplified...
  7. tleish

    wierd ODBC error..

    Check the Read/Write permissions on the file and/or folder of the db Access file. For more info see: 'Operation Must Use an Updateable Query' Error http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q175168 - tleish
  8. tleish

    New tool - Batch Encrypt coldfusion template files,can decrypt also

    I don't like the idea of having this tool readilly available to my clients who could easily use this tool and decrypt my code. - tleish
  9. tleish

    CFEXECUTE

    Parameters are passed to a bat file through a list format, I believe the delimiter can either be a comma or a space. Then you capture the argument based on it's position in the parameter list with a % in front of it (%1,%2,%3...). The following code below will ping yahoo.com and tek-tips.com and...
  10. tleish

    Is there a function to convert an Integer in hour:minute:second format

    Try this: === START CODE EXAMPLE ===a <cfscript> seconds = 86460 ; midnight = CreateTime(0,0,0); time = DateAdd(&quot;s&quot;, seconds, variables.midnight); hours = Int(seconds / 3600); // Add 0 Left padding for hours under 10 if( variables.hours lt 10 ) hours = 0 &...
  11. tleish

    CFEXECUTE

    My suggestion would be to create a bat file that does most of the work and then pass parmaters to the bat file using CFEXECUTE. If you can get the bat file to work alone, but can't get CFEXECUTE to work with it, I can help you from there. - tleish
  12. tleish

    Array Problem

    One guess would be that the <cflocation> is causing the problem. Try commenting it out and see what happens. - tleish
  13. tleish

    cfinsert problem submitting data to a table

    Try adding ## to the TableName property value: === START CODE EXAMPLE === <cfinsert datasource=&quot;ITEMS&quot; tablename=&quot;#form.item_opt#&quot;> === END CODE EXAMPLE === - tleish
  14. tleish

    Checkbox and radio group validation

    Radio Buttons and checkboxed are different than all the other form fields in that if they are not checked, then the form variable isn't passed at all... not even an empty form variable. So there are 2 ways to doing this. 1. Create a default variable using <cfparam> === START CODE EXAMPLE ===...
  15. tleish

    &lt;cfscript&gt; msgbox

    ...//Your question. if (doyou == true) alert(&quot;Me Too!&quot;); //If your question is answered Yes. else if (doyou == false) alert(&quot;*Sniff* *Sniff* Too Bad!&quot;); //If your question is answered No. //--> </script> '); </cfscript> === END CODE EXAMPLE === - tleish
  16. tleish

    What am I missing here? I have 1

    I only know of a way to do it in Netscape, I'm not aware of a way to do it in IE outside of an ssl connection. - tleish
  17. tleish

    Performing a date difference that also subtracts weekends

    If you are using CF 5 or MX then you can use this function from cflib.org: Weekdays(date1, date2) http://www.cflib.org/udf.cfm?ID=260 If you don't have CF 5, then this code should help you code a Weekday count custom tag: - tleish
  18. tleish

    Can't Display Array

    My guess is that the 2nd loop through the query doesn't have any records, so dimension 2 of the array is never created: <!--- Only populate array if a record was found in 2nd query ---> <cfif #GETEND.recordcount# neq 0> The array still exists, just with no 2nd dimension. To troublshoot this I...
  19. tleish

    How to move left an Integer number (string)?

    Here is one way: === START CODE EXAMPLE === <cfset n = &quot;51841855454&quot;> <cfoutput> #Right(n, Len(n)-4)# </cfoutput> === END CODE EXAMPLE === - tleish
  20. tleish

    Greetings!

    what error are you getting? - tleish

Part and Inventory Search

Back
Top