
Your site must have JQuery installed


This solution allows you to validate urls (entered into a textarea) asynchronously client-side via free to use APIs, results can then be downloaded to a csv.  Achecker and PageSpeed require API keys to use the service, W3C HTML/CSS can be checked anonymously.

- HTML5		https://github.com/validator/validator/wiki/Service-%C2%BB-Input-%C2%BB-GET
- CSS		https://jigsaw.w3.org/css-validator/api.html
- WCAG		https://achecker.ca/documentation/web_service_api.php
- Pagespeed	https://developers.google.com/speed/docs/insights/v1/about


There is also a built in AJAX GOSS CMS article Lookup, this uses the method 'CSArticle_get' to fetch content from the article tree.  You can enter a article id plus level depth to populate the textarea.
- https://icm10060.gossinteractive.com/article/4020/CSArticle



1) Import and publish the form 'form_MULTIARTICLEVALIDATORCLIENTSIDEV2.xml'

2) Import and publish the endpoint 'endpoint_test.getActiveContent_6.0.xml'

3) Create a new article using the 'Formservice' template and associate the imported for above.  The article can be secured to limit access.


.: API Key Registration :.
Both Achecker and PageSpeed require API keys, you can register for free here:

Google PageSpeed
1) Go to: https://developers.google.com/speed/docs/insights/v1/about?csw=1
2) Register your details and you will be given a API Key Eg AIzaSyDuy4imxxxxxxxxxxxxxxxxxxxxx
3) See 'API Keys.png' for where to enter your key in the form

AChecker 
1) Go to: https://achecker.ca/register.php
2) Register your details and you will be given a Web Service ID Eg eb90ef88xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3) See 'API Keys.png' for where to enter your key in the form

** Note: the AChecker API only works client-side if CORS is disabled.  See this post on Stack Overflow for Chrome instruction: https://stackoverflow.com/a/19317888/1622376 **
** Note: the AChecker API is quite slow, it can take up to 8 seconds to validate a single url **


DOWNLOADING
You can click the 'Download CSV' button to download the results to a csv file.  This will include all the urls you've checked plus the results selected.  
As the API scripts runs asynchronously, you should wait until all checks are complete before downloading.  Otherwise, the file may be incomplete.



DEBUGGING
- Check the cog icon to see response results
- Check the console log


