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 Mike Lewis 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: gabrielAllen
  • Order by date
  1. gabrielAllen

    Adding a character to string created with an array

    Again, thank you! I relly appreciate the time and effort from both of you. Thanks!
  2. gabrielAllen

    Adding a character to string created with an array

    Thanks all! This seems to work, but what if the last value in the array is null: "(11,12,'',14,'')?
  3. gabrielAllen

    Adding a character to string created with an array

    Thanks! I tried this, but I can't seem to get it to work. Here is an example of what I am using: var newAddress = newAddressList.join(", ").replace(/(,)+/g,", "); It's not working for me.
  4. gabrielAllen

    Adding a character to string created with an array

    Thanks for the repsonse. What would you do in this scenario: var arJoin = new Array("11", "", "13", "14", 15) var myval = arJoin.join(); alert(myval); If I were to use a "," as the separator, my output would look like this: "11,,13,14,15" How can I remove the extra separator if the value is...
  5. gabrielAllen

    Adding a character to string created with an array

    I have an array of address information - 7 elements. I am currently use join() to string these values together, but need to add a "," after each value if it is not null. Also, I only need this for the interior of the string. The last element does not need a ",". Example: Address1, City...
  6. gabrielAllen

    Text field losing focus

    Ok, I will do that. In the meantime, the page in questions calls functions from another *.js that is server-side and returns values that the page-level scripts use. Will this jumping around cause the problem?
  7. gabrielAllen

    Text field losing focus

    Is this what you mean? ... }catch(e) { alert('Unable to connect.'); document.formName.elementName.focus(); } If so, I tried this and didn't work.
  8. gabrielAllen

    Text field losing focus

    I have a page that has a try-catch and alerts the user if a certain criteria isn't met. This criteria is determined with server-side javascript that is 3rd party code, which cannot be modified. Anyway, when loading the page, the first text-box should maintain focus after load and any alerts...
  9. gabrielAllen

    Checking for one of two static passwords

    It's working! Thanks for the help!
  10. gabrielAllen

    Checking for one of two static passwords

    I have a submit button that needs to check for either of two static passwords, which enables a submit button. Currently, I have one password that I create with: var soPasswd = "Password1"; function getsoPasswd() { return soPasswd; } which is in a global *.js. And I have a function in...
  11. gabrielAllen

    5 digit numeric mask and enabling submit

    Yes, that is what happens. Everytime an alpha is inserted, an alert pops. Is this what is supposed to happen?
  12. gabrielAllen

    5 digit numeric mask and enabling submit

    I need to limit the input of a text field to numeric values only. Also, this field has a min/max of 5 characters and enables a submit-button "onkeyup" of the 5th value. How can I accomplish this? Thanks in advance.
  13. gabrielAllen

    Creating a new file from other files...

    p.s. I need to left justify the vendor name... Thanks!
  14. gabrielAllen

    Creating a new file from other files...

    Thanks! Can you explain what is going on? 7.7s? Also, How do I get a 4 character constant in front of the date? The output should be: 123457McBurgers SPCA(Date) Thanks again! Ken
  15. gabrielAllen

    Creating a new file from other files...

    I have an infinite number of incoming files that need to be reformatted and combined into one file. Combining them is easy. My problem I am getting a "|" delimited file of 2 fields, vendor# and vendor name, that I need to create a fixed width record with and be able to add a date to the end of...
  16. gabrielAllen

    focus() not working...

    Hey! the "return(false);" stops the function from working completely. :)
  17. gabrielAllen

    focus() not working...

    Well, both use the addRow function above. Here is what I use on the "onKeyDown": ... C=R.insertCell(-1); C.innerHTML="<td width='9%'><div align='center'><input type = 'text' id='overMins"+(R.rowIndex-2)+"' name='overMins' size='2' maxlength='2' onKeyDown='checkIt(event)'></div></td>"; The...
  18. gabrielAllen

    focus() not working...

    Thanks for the help, but neither of these work... Here is a bit more infor. The form uses a button, "Add", or a "onKeyDown" (tab) on the last field of the current row to create a new row. This field is created dynamically. Here is a portion of the function that the "Add" and tab uses to...
  19. gabrielAllen

    focus() not working...

    I have a form (main) with a row of several fields. In the first field, an "onDblClick" opens a small window (child) with a list of values. When you double a value in the child window, it closes and populates the row in the main page. Here is my problem, after I close the child window and it...

Part and Inventory Search

Back
Top