PageSourceSearch

https://ripcharts.com/validation.js

js ripcharts.com collected 2026-10-02 06:39:34 UTC 4,144 bytes, 114 lines download raw bytes

1    
2    function ValidateEmail(address)
3    {
4        MapApp.ValidationService.ValidateEmail(address, onValidateEmailSuccess, onValidateEmailFailed, null);
5    };
6    
7    function onValidateEmailSuccess(data)
8    {
9        if(data.message == "")
10        {
11            document.getElementById('emailCheck').innerHTML = "";
12        }
13        else
14        {
15            document.getElementById('emailCheck').innerHTML = "<b><font color='orange'>" + data.message + "</font></b>";
16        }
17    };
18    
19    function onValidateEmailFailed(result)
20    {
21	   var msg=result.get_exceptionType() + "\r\n";
22	   msg += result.get_message() + "\r\n";
23	   msg += result.get_stackTrace();
24       commentLoaded = 1;    
25       rescaleMap();
26   
27	   alert(msg);
28    };
29
30    function ValidateUsername(username) 
31    {
32        MapApp.ValidationService.ValidateUsername(username, onValidateUsernameSuccess, onValidateUsernameFailed, null);
33    };
34
35    function onValidateUsernameSuccess(data) 
36    {
37        if (data.message == "") 
38        {
39            document.getElementById('usernameCheck').innerHTML = "";
40        }
41        else 
42        {
43            document.getElementById('usernameCheck').innerHTML = "<b><font color='orange'>" + data.message + "</font></b>";
44        }
45    };
46
47    function onValidateUsernameFailed(result) 
48    {
49        var msg = result.get_exceptionType() + "\r\n";
50        msg += result.get_message() + "\r\n";
51        msg += result.get_stackTrace();
52        commentLoaded = 1;
53        rescaleMap();
54
55        alert(msg);
56    };
57
58    function ValidatePasswords1(password1, password2) 
59    {
60        if (password1 != password2) {
61            if (password2 != "")
62            {
63                document.getElementById('passwordCheck1').innerHTML = "<b><font color='orange'>Password verification failed.</font></b>";
64                document.getElementById('passwordCheck2').innerHTML = "<b><font color='orange'>We ask that you enter your desired password two times to ensure that you don't mistype it when registering.</font></b>";
65            }
66        }
67        else {
68            document.getElementById('passwordCheck1').innerHTML = "";
69            document.getElementById('passwordCheck2').innerHTML = "";
70        }
71    };
72
73    function ValidatePasswords2(password1, password2) {
74        if (password1 == "" && password2 == "") {
75            document.getElementById('passwordCheck1').innerHTML = "<b><font color='orange'>Password can not be blank.</font></b>";
76            document.getElementById('passwordCheck2').innerHTML = "<b><font color='orange'>Password can not be blank.</font></b>";
77        }
78        else {
79            if (password1 != password2) {
80                document.getElementById('passwordCheck1').innerHTML = "<b><font color='orange'>Password verification failed.</font></b>";
81                document.getElementById('passwordCheck2').innerHTML = "<b><font color='orange'>We ask that you enter your desired password two times to ensure that you don't mistype it when registering.</font></b>";
82            }
83            else {
84                document.getElementById('passwordCheck1').innerHTML = "";
85                document.getElementById('passwordCheck2').innerHTML = "";
86            }
87        }
88    };
89
90    function ValidateCreditCardNumber(CCNumber) 
91    {
92        MapApp.ValidationService.ValidateCreditCard(CCNumber, onValidateCreditCardSuccess, onValidateCreditCardFailed, null);
93    };
94
95    function onValidateCreditCardSuccess(data) 
96    {
97        if (data.message == "") {
98            document.getElementById('spacedashCheck').innerHTML = "";
99        }
100        else {
101            document.getElementById('spacedashCheck').innerHTML = "<b><font color='orange'>" + data.message + "</font></b>";
102        }
103    };
104
105    function onValidateCreditCardFailed(result) 
106    {
107        var msg = result.get_exceptionType() + "\r\n";
108        msg += result.get_message() + "\r\n";
109        msg += result.get_stackTrace();
110        commentLoaded = 1;
111        rescaleMap();
112
113        alert(msg);
114    };

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.