{"id":16473287,"url":"https://github.com/saintedlama/interceptable-validators","last_synced_at":"2026-02-21T09:31:22.931Z","repository":{"id":3901014,"uuid":"4989203","full_name":"saintedlama/Interceptable-Validators","owner":"saintedlama","description":"This small javascript library adds the possibility to intercept validation in ASP.NET","archived":false,"fork":false,"pushed_at":"2012-12-20T10:05:57.000Z","size":276,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T08:47:44.740Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ASP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saintedlama.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-11T13:17:55.000Z","updated_at":"2013-12-22T04:20:22.000Z","dependencies_parsed_at":"2022-08-06T14:15:38.809Z","dependency_job_id":null,"html_url":"https://github.com/saintedlama/Interceptable-Validators","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saintedlama/Interceptable-Validators","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintedlama%2FInterceptable-Validators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintedlama%2FInterceptable-Validators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintedlama%2FInterceptable-Validators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintedlama%2FInterceptable-Validators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saintedlama","download_url":"https://codeload.github.com/saintedlama/Interceptable-Validators/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintedlama%2FInterceptable-Validators/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29678224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T06:23:40.028Z","status":"ssl_error","status_checked_at":"2026-02-21T06:23:39.222Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T12:26:07.455Z","updated_at":"2026-02-21T09:31:22.911Z","avatar_url":"https://github.com/saintedlama.png","language":"ASP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Interceptable Validators\nASP.NET Validators are a quite well designed but rather inflexible approach to form validation. This project provides a small javascript file to intercept ASP.NET validation with your own javascript code.\n\nValidators can be intercepted on a page level or field level.\n\n# HowTo\nAdd a the script `interceptableValidators.js` to your site and initialize validators **AFTER** the ASP.NET validation code block. This can be done by using jQuery's DomReady event\n\n\t$(function () {\n\t\tinterceptPageValidation({\n\t\t\tbeforeValidation: function () {\n\t\t\t\tconsole.log('beforeValidatorOnSubmit');\n\t\t\t},\n\t\t\tafterValidation: function (valid) {\n\t\t\t\tconsole.log('afterValidatorOnSubmit' + valid);\n\t\t\t}\n\t\t});\n\n\t\tinterceptFieldValidation({\n\t\t\tbeforeValidation: function (val) {\n\t\t\t\tconsole.log('beforeFieldValidation' + val);\n\t\t\t},\n\t\t\tafterValidation: function (val, valid) {\n\t\t\t\tvar inputFields = $(val).parent('.input-fields:first');\n\t\t\t\tif (valid) {\n\t\t\t\t\tinputFields.removeClass('error');\n\t\t\t\t} else {\n\t\t\t\t\tinputFields.addClass('error');\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t});\n\n\nTo intercept page validation use the function `interceptPageValidation`, to intercept field validation use the function `interceptFieldValidation`.\n\nBoth functions expect an object passed as parameter that can defines methods\n\n* beforeValidation\n* afterValidation\n\nFor interceptFieldValidation you get parameters val (DOM element beeing validated) and valid (only in afterValidation) passed to your functions. For page validation your functions get valid passed (only in afterValidation).\n\n# Demo\nJust open InterceptableValidators.sln in Visual Studio 2010+ to see how interception works.\n\n# Dependencies\nThis plugin does not depend on jQuery or any other javascript framework.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaintedlama%2Finterceptable-validators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaintedlama%2Finterceptable-validators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaintedlama%2Finterceptable-validators/lists"}