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