Click here to Skip to main content
12,295,791 members (49,902 online)

JavaScript

 
QuestionHow can I submit form without the querystring Pin
Member 997078210-Apr-13 7:22
memberMember 997078210-Apr-13 7:22 
AnswerRe: How can I submit form without the querystring Pin
Graham Breach10-Apr-13 7:55
memberGraham Breach10-Apr-13 7:55 
AnswerRe: How can I submit form without the querystring Pin
Sandeep Mewara10-Apr-13 8:16
mvpSandeep Mewara10-Apr-13 8:16 
QuestionIE(10) has problems with SELECT.onchange Pin
mastamac8-Apr-13 7:22
membermastamac8-Apr-13 7:22 
AnswerRe: IE(10) has problems with SELECT.onchange Pin
enhzflep10-Apr-13 9:19
memberenhzflep10-Apr-13 9:19 
GeneralRe: IE(10) has problems with SELECT.onchange Pin
mastamac11-Apr-13 1:54
membermastamac11-Apr-13 1:54 
GeneralRe: IE(10) has problems with SELECT.onchange Pin
enhzflep11-Apr-13 2:25
memberenhzflep11-Apr-13 2:25 
AnswerRe: IE(10) has problems with SELECT.onchange Pin
Graham Breach11-Apr-13 2:56
memberGraham Breach11-Apr-13 2:56 
Questionhow can save a file through javascript Pin
vimal Tyagi Zindagi3-Apr-13 21:18
groupvimal Tyagi Zindagi3-Apr-13 21:18 
AnswerRe: how can save a file through javascript Pin
Sandeep Mewara3-Apr-13 23:30
mvpSandeep Mewara3-Apr-13 23:30 
QuestionUsing a javascript timer in a asp User Control Pin
Steve Holdorf1-Apr-13 11:09
memberSteve Holdorf1-Apr-13 11:09 
AnswerRe: Using a javascript timer in a asp User Control Pin
Steve Holdorf2-Apr-13 0:46
memberSteve Holdorf2-Apr-13 0:46 
AnswerRe: Using a javascript timer in a asp User Control Pin
Steve Holdorf2-Apr-13 1:46
memberSteve Holdorf2-Apr-13 1:46 
Questionvalidating candian postal codes Pin
jkirkerx31-Mar-13 12:12
memberjkirkerx31-Mar-13 12:12 
I'm going crazy here. I've used this code for years and never had a problem. I tested a previous version of the the regex string for Canadian Postal Codes and it worked fine. But today doing a DHL Shipping upgrade testing on Canadian Addresses, I can't get my Canadian Postal Code Regex to produce a match.

So I'm trying K1A 0G9, K8N 5W6, LDU 9Z0
for example. I ran some test in RAD Regex Expresson tester, and could not produce a match as well using
/^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$/

Wait, I just tried this and got a match with the RAD Regex Expression tester, hmm
^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ] \d[ABCEGHJKLMNPRSTVWXYZ]\d$

This seems to work with every variation in the RAD tester, maybe this one
^[ABCEGHJKLMNPRSTVXYabceghjklmnprstvxy]{1}\d{1}[A-Za-z]{1} *\d{1}[A-Za-z]{1}\d{1}$

Wish a real Canadian would enlighten me on this one.


I must admit the canadian postal code system is pretty slick, but not sure why I have so much trouble with it.

var match_b_PostalCode;
var re_Shipping_PostalCode_CA = new RegExp("^[ABCEGHJKLMNPRSTVXY]\\d[ABCEGHJKLMNPRSTVWXYZ]( )?\\d[ABCEGHJKLMNPRSTVWXYZ]\\d$/i");
var re_Shipping_PostalCode_MX = new RegExp("^\\d{5}(-\\d{4})?$");
var re_Shipping_PostalCode_US = new RegExp("^\\d{5}(-\\d{4})?$");
var txt_Shipping_PostalCode = $('[id*="_txt_Modal_ShipRate_AddressInput_PostalCode_Field"]').val().toUpperCase().trim();
            
   switch (countryCode_Value) {
      case "CA":
         match_b_PostalCode = re_Shipping_PostalCode_CA.exec(txt_Shipping_PostalCode);
      case "MX":
         match_b_PostalCode = re_Shipping_PostalCode_MX.exec(txt_Shipping_PostalCode);
      case "US":
         match_b_PostalCode = re_Shipping_PostalCode_US.exec(txt_Shipping_PostalCode);
   }

AnswerRe: validating candian postal codes [solved] Pin
jkirkerx1-Apr-13 7:20
memberjkirkerx1-Apr-13 7:20 
QuestionTime and date Pin
Tichaona J31-Mar-13 4:15
memberTichaona J31-Mar-13 4:15 
AnswerRe: Time and date Pin
dusty_dex31-Mar-13 4:41
memberdusty_dex31-Mar-13 4:41 
QuestionJquery - Setting focus on Canvas Pin
Simon Lee Shugar29-Mar-13 2:54
memberSimon Lee Shugar29-Mar-13 2:54 
AnswerRe: Jquery - Setting focus on Canvas Pin
Jasmine250129-Mar-13 6:55
memberJasmine250129-Mar-13 6:55 
GeneralRe: Jquery - Setting focus on Canvas Pin
Simon Lee Shugar3-Apr-13 12:51
memberSimon Lee Shugar3-Apr-13 12:51 
AnswerRe: Jquery - Setting focus on Canvas Pin
jkirkerx30-Mar-13 18:57
memberjkirkerx30-Mar-13 18:57 
AnswerRe: Jquery - Setting focus on Canvas Pin
Dennis E White2-Apr-13 5:57
memberDennis E White2-Apr-13 5:57 
GeneralRe: Jquery - Setting focus on Canvas Pin
jkirkerx2-Apr-13 6:28
memberjkirkerx2-Apr-13 6:28 
GeneralRe: Jquery - Setting focus on Canvas Pin
Dennis E White2-Apr-13 6:35
memberDennis E White2-Apr-13 6:35 
GeneralRe: Jquery - Setting focus on Canvas Pin
jkirkerx2-Apr-13 6:38
memberjkirkerx2-Apr-13 6:38 
GeneralRe: Jquery - Setting focus on Canvas Pin
Dennis E White2-Apr-13 6:42
memberDennis E White2-Apr-13 6:42 
GeneralRe: Jquery - Setting focus on Canvas Pin
Simon Lee Shugar3-Apr-13 12:50
memberSimon Lee Shugar3-Apr-13 12:50 
AnswerRe: Jquery - Setting focus on Canvas Pin
AspDotNetDev7-Apr-13 13:10
protectorAspDotNetDev7-Apr-13 13:10 
GeneralRe: Jquery - Setting focus on Canvas Pin
Simon Lee Shugar7-Apr-13 21:34
memberSimon Lee Shugar7-Apr-13 21:34 
QuestionAJAX Javascript ShowModalDialogBox in IE 7 and above not working Pin
unniyadan28-Mar-13 20:53
memberunniyadan28-Mar-13 20:53 
AnswerRe: AJAX Javascript ShowModalDialogBox in IE 7 and above not working Pin
Prasad Khandekar11-Apr-13 3:44
memberPrasad Khandekar11-Apr-13 3:44 
QuestionAJ Pin
unniyadan28-Mar-13 20:52
memberunniyadan28-Mar-13 20:52 
QuestionJquery JqGrid Pin
Member 962382927-Mar-13 2:30
memberMember 962382927-Mar-13 2:30 
AnswerRe: Jquery JqGrid Pin
Jasmine250127-Mar-13 7:48
memberJasmine250127-Mar-13 7:48 
QuestionBall to Ball collision handling Pin
SRJ9226-Mar-13 14:19
memberSRJ9226-Mar-13 14:19 
AnswerRe: Ball to Ball collision handling Pin
Kenneth Haugland26-Mar-13 15:29
memberKenneth Haugland26-Mar-13 15:29 
GeneralRe: Ball to Ball collision handling Pin
dusty_dex26-Mar-13 21:00
memberdusty_dex26-Mar-13 21:00 
GeneralRe: Ball to Ball collision handling Pin
Kenneth Haugland26-Mar-13 22:01
memberKenneth Haugland26-Mar-13 22:01 
AnswerRe: Ball to Ball collision handling Pin
SRJ9227-Mar-13 4:04
memberSRJ9227-Mar-13 4:04 
QuestionAjax request call using jquery Pin
Member 473327521-Mar-13 2:49
memberMember 473327521-Mar-13 2:49 
AnswerMessage Removed Pin
jkirkerx21-Mar-13 7:42
memberjkirkerx21-Mar-13 7:42 
GeneralRe: Ajax request call using jquery Pin
dusty_dex21-Mar-13 8:33
memberdusty_dex21-Mar-13 8:33 
GeneralRe: Ajax request call using jquery Pin
jkirkerx21-Mar-13 9:24
memberjkirkerx21-Mar-13 9:24 
GeneralSlide show Pin
Tichaona J21-Mar-13 0:10
memberTichaona J21-Mar-13 0:10 
GeneralRe: Slide show Pin
Graham Breach21-Mar-13 1:37
memberGraham Breach21-Mar-13 1:37 
GeneralRe: Slide show Pin
jkirkerx21-Mar-13 7:55
memberjkirkerx21-Mar-13 7:55 
GeneralRe: Slide show Pin
alisener198022-Mar-13 9:41
memberalisener198022-Mar-13 9:41 
QuestionA question to dust_dex Pin
Hakan Bulut20-Mar-13 22:51
memberHakan Bulut20-Mar-13 22:51 
AnswerRe: A question to dust_dex Pin
dusty_dex21-Mar-13 5:29
memberdusty_dex21-Mar-13 5:29 
GeneralRe: A question to dust_dex Pin
Hakan Bulut24-Mar-13 21:13
memberHakan Bulut24-Mar-13 21:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160525.2 | Last Updated 26 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid