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

    Help with Javascript/Absolute positioning/CSS please

    Looks ok to me in firefox. -kaht http://www.lessthandot.com
  2. kaht

    Set selected item in Dropdown

    vicvirk, I'm sorry I missed your addendum to this thread. I do not frequent these forums near as much as I used to. Regarding your question, javascript arrays are definitely 0-based. Since I don't have your code that was causing confusion, I can't say exactly what the issue was that you...
  3. kaht

    js get element by page name?

    Sorry, I had no clue what you meant by page name - I just assumed it was the title. Sounds like you got it working though. -kaht http://www.lessthandot.com
  4. kaht

    Convert Array from ASP to JS

    I don't really understand the revision to your question. However, I can tell you this - javascript will not directly understand how to convert an array from the server into a client-side array. You have to do all of that yourself. Here's an example: <script type="text/javascript"> var a =...
  5. kaht

    js get element by page name?

    I think document.title is what you're looking for: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>This is a test</title> <meta http-equiv="Content-Type" content="text/html...
  6. kaht

    Set selected item in Dropdown

    document.getElementById("dlMonth").[!]getElementsByTagName("option")[/!][m].selected = "selected"; If you want to cut out a call to the getElementsByTagName, you can use the native options reference which should perform slightly better, although in this instance you likely won't notice any...
  7. kaht

    Javascript works in IE but not in FF

    [!]document.all[/!] is not supported by firefox. You should give the paragraph tag an id, and then use getElementById to grab a reference to that tag to pass to the function: <h3 onClick="doit([!]document.getElementById('whatever')[/!])" title="Click here to expand/contract!" style="cursor...
  8. kaht

    Syntax for accessing 2 dimensional array?

    If you're uncomfortable using the VBArray object, it supports a method called [!]toArray()[/!], but take note that this will convert your 2 dimensional array into a single dimension array. So, you will have to keep track of how many columns were returned from your query so you'll know when each...
  9. kaht

    problem with tr.nextSibling - not getting expected results

    Take care that some browsers treat white space as text nodes, so in your code above you may end up with twice as many child nodes are you are expecting. -kaht http://www.lessthandot.com
  10. kaht

    Postback question

    Postback is an ASP.Net term, so you're going to have to be a bit more specific of what you mean. I'm not sure what you're wanting to do is easily possible w/o using ASP/ASP.Net. You might want to look into storing your pre-submission data in a cookie if you're wanting to take a javascript...
  11. kaht

    Passing a Javascript value to a Classic ASP page

    Yes, but why would you want to do that? Presumably the textbox would exist inside the form that is being submitted. If that is the case, serverside - just have ASP retrieve the value from the textbox instead of the hidden form field. If you still prefer to use the hidden field method, here is...
  12. kaht

    alter drop down code to radio button

    Hi, can you paste the code have you written so far to convert this to use radio buttons? We can't assist you if we don't have your code to assist. All you have posted is your original code with no changes made. You have tried to take a stab at this before you posted asking for help, right...
  13. kaht

    How to call a function from another ASP page?

    jsteph, I don't use VB when coding ASP (as I assume you do - most ppl do), so the best I can offer is a JScript example. However, I'm sure it's just as easily done in VB. You can include a script file in your ASP page (server side) by using the runat="server" attribute in the script tag: <%@...
  14. kaht

    Objects/variables

    [thumbsup2] -kaht http://www.lessthandot.com
  15. kaht

    Objects/variables

    Well, we've already determined how to capture the id and pass it to the function, so all that is left is to use that id to return the content of the arrays. Let's use your last example, using "printer3". Assuming that the id of the div is going to be "printer3" (in lower case), and that by...
  16. kaht

    JavaScript events

    I don't know that I completely understand what you're trying to do, however since it seems like you're trying to mix javascript and input boxes of type file then you're probably gonna hit a brick wall. The contents of an input box of type file cannot be modified by javascript. -kaht...
  17. kaht

    Scrolling to the top of a div

    try out the scrollIntoView method, it might simplify what you're trying to do: http://www.java2s.com/Code/JavaScriptReference/Javascript-Methods/scrollIntoView.htm -kaht http://www.lessthandot.com
  18. kaht

    Objects/variables

    Yes, your dropdownmenu is passing a reference to the image object that is being hovered over. Use that reference to find the parent div. Since you have not supplied the code for your dropdownmenu function, I will assume that this reference is named obj. function dropdownmenu(obj, e, p, px) {...
  19. kaht

    Ignore Case in validation

    Just make it always check for upper or lower, and then convert the input to match what you choose: function ValidUserInput() { if ($("PromoCode").value[!].toUpperCase()[/!] != "0508T[!]EST[/!]") } alert("The promo code you entered is not valid, please check your code and enter again.")...
  20. kaht

    Javascript Menu Not working, itworked in the beginning!

    Sorry for the late response. I have been spending less and less time here @ TT since the release of our new IT forum (link in my signature), and I missed your reply. Since you've gotten some sample CSS menus off google, let me make another suggestion for good reading material. One reason that...

Part and Inventory Search

Back
Top