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 SkipVought 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: Kush
  • Order by date
  1. Kush

    Looping Through Items in a String

    Thanks so much, MeanGreen! :)
  2. Kush

    Looping Through Items in a String

    I have a String which is a comma spearated list of values. I now need to take each value from this string (while there are still values in the string) and use them in a query one by one. Essentially, I want to loop once for each value in the string. How can I do this? Here's what I want to...
  3. Kush

    Different Sheets within one Excel Spreadsheet

    I am running several queries in my ColdFusion application the results of which I want to store in different sheets within the same Excel Spreadsheet. Can someone please tell me how I can achieve this? Thank you.
  4. Kush

    Accessing a File from user's Hard Disk

    When the user clicks on an Add button, I want it to open the contents of the user's hard disk in a small window like that in Windows and enable the user to include the filename in the textbox of the form and upload a file to the ColdFusion server. How can I facilitate that? I really appreciate...
  5. Kush

    Accssing JavaScript Variable in ColdFusion

    How can I access a JavaScript variable in ColdFusion? For example, if I set a variable var1 in JavaScript as follows, <script language=&quot;javascript&quot;> function f(temp) { var var1; if temp == &quot;Yes&quot; { var1 = &quot;Yes&quot;; } else if YesNo ==...
  6. Kush

    Validating a Numeric Textfield

    How can I validate that the text enterd by the user is numeric? For example, I want to make sure that input_var.value is a number if(input_var.value &quot;is not a number&quot;) { alert('Enter numbers only.'); return false; } Thanks for any help.
  7. Kush

    Size of Textarea field

    Crystal, Thanks for your response. I am using ColdFusion for my application and to restrict the number of characters to 100, I am using the Len() and the Mid() function. The syntax is like this: <CFSET s = Trim(#Form.Name#)> <CFIF Len(s) GT 100> <CFSET s = #Mid(s, 1, 100)#> </CFIF> Kush
  8. Kush

    Size of Textarea field

    Thanks tsdragon. I thought as much.
  9. Kush

    Size of Textarea field

    How can I limit the number of characters that a user can enter in a textarea? For example, in case of a <input TYPE=&quot;text&quot;>, one can use MAXLENGTH attribute to limit the number of charaters a user can enter. But there is no such option for <TEXTAREA>. Any help will be greatly...
  10. Kush

    Deleting Session Variables on Logout

    I am trying to kill all session variables when the user logs out. On Logout, I am taking the user back to the Login Screen and I want to prevent him from going back into the application by clicking on the Back button of the browser. I have the following code in my Logout.cfm, which is giving me...
  11. Kush

    Opening Template in a Frame

    I am writing a ColdFusion application and am using Javascript within it. I am working with 2 frames on my window and have the following two problems. 1. I have a <CFERROR TYPE=&quot;Request&quot; TEMPLATE=&quot;temp.cfm&quot;> in my application.cfm. It's template is currently opening in the...
  12. Kush

    Opening a Template in a Frame

    I am writing a ColdFusion application and am using Javascript within it. I am working with 2 frames on my window and have the following two problems. 1. I have a <CFERROR TYPE=&quot;Request&quot; TEMPLATE=&quot;temp.cfm&quot;> in my application.cfm. It's template is currently opening in the...
  13. Kush

    Accessing CF Variables in a JavaScript Function

    hey iza and iqof188....thanks a lot. Passing the variable through a hidden form field did the trick! I was also able to achieve results using the following as suggested by iza. <cfset m=&quot;hello&quot;> <script language=javascript> function test() {...
  14. Kush

    Accessing CF Variables in a JavaScript Function

    Thanks a lot Iza...but it seems that there is still something that I am not doing quite right. The <CFOUTPUT> around the variable doesn't work. I understand that CF is Server side. Where should I set the cf variable? Should the <CFSET> be within the <FORM> </FORM> tags?
  15. Kush

    Accessing CF Variables in a JavaScript Function

    Can I access a ColdFusion variable in a JavaScript function? For example: <SCRIPT> function f() { alert(&quot;Message is&quot; + m); } <CFSET m = &quot;Hello World&quot;> <CFFORM onsubmit=&quot;return f();&quot; METHOD=&quot;Post&quot;.....> Can I access m in function f? Any...
  16. Kush

    Validating Dates

    I am trying to use the CreateDate(year, month, day) function to create a date after passing it the 3 values and want to throw an error if the date is invalid, e.g, if Feb 30 is passed to it. The problem is that whenever invalid parameters are passed, an error is thrown but I am not able to...
  17. Kush

    &lt;B&gt;Tabs in ColdFusion Pages?&lt;/B&gt;

    Is there a way to incorporate tabs in ColdFusion pages? I want to provide different tabs within a single page that would take the user to different sites. (I mean tabs such as those on the Allaire ColdFusion Forum Home Page. Ths current home page has 4 tabs - Forum, Keyword Search, Faq, and...
  18. Kush

    Determining current time with milliseconds?

    Thanks philcha.
  19. Kush

    Determining current time with milliseconds?

    Can someone tell me how I can use Now() to determine the current time along with milliseconds. By default, Now() returns the time only with seconds. Thanks.
  20. Kush

    How can I link a ColdFusion Page to Microsoft Outlook?

    I want the user to be able to click an icon on a ColdFusion page that should open a new appointment in the Calendar of Microsoft Outlook. Can someone tell me how I can do this? Thanks in anticipation.

Part and Inventory Search

Back
Top