I’m being a little lazy because it’s late and this will work for now. If I helped you here by providing this code, then help me by providing some non-ActiveX (non IE) code for the relevant sections (and we’ll be even). With Dynamics CRM 2011 R8 right around the corner and providing cross browser support, this particular type of javascript will not function in non-IE environments. This got me thinking, this particular bit of code utilizes ActiveX. In order for the code to work (and to not be prompted), you will need to make some changes to your IE security settings. Pay special attention to the comments section. To validate ZIP code (US postal code) with JavaScript, we can use a regex that matches 5 digit numbers or 5 digit numbers with a 4 digit number separated by a dash. I also added the ability to populate the city and state fields (may as well). Recently, I needed to write some javascript to do a zip code/postal code lookup for validation purposes and it also needed to work for international.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |