473,322 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

asp tidy

I love the HTML Cleaner-upper Tidy... http://tidy.sourceforge.net and I use
it ALL the time after running my .asp's... however (As you can imagine)..
this is a longer process then I want... :

For example :

Run .asp save source, run tidy, examine html source determine where the
error is (IN what line) go to my .asp and find where the html is generated
from... fix it.. run again

As you can tell a long process ...

Does anyone have a way for .asp / html syntax using a tool such as tidy
without having to do all the above steps? (Possibly look at potential HTML
output PRIOR to generating?) Or, does anyone have a .asp parser to check
for syntax errors? (Understand this could show completely different
problems)..

Thank you...
Jul 19 '05 #1
4 3858
forget it.. I should use google more :

C:\temp>type getweb.vbs
url="http://mywebpage.blah.com/test/mytest.asp"
Set objHTTP = CreateObject("MSXML2.XMLHTTP")
Call objHTTP.Open("GET", url, FALSE, "username", "mypass")
objHTTP.Send
wscript.echo objHTTP.ResponseText

C:\temp>getweb | tidy -e -quiet
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 240 column 78 - Warning: unescaped & or unknown entity "&protocol"
line 244 column 77 - Warning: unescaped & or unknown entity "&protocol"
line 248 column 77 - Warning: unescaped & or unknown entity "&protocol"
line 252 column 79 - Warning: unescaped & or unknown entity "&protocol"
line 256 column 79 - Warning: unescaped & or unknown entity "&protocol"
line 21 column 1 - Warning: <table> lacks "summary" attribute
line 29 column 1 - Warning: <table> lacks "summary" attribute
line 51 column 1 - Warning: <table> lacks "summary" attribute
line 97 column 1 - Warning: <table> lacks "summary" attribute
line 143 column 1 - Warning: <table> lacks "summary" attribute
line 189 column 1 - Warning: <table> lacks "summary" attribute
line 235 column 1 - Warning: <table> lacks "summary" attribute
line 261 column 1 - Warning: <table> lacks "summary" attribute
"Anthony" <an*********@nospam.comcast.net> wrote in message
news:ez**************@tk2msftngp13.phx.gbl...
I love the HTML Cleaner-upper Tidy... http://tidy.sourceforge.net and I use it ALL the time after running my .asp's... however (As you can imagine)..
this is a longer process then I want... :

For example :

Run .asp save source, run tidy, examine html source determine where the
error is (IN what line) go to my .asp and find where the html is generated
from... fix it.. run again

As you can tell a long process ...

Does anyone have a way for .asp / html syntax using a tool such as tidy
without having to do all the above steps? (Possibly look at potential HTML
output PRIOR to generating?) Or, does anyone have a .asp parser to check
for syntax errors? (Understand this could show completely different
problems)..

Thank you...

Jul 19 '05 #2
how about this one http://validator.w3.org/
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Anthony" <an*********@nospam.comcast.net> wrote in message
news:uP**************@TK2MSFTNGP10.phx.gbl...
forget it.. I should use google more :

C:\temp>type getweb.vbs
url="http://mywebpage.blah.com/test/mytest.asp"
Set objHTTP = CreateObject("MSXML2.XMLHTTP")
Call objHTTP.Open("GET", url, FALSE, "username", "mypass")
objHTTP.Send
wscript.echo objHTTP.ResponseText

C:\temp>getweb | tidy -e -quiet
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 240 column 78 - Warning: unescaped & or unknown entity "&protocol"
line 244 column 77 - Warning: unescaped & or unknown entity "&protocol"
line 248 column 77 - Warning: unescaped & or unknown entity "&protocol"
line 252 column 79 - Warning: unescaped & or unknown entity "&protocol"
line 256 column 79 - Warning: unescaped & or unknown entity "&protocol"
line 21 column 1 - Warning: <table> lacks "summary" attribute
line 29 column 1 - Warning: <table> lacks "summary" attribute
line 51 column 1 - Warning: <table> lacks "summary" attribute
line 97 column 1 - Warning: <table> lacks "summary" attribute
line 143 column 1 - Warning: <table> lacks "summary" attribute
line 189 column 1 - Warning: <table> lacks "summary" attribute
line 235 column 1 - Warning: <table> lacks "summary" attribute
line 261 column 1 - Warning: <table> lacks "summary" attribute
"Anthony" <an*********@nospam.comcast.net> wrote in message
news:ez**************@tk2msftngp13.phx.gbl...
I love the HTML Cleaner-upper Tidy... http://tidy.sourceforge.net and I

use
it ALL the time after running my .asp's... however (As you can imagine).. this is a longer process then I want... :

For example :

Run .asp save source, run tidy, examine html source determine where the
error is (IN what line) go to my .asp and find where the html is generated from... fix it.. run again

As you can tell a long process ...

Does anyone have a way for .asp / html syntax using a tool such as tidy
without having to do all the above steps? (Possibly look at potential HTML output PRIOR to generating?) Or, does anyone have a .asp parser to check for syntax errors? (Understand this could show completely different
problems)..

Thank you...


Jul 19 '05 #3
Thanks but tidy is better for me because it's an Internal website
"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
how about this one http://validator.w3.org/
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Anthony" <an*********@nospam.comcast.net> wrote in message
news:uP**************@TK2MSFTNGP10.phx.gbl...
forget it.. I should use google more :

C:\temp>type getweb.vbs
url="http://mywebpage.blah.com/test/mytest.asp"
Set objHTTP = CreateObject("MSXML2.XMLHTTP")
Call objHTTP.Open("GET", url, FALSE, "username", "mypass")
objHTTP.Send
wscript.echo objHTTP.ResponseText

C:\temp>getweb | tidy -e -quiet
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 240 column 78 - Warning: unescaped & or unknown entity "&protocol"
line 244 column 77 - Warning: unescaped & or unknown entity "&protocol"
line 248 column 77 - Warning: unescaped & or unknown entity "&protocol"
line 252 column 79 - Warning: unescaped & or unknown entity "&protocol"
line 256 column 79 - Warning: unescaped & or unknown entity "&protocol"
line 21 column 1 - Warning: <table> lacks "summary" attribute
line 29 column 1 - Warning: <table> lacks "summary" attribute
line 51 column 1 - Warning: <table> lacks "summary" attribute
line 97 column 1 - Warning: <table> lacks "summary" attribute
line 143 column 1 - Warning: <table> lacks "summary" attribute
line 189 column 1 - Warning: <table> lacks "summary" attribute
line 235 column 1 - Warning: <table> lacks "summary" attribute
line 261 column 1 - Warning: <table> lacks "summary" attribute
"Anthony" <an*********@nospam.comcast.net> wrote in message
news:ez**************@tk2msftngp13.phx.gbl...
I love the HTML Cleaner-upper Tidy... http://tidy.sourceforge.net and I
use
it ALL the time after running my .asp's... however (As you can imagine).. this is a longer process then I want... :

For example :

Run .asp save source, run tidy, examine html source determine where
the error is (IN what line) go to my .asp and find where the html is

generated from... fix it.. run again

As you can tell a long process ...

Does anyone have a way for .asp / html syntax using a tool such as tidy without having to do all the above steps? (Possibly look at potential HTML output PRIOR to generating?) Or, does anyone have a .asp parser to check for syntax errors? (Understand this could show completely different
problems)..

Thank you...



Jul 19 '05 #4
IMO looking before generating is almost useless. In most cases, there is a
whole logic in the generation that wouldn't be efficient.

What I would like really to be able when something is enabled to have a
class that take over the Response object. This class would save the
genereted HTML to its own buffer and would output then both the HTML and the
tidy diags at the end.

I don't know tidy at all. Can it be called directly from an ASP page ? I
would like to give it a try with ASP and/or ASP.NET...

TIA

Patrice

--

"Anthony" <an*********@nospam.comcast.net> a écrit dans le message de
news:ez**************@tk2msftngp13.phx.gbl...
I love the HTML Cleaner-upper Tidy... http://tidy.sourceforge.net and I use it ALL the time after running my .asp's... however (As you can imagine)..
this is a longer process then I want... :

For example :

Run .asp save source, run tidy, examine html source determine where the
error is (IN what line) go to my .asp and find where the html is generated
from... fix it.. run again

As you can tell a long process ...

Does anyone have a way for .asp / html syntax using a tool such as tidy
without having to do all the above steps? (Possibly look at potential HTML
output PRIOR to generating?) Or, does anyone have a .asp parser to check
for syntax errors? (Understand this could show completely different
problems)..

Thank you...

Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: compu_global_hyper_mega_net_2 | last post by:
Greetings, usenet's obviously dying. Where's everyone hanging out? One of the yahoo groups or something? anyway. Hopefully someone picks this up: I'm trying to compile php-5.0.0RC2 with...
1
by: Mike Gifford | last post by:
Hello Folks, I'm trying to get tidy set up on a pretty standard fedora core 1 server. Looks pretty simple from here: http://ca3.php.net/manual/en/ref.tidy.php Should just have to go: pear -v...
0
by: Börni | last post by:
Hello, I am using tidy to clean up an xml file, but my problem is that it replaces newlines with normal whitespaces. Still worse is that if i retrieve text from the xml file it contains all...
3
by: Mike | last post by:
Greetings, I just used Tidy HTML for the first time. The address below contains the files need to check on Tidy's corrections. I would appreciate any feedback on the Tidy report and the...
12
by: Stefan Weiss | last post by:
Hi. (this is somewhat similar to yesterday's thread about empty links) I noticed that Tidy issues warnings whenever it encounters empty tags, and strips those tags if cleanup was requested....
0
by: Christoph Schneegans | last post by:
Hi! I'd like to present an easy, yet powerful approach to use the HTML Tidy program from <http://tidy.sourceforge.net/> in ASP.NET. It is similiar to...
40
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic...
0
by: BG Mahesh | last post by:
hi I have installed Tidy on Fedore Core 4.0 using RPM. I have a very simple script that uses tidy, ------------tidy.php------------------ <html>a html document</html> <? $html =...
1
by: Martin Odhelius | last post by:
Hello, Does anybody here have any example code for Tidy.Net (http://sourceforge.net/projects/tidynet/) ? I can't find one single example. I try to convert a html-string to well formed xhtml,...
0
by: kempshall | last post by:
Can somebody please tell me how to install the Tidy module for PHP 5 on a Mac? I tried what the php.net website said, which is running the command "pecl install tidy" but the installation failed...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.