Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F391067
ca.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
847 B
Subscribers
None
ca.js
View Options
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if
(
!
dojo
.
_hasResource
[
"dojox.validate.ca"
]){
dojo
.
_hasResource
[
"dojox.validate.ca"
]
=
true
;
dojo
.
provide
(
"dojox.validate.ca"
);
dojo
.
require
(
"dojox.validate._base"
);
dojo
.
mixin
(
dojox
.
validate
.
ca
,{
isPhoneNumber
:
function
(
_1
){
return
dojox
.
validate
.
us
.
isPhoneNumber
(
_1
);
},
isProvince
:
function
(
_2
){
var
re
=
new
RegExp
(
"^"
+
dojox
.
validate
.
regexp
.
ca
.
province
()
+
"$"
,
"i"
);
return
re
.
test
(
_2
);
},
isSocialInsuranceNumber
:
function
(
_3
){
var
_4
=
{
format
:
[
"###-###-###"
,
"### ### ###"
,
"#########"
]};
return
dojox
.
validate
.
isNumberFormat
(
_3
,
_4
);
},
isPostalCode
:
function
(
_5
){
var
re
=
new
RegExp
(
"^"
+
dojox
.
validate
.
regexp
.
ca
.
postalCode
()
+
"$"
,
"i"
);
return
re
.
test
(
_5
);
}});
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 20:21 (15 h, 17 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24801
Default Alt Text
ca.js (847 B)
Attached To
rZED Zed
Event Timeline
Log In to Comment