Add a Feed Validator Button to the Build Form

February 19, 2005

Most problems with feeds not being processed through Feed2JS are due to RSS feeds that are not valid-- while they may be accessible through RSS readers, the Magpie RSS parser should have a valid feed to do its work correctly. I just added a button to our build a feed form so any URL typed in the form field can be checked with the Feedvalidator. To add this toi your own build form, it is a small editing change (the button depends on JavaScript).

Add a name="builder" attribute to the FORM tag:
<form method="get" action="<?php echo $_SERVER['PHP_SELF']?>" name="builder">
and just after the form field for the RSS URL (field for "src") add"
<input type="button" value="Check with Feedvalidator" 
onClick="window.open('http://feedvalidator.org/check.cgi?url=' + 
encodeURIComponent(document.builder.src.value), 'check')">

Write a comment










Remember personal info?





Spam Prevention Security Code: Enter the numbers you see in the image above