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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by SarkMan

  1. SarkMan

    Converting string to date

    use the cdate function like so cdate("01/15/2004")
  2. SarkMan

    FSO - Simple Problem

    you could use a counter like so ******************************* Dim objFile dim iCounter iCounter=0 For Each objFile in objFolder.Files 'Print out the name If InStr(1, objFile, strSearch, 1) Then iCounter=iCounter+1 Response.Write &quot;<L1><A...
  3. SarkMan

    Trouble with calling sub from a sub..?

    You can do that but you need to use remote scripting or create a web service and use the webservice behavior(webservice.htc is available for download on the microsoft site) Here are some links that may help...
  4. SarkMan

    For Gurus:Error in ASP page in one database but not in another!!

    Have you checked permissions on the stored proc. Maybe the permissions in prod are different than in you test environment.
  5. SarkMan

    WSH Script

    try this Dim Input Input = InputBox(&quot;Enter your name&quot;) MsgBox (&quot;You entered: &quot; & Input)
  6. SarkMan

    Comparing Dates Month and Day only

    use the datediff function Returns the number of intervals between two dates. DateDiff(interval, date1, date2 [,firstdayofweek[, firstweekofyear]]) The DateDiff function syntax has these parts: Arguments interval Required. String expression that is the interval you want to use to calculate...
  7. SarkMan

    Checkbox value

    Since you have a reference to the object passed into the function, you can get any value associated with the object. You can get its name(part detail) in your function as so: <script language=&quot;javascript&quot;> function showInfo (blah){ //var indVal = document.forms.value...
  8. SarkMan

    Selecting top x rows from a cube

    You could use ado and mdx (Multidimensional Expressions) use this link for an into to mdx (use topcount function for your needs) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnolap/html/intromdx.asp?frame=true and here is a link showing vb and ado...
  9. SarkMan

    Checkbox value

    You are passing this.name to the function. Pass this (i.e. onClick=&quot;showInfo(this);&quot;) this passes a reference to the checkbox object. You can then check the value to see if it is checked: blah.checked use this code for testing <TD><INPUT TYPE=&quot;checkbox&quot...
  10. SarkMan

    Type mismatch

    should this KCO(i) = Request.Form(&quot;KCOCodes&quot;)(i) be this KCOCodes(i) = Request.Form(&quot;KCOCodes&quot;)(i)
  11. SarkMan

    Trouble with calling sub from a sub..?

    Add a </script> tag at the end of the last btnLogin_onclick() sub
  12. SarkMan

    simple comparison of 2 text boxes

    First == means they are the same So this statement document.form1.pwd.value == document.form1.pwd2.value says that if pwd=pwd2 then execute the code with in the block. I assumed that you do want them to be not equal to execute the code in the block since you have the alert alert('The passwords...
  13. SarkMan

    simple comparison of 2 text boxes

    try this for your function function ValidateForm(){ if (document.form1.pwd.value != document.form1.pwd2.value) { alert('The passwords did not match'); document.form1.pwd.value = &quot;&quot;; document.form1.pwd2.value = &quot;&quot;; document.form1.pwd.focus()...
  14. SarkMan

    Cannot get ASP page to display

    Is it executing any asp. Try uploading a generic page to see if asp works. like this <% Response.write(&quot;ASP works on this server&quot;) %>
  15. SarkMan

    Cannot get ASP page to display

    yes. It works fine in my browser. What version are you using? I am using IE 6.0

Part and Inventory Search

Back
Top