I have been using this script for a couple of years. It is working pretty well, but I would like to see if we could improve the test to eliminate some of the false positives. When someone enters an address like Port Smith Rd. the script alerts that it looks like a PO Box because it starts with "Po".
Customers are concerned about security when they get a popup warning and many are afraid to continue afterward, so it could be...
User Profile
Collapse
-
-
Change/Add CSS class to parent element on mouseover?
I have a <div id="nav-left"> and I want a mouseover command that would add a class to that div, like this <div id="nav-left" class="magic">. It would work similar to this example:
...Code:<p onmouseover="this.style.color='red'" onmouseout="this.style.color='black'">Move the mouse pointer over this text to change its color. Move the pointer off the text to change the color b
-
Remote CSS positioning
I have an outer DIV which is 500px tall with overflow:hidden and an inner DIV that is 5000px tall, so only a portion is visible within the outer DIV. There is also a list if links in a sidebar. Is there a way to make it so clicking one of the sidebar links would reposition the inner DIV thus revealing the information related to that link? It may require a javascript and that would be okay, but I don't know how to do it.
I would like... -
-
I have been playing with it some more and testing it. It seems to be working very well. Thanks You for getting me started!!! I am pasting the code below and would appreciate it if you could let me know if this looks good to you? I would like to avoid any potential problems that could come up down the road.
Thanks again!!
...Code:function validForm(my_form) { if (my_form.contactname.value == "") {Leave a comment:
-
I know this is probably not correct, but I really am a super beginner with javascript, so forgive my ignorance. Here is my validation script with my attempt at adding your modifications. Is this even close?
...Code:var s = 'P. O. Box'; var re = /p{1,1}(.| ){0,}o{1,1}(.| ){0,}(box){0,}/i; function validForm(my_form) { if (my_form.contactname.value == "") { alert("You must enterLeave a comment:
-
Flexible Form Validation
I need a javascript form validation to detect the entry of what would appear to be a PO Box in a Street Address field. We use UPS for shipping and they can't deliver to a PO Box. I would like to know how to detect any of the following entries as the start of the address entry (not case sensitive):
PO Box
P.O.
P O Box
P. O.
I know there are other possibilities, but this would detect 90% of the PO Box address entries...
No activity results to display
Show More
Leave a comment: