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. khazmir

    .value will not read multi-select fields correctly...what will?

    It sounds like problem is more with JavaScript than VBScript. Here's an example of how to get ALL the values: <html> <head> <script type=&quot;text/javascript&quot;> function validate() { var x = new Array(); for (var i = 0; i < document.Form1.numbers.options.length; i++) if...
  2. khazmir

    Select Case Question

    If you don't know the actual values, I think you will have to use an If Then Else statement instead of the Select Case statement. Select Case will execute statements based on the value of an expression. You can include more than one value, but you cannot evaluate a condition. Select Case MyVar...
  3. khazmir

    &gt;ERROR when I tried to use the Send method of CDO!!

    You code looks perfect to me. Try testing your page on a different server. Also, post your question to the Microsoft Active Server Pages (ASP) Forum; maybe someone there can help.
  4. khazmir

    form field max size

    Textarea does not have a maxlength attribute, so you'll need to add some javascript to count and limit the characters. If you do not want to write your own script, http://javascript.internet.com/ has a number of free scripts that limit text area. Hope this helps.
  5. khazmir

    Accessing URL string with it's form parameters

    Let's say this is your URL: http://www.results.asp?pos=programmer&nam=Albuckj2 <% Response.Write(Request.ServerVariables(&quot;Query_String&quot;)) %> would give you pos=programmer&nam=Albuckj2 <% Response.Write(Request.ServerVariables(&quot;Server_Name&quot;) &...
  6. khazmir

    &gt;ERROR when I tried to use the Send method of CDO!!

    Post your code JoJoH.
  7. khazmir

    &gt;ERROR when I tried to use the Send method of CDO!!

    I had this problem before and it had to do with permissions. You need to change the permissions to the Machinekeys folder and to the keys to allow the Administrators group and System account to have full control. I don't remember exactly how to do it, but you should be able to find details at...
  8. khazmir

    Passing a parameter into a subroutine

    It sounds like you are trying to process your script client side so you may have to use JavaScript instead of VBScript Maybe something like this: <script type=&quot;text/javascript&quot;> function sortFunc(url) { alert(&quot;newURL is currently &quot; + url) } </script> <select...
  9. khazmir

    Beginner in ASP

    You could start with this tutorial; it's pretty decent: http://www.w3schools.com/asp/asp_syntax.asp
  10. khazmir

    Trim right Characters

    Hey onpnt, it doesn't matter where the idea originated. You caught my error and posted code that works in the end. Take a bow! :)
  11. khazmir

    Trim right Characters

    ...and on that note, I'm definitely giving you a star!
  12. khazmir

    Trim right Characters

    You're right onpnt. Just checked it and was about to write back. Thanks!
  13. khazmir

    Error:The @ command

    Try a space between &quot;@&quot; and &quot;language&quot;.
  14. khazmir

    Trim right Characters

    You can still use the &quot;Left&quot; function even though the name is variable in length. If you're sure it will always be four characters Left(string, Len(string - 4) otherwise, you should search for the &quot;.&quot; as the others suggested (probably better in the long run) Left(string...
  15. khazmir

    Horrible Tables!!

    The width attribute of the <td> is deprecated in favor of style sheets. I think they consider this the version 2. Glad you were able to fix your problem. :)
  16. khazmir

    Horrible Tables!!

    Are you defining the <td> width in pixels or as a percentage? Also, did you set the width of the table? Post your code and maybe we can help.
  17. khazmir

    Pinging from ASP

    Here's a script I got from ASPFAQ.com: <% Response.Buffer = true %> <% url = &quot;www.espn.com&quot; Set objWShell = CreateObject(&quot;WScript.Shell&quot;) Set objCmd = objWShell.Exec(&quot;ping &quot; & url) strPResult = objCmd.StdOut.Readall() set objCmd =...
  18. khazmir

    How to send link back to same page?

    Glad I could help and thanks for the star. If you feel a post has been helpful to you, you give the poster a star/click on the link at the bottom of their post to cast a vote for &quot;TipMaster Of The Week&quot;. You don't need to be the one who asked the question to vote.
  19. khazmir

    Need help creating a table search

    I think to display the values you either need to add &quot;.value&quot; <%=RSObj.Fields(&quot;LastName&quot;).value%> or remove &quot;.Fields&quot; <%=RSObj(&quot;LastName&quot;)%>
  20. khazmir

    Loop through DBase until it finds matching..?!

    Noticed I was having a very bad variable syntax moment in my previous post: strSQL = &quot;SELECT * FROM Items where rsItem(&quot;Name&quot;) = sName;&quot; should have been strSQL = &quot;SELECT * FROM Items where Name = '&quot; & sName & &quot;'&quot;

Part and Inventory Search

Back
Top