View Full Version : ASP and XHTML
DELOCH
06-06-2006, 08:33 PM
Hello, my recent problem was that ASP does not become validated from my desktop... it said it does not allow "<% language=vbscript %>" in the prelog and warns me for doing '<% response.write ("blah") %>'
does anyone know how to fix this because my PHP works in validation but ASP does not...
thx
degsy
06-07-2006, 03:25 PM
You need to validated the processed page, not the source code.
e.g. loading http://localhost/page.asp in the browser would process the ASP and output the HTML
DELOCH
06-07-2006, 10:46 PM
sorry, i know that much... the problem is and i quote:
Sorry, this type of URL scheme () is not supported by this service. Please check that you entered the URL correctly.
URLs should be in the form: http://validator.w3.org/
If you entered a valid URL using a scheme that we should support, please let us know as outlined on our Feedback page. Make sure to include the specific URL you would like us to support, and if possible provide a reference to the relevant standards document describing the URL scheme in question.
Remember that you can always save the page to disk and Validate it using the File Upload interface.
and when I validate directly from the localhost file... as in: the referrer from localhost I get:
Sorry, the IP address of localhost is not public. For security reasons, validating resources located at non-public IP addresses has been disabled in this service.
degsy
06-08-2006, 03:18 PM
Load the page in your browser, e.g. localhost/page.asp
Then open the source code and paste that into the Validate by Direct Input box.
Otherwise you need to setup a domain name for your server.
http://no-ip.com
DELOCH
06-08-2006, 09:35 PM
if I give it by input it will STILL read the preprocessor but when it does so it is not it... :(
degsy
06-09-2006, 03:04 PM
You cannot put your ASP code through the validator.
You need to load your page in the browser. You can then goto View>Source and copy the outputted HTML.
ghell
06-09-2006, 05:24 PM
the asp (or php) source is not xhtml. it will not be able to validate.
you need to either paste the GENERATED source in (view source in a browser) from a server (http://localhost/myfile.asp or whatever NOT file://c/myfile.asp or whatever or it wont generate) or upload the file to somewhere that can process asp and validate by url.
localhost is only on your local machine so you cant validate by that url (as the validation server cant read it)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.