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.
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...
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...
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?
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...
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...
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.
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
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.