![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | how do i validate a .asp file? hello i have some asp file and i want to validate them via validator.w3.org. I'm developing locally so i can't feed the validar with an url, if i use the option file upload i get an error message: "Sorry, I am unable to validate this document because its content type is application/octet-stream..", weird enough because i have this line in all my pages: <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> Finally, if i try to validate by direct input all the asp code will lead to a validate error.. Any helps is appreciated |
My System Specs![]() |
| | #2 (permalink) |
| | Re: how do i validate a .asp file? wrote on 27 dec 2008 in microsoft.public.scripting.vbscript: Quote: > hello > i have some asp file and i want to validate them via validator.w3.org. > I'm developing locally so i can't feed the validar > with an url, if i use the option file upload i get an error message: > "Sorry, I am unable to validate this document because its content type > is application/octet-stream..", weird enough because i have this line > in all my pages: > <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> > Finally, if i try to validate by direct input all the asp code will > lead to a validate error.. > Any helps is appreciated Validating serverside code is done by debugging. Validating of the html result is possible like any html file on the web. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress) |
My System Specs![]() |
| | #3 (permalink) |
| | Re: how do i validate a .asp file? On 27 Dic, 22:58, "Evertjan." <exjxw.hannivo...@xxxxxx> wrote: Quote: > *wrote on 27 dec 2008 in microsoft.public.scripting.vbscript: > Quote: > > hello > > i have some asp file and i want to validate them via validator.w3.org. > > I'm developing locally so i can't feed the validar > > with an url, if i use the option file upload i get an error message: > > "Sorry, I am unable to validate this document because its content type > > is application/octet-stream..", weird enough because i have this line > > in all my pages: > > <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> > > Finally, if i try to validate by direct input all the asp code will > > lead to a validate error.. > > Any helps is appreciated > Content type of an ASP file can and should be set using serveride commands. type Quote: > Validating serverside code is done by debugging. > Validating of the html result is possible like any html file on the web. a remote server first? |
My System Specs![]() |
| | #4 (permalink) |
| | Re: how do i validate a .asp file? wrote on 28 dec 2008 in microsoft.public.scripting.vbscript: Quote: > On 27 Dic, 22:58, "Evertjan." <exjxw.hannivo...@xxxxxx> wrote: Quote: >> *wrote on 27 dec 2008 in microsoft.public.scripting.vbscript: >> Quote: >> > hello >> > i have some asp file and i want to validate them via >> > validator.w3.org. I'm developing locally so i can't feed the >> > validar with an url, if i use the option file upload i get an error >> > message: "Sorry, I am unable to validate this document because its >> > content type is application/octet-stream..", weird enough because i >> > have this line in all my pages: >> > <meta http-equiv="Content-Type" content="text/html;charset=utf-8" Quote: Quote: >> > Finally, if i try to validate by direct input all the asp code will >> > lead to a validate error.. >> > Any helps is appreciated >> Content type of an ASP file can and should be set using serveride >> commands. > Nothing changes if i add the serverside command to declare the content > type Show us the header please. Quote: Quote: >> Validating serverside code is done by debugging. >> Validating of the html result is possible like any html file on the >> web. > Still don't understand, i can't validate an asp file i have to put in > a remote server first? Page validation is usually the term for validating what is sent to the client, and that is NOT the ASP-file. An ASP-file is a file that serverside renders an html file that is sent to the user. Serverside debugging is quite possible. Do you want to detect serverside code syntax errors? If so what serverside programming language do you use under ASP? -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress) |
My System Specs![]() |
| | #5 (permalink) |
| | Re: how do i validate a .asp file? On 28 Dic, 17:20, "Evertjan." <exjxw.hannivo...@xxxxxx> wrote: Quote: > *wrote on 28 dec 2008 in microsoft.public.scripting.vbscript: Quote: > Show us the header please. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> ...... Quote: > Quote: > Please explain what you mean by validating an asp file. i have vbscript code merged in all pages but i want to validate them for xhtml, not for serverside code I thought that i can validate my page even if i don't have a public http server Quote: > Page validation is usually the term for validating what is sent to the > client, and that is NOT the ASP-file. > > An ASP-file is a file that serverside renders an html file that is sent > to the user. > > Serverside debugging is quite possible. > > Do you want to detect serverside code syntax errors? > If so what serverside programming language do you use under ASP? my localhost.. there is a better way? Thank you for your answers |
My System Specs![]() |
| | #6 (permalink) |
| | Re: how do i validate a .asp file? wrote on 28 dec 2008 in microsoft.public.scripting.vbscript: Quote: > On 28 Dic, 17:20, "Evertjan." <exjxw.hannivo...@xxxxxx> wrote: Quote: >> *wrote on 28 dec 2008 in microsoft.public.scripting.vbscript: Quote: >> Show us the header please. > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> > ..... please show the header content of the html sent to the client as returned by xmlhttp.open("HEAD"...: var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); function getUrlhead(url) { xmlhttp.open("HEAD", url,false); xmlhttp.send() sta = xmlhttp.status return xmlhttp.getAllResponseHeaders(); }; Quote: Quote: >> Please explain what you mean by validating an asp file. > I want to validate my pages for xhtml 1.0 strict, the problem is that > i have vbscript code merged in all pages the client, that is simple html, perhaps with clientside script. so show the html as seen by view-source or the source function of your browser. Quote: > but i want to validate them for xhtml, not for serverside code > I thought that i can validate my page even if i don't have a public > http server > Quote: >> Page validation is usually the term for validating what is sent to >> the client, and that is NOT the ASP-file. >> >> An ASP-file is a file that serverside renders an html file that is >> sent to the user. >> >> Serverside debugging is quite possible. >> >> Do you want to detect serverside code syntax errors? >> If so what serverside programming language do you use under ASP? Quote: > vbscript, but to detect serverside code errors i just feed the page to > my localhost.. there is a > better way? -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress) |
My System Specs![]() |
| | #7 (permalink) |
| | Re: how do i validate a .asp file? On 28 Dic, 20:45, "Evertjan." <exjxw.hannivo...@xxxxxx> wrote: Quote: > *wrote on 28 dec 2008 in microsoft.public.scripting.vbscript: > Quote: > > On 28 Dic, 17:20, "Evertjan." <exjxw.hannivo...@xxxxxx> wrote: Quote: > >> *wrote on 28 dec 2008 in microsoft.public.scripting.vbscript: Quote: Quote: > >> Show us the header please. Quote: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml"> > > <head> > > <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> > > ..... > No, that is the top and <head> section of the html, > please show the header content of the html sent to the client > as returned by xmlhttp.open("HEAD"...: > > var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); > function getUrlhead(url) { > * * * * xmlhttp.open("HEAD", url,false); > * * * * xmlhttp.send() > * * * * sta = xmlhttp.status > * * * * return xmlhttp.getAllResponseHeaders(); > > }; Quote: > so show the html as seen by view-source or the source function of your > browser. browser in the validator it can validate it, is this the way i have to validate a page? Thx |
My System Specs![]() |
| | #8 (permalink) |
| | Re: how do i validate a .asp file? wrote on 29 dec 2008 in microsoft.public.scripting.vbscript: Quote: > On 28 Dic, 20:45, "Evertjan." <exjxw.hannivo...@xxxxxx> wrote: Quote: >> *wrote on 28 dec 2008 in microsoft.public.scripting.vbscript: >> Quote: >> > On 28 Dic, 17:20, "Evertjan." <exjxw.hannivo...@xxxxxx> wrote: >> >> *wrote on 28 dec 2008 in microsoft.public.scripting.vbscript: Quote: >> >> Show us the header please. >> > ok, those are the first lines: Quote: >> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" >> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >> > <html xmlns="http://www.w3.org/1999/xhtml"> >> > <head> >> > <meta http-equiv="Content-Type" content="text/html;charset=utf-8" Quote: Quote: >> > ..... >> No, that is the top and <head> section of the html, >> please show the header content of the html sent to the client >> as returned by xmlhttp.open("HEAD"...: >> >> var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); >> function getUrlhead(url) { >> * * * * xmlhttp.open("HEAD", url,false); >> * * * * xmlhttp.send() >> * * * * sta = xmlhttp.status >> * * * * return xmlhttp.getAllResponseHeaders(); >> >> }; > Uhm.. that's not vbscript and i don't know how to transpose it.. That is clientside javascript to read the header of a sent html. It is not part of your page, so why do you nead to transpose it to vbs? Any html sent to the browser has a header section "head" and a html section "get". ASP directives in the server asp file direct the server to change the "head" section. A typical head section as found by the above code looks like this: Date: Mon, 29 Dec 2008 17:06:27 GMT Server: Microsoft-IIS/6.0 MicrosoftOfficeWebServer: 5.0_Pub X-Powered-By: ASP.NET Content-Length: 40271 Content-Type: text/html Expires: Mon, 29 Dec 2008 16:56:27 GMT Set-Cookie: ASPSESSIONIDQSBSBBSR=PHBICBCAAIPEKGIMLKEDAGNL; path=/ Cache-control: private or even [Apache server] Date: Mon, 29 Dec 2008 10:31:59 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.1.6 Connection: close Content-Type: text/html; charset=UTF-8 typical asp directive that change or ads to such head: <% Response.Expires = -10 Response.ContentType = "video/x-ms-asf" %> Quote: Quote: >> so show the html as seen by view-source or the source function of your >> browser. > Maybe is that the answer? If i put the hmtl by view-source of the > browser in the validator it can validate it, is this the way i have to > validate a page? client browser, yes. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress) |
My System Specs![]() |
| | #9 (permalink) |
| | Re: how do i validate a .asp file? On 29 Dic, 18:14, "Evertjan." <exjxw.hannivo...@xxxxxx> wrote: Quote: > *wrote on 29 dec 2008 in microsoft.public.scripting.vbscript: Quote: Quote: > > Maybe is that the answer? If i put the hmtl by view-source of the > > browser in the validator it can validate it, is this the way i have to > > validate a page? > If your definition of validation is to validate the html sent to the > client browser, yes. My page is an .asp file: vbscript + xhtml + javascript Why are we making it so complex? All i want is to validate my page for xhtml, so how do i? |
My System Specs![]() |
| | #10 (permalink) |
| | Re: how do i validate a .asp file? fazfazzi@xxxxxx wrote: Quote: > On 29 Dic, 18:14, "Evertjan." <exjxw.hannivo...@xxxxxx> wrote: Quote: >> wrote on 29 dec 2008 in microsoft.public.scripting.vbscript: > Quote: Quote: >>> Maybe is that the answer? If i put the hmtl by view-source of the >>> browser in the validator it can validate it, is this the way i have >>> to validate a page? >> If your definition of validation is to validate the html sent to the >> client browser, yes. > I want to validate a page for xhtml 1.0 strict > My page is an .asp file: vbscript + xhtml + javascript > Why are we making it so complex? All i want is to validate my page for > xhtml, so how do i? ASP generates html. You need to cause the ASP page to generate the html to be validated. Only the html can be validated. Hence the need to View Source after running the page to see the generated html. -- HTH, Bob Barrows |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Validate XML against XSD file | PowerShell | |||
| validate a cabinet file | Vista General | |||
| Can't validate autounattend.xml file in WSIM. | Vista installation & setup | |||
| Needs to validate? | Vista General | |||
| Needs to validate? | Vista General | |||