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 TouchToneTommy 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 bobbybrown69

  1. bobbybrown69

    Dropdown value and StringBuilder

    Here is the modified code. Why would I be receiving this error? Object variable or With block variable not set. Dim descriptionName = descriptionName.value sb.Append("<td><div id=divPreview" & vid & " style='background-color: #F2DA79; border: 1px solid black; padding...
  2. bobbybrown69

    Dropdown value and StringBuilder

    Thanks. I will try runat="server" That will probably do the trick.
  3. bobbybrown69

    Dropdown value and StringBuilder

    Does anyone know how I would do this? '** When a user selects an option from the dropdown box an onChange event modifies the value of the hidden input box below. sb.Append("<input type=hidden name=descriptionName_" + vid + " value=""" & ds.Tables(0).Rows(i).Item("description").ToString() &...
  4. bobbybrown69

    Dropdown Option and StringBuilder

    Does anyone know how I would do this? '** When a user selects an option from the dropdown box an onChange event modifies the value of the hidden input box below. sb.Append("<input type=hidden name=descriptionName_" + vid + " value=""" & ds.Tables(0).Rows(i).Item("description").ToString() &...
  5. bobbybrown69

    For Loop and value of l

    How would I go about allowing oNewTd4 be whatever l+1 is equal to in this for loop. I have it hardcoded as oNewTd4 and oNewTd4 but sometimes it might need to be 6 or 8 or 11, etc. I thought this would work but it didn't. eval("oNewTd"+(l+1)); -------------------------------- for(var l=0...
  6. bobbybrown69

    Code Cleanup and Possible Array

    Thanks so much.
  7. bobbybrown69

    Code Cleanup and Possible Array

    Sometimes after this for loop m will be 4, 5, 6 and up to 12. I need to know if after the loop if the value of l is > 2 then oNewTd2 to oNewTd12 should = document.createElement(""); For example if l = 6 then oNewTd7, oNewTd8, oNewTd9, oNewTd10, oNewTd11, oNewTd12 need to =...
  8. bobbybrown69

    Code Cleanup and Possible Array

    I get a type mismatch error when using your code. var someArray = new Array(null, null, oNewTd2, oNewTd3, oNewTd4, oNewTd5, oNewTd6, oNewTd7, oNewTd8, oNewTd9, oNewTd10, oNewTd11, oNewTd12); someArray[l] = document.createElement(""); But this works. if (l != 12){ oNewTd12 =...
  9. bobbybrown69

    Code Cleanup and Possible Array

    There is too much code to paste in but I am doing a for loop to add an integer 2-12 to the end of oNewTd depending on the value of l I will test the array you gave me. Thanks. -------------------------------------- for(var l=0, field, elm; field=lblFieldOrder[l++];) { oNewTd =...
  10. bobbybrown69

    Code Cleanup and Possible Array

    How can I clean this up (possibly using an array) that would take into effect all instances of l != 2 - 12 i.e. If l != 6 then oNewTd6 - oNewTd12 should = document.createElement(""); i.e. If l != 9 then oNewTd9 - oNewTd12 should = document.createElement(""); New to javascript and not sure how...
  11. bobbybrown69

    Arrays

    I need to know if the value of elms is Null and if Null don't include it in the array. For example if the value of elms["liner_Year4_" + vid] is Null do not include it in the array. Does anyone know how to do this? var elms = document.forms[0].elements; var lts = elms["liner_Year4_" +...
  12. bobbybrown69

    Dropdown Box and Nothing Selected

    What I am trying to figure out is how to know whether the user has chosen something from the descript_" + vid + " dropdown box below? I need to only add + ' ' + comSignature to document.forms[0].elements['linerTextAndDescriptionAdj_" + vid + "'].value if someone has chosen something from the...
  13. bobbybrown69

    &lt;td&gt; &quot;remove or invisible&quot;

    Does anyone know how to make a <td> not appear via javascript or HTML? I have used <td style=visibility: hidden;> but it doesn't actually remove it. There is a textbox in it that is also hidden and I want the <td> to disappear as well or not be seen at all. Any ideas how to do this?
  14. bobbybrown69

    Dropdown Box and Selected Value upon page refresh

    Any idea why I can get the Response.Write to display the number 2147 but when I uncomment this code: 'If 2491 = rsTemp2(&quot;EmployeeID&quot;) Then and use this code: If lHelpDeskEmployees = rsTemp2(&quot;EmployeeID&quot;) Then I can't get the proper value to be selected in the dropdown...
  15. bobbybrown69

    Right Click Menu and Copy &amp; Paste

    I see a bunch of code snippets out on the Internet that allow right click capabilies and I am currently using one. However I can only seem to get the available options to be links to other HTML or ASP pages. What I want is to add as an option when right clicking the capability to Copy and...

Part and Inventory Search

Back
Top