- see footer for list info -<
Gotcha, thank you :)

It all becomes clearer!

Rich Wild wrote:
- see footer for list info -<
grab the jar file out of the zip download of jTidy. Whack that in your
{installPath}WEB_INF/lib/ folder. Restart CFMX. Job done!

On Wed, Feb 25, 2009 at 12:30 PM, Damian Watson <
[email protected]> wrote:

- see footer for list info -<
Hi Rich, thanks for that.

I'm completely new to playing with JAVA classes so need a little more info
- I've grabbed hold of jtidy.cfc which all makes sense.

When you say I need the java port (Jtidy) what do you mean? Do I install
JTidy locally, do I have to set up custom classes in administrator?

Thanks,
d

Rich Wild wrote:

- see footer for list info -<
You need the java port of HTML Tidy (JTidy) and an applicable CFC for a
nicer solution:

http://sourceforge.net/projects/jtidy (JTidy Jar file)

http://www.koders.com/coldfusion/fid592E9E77FAE5A6BD59A69EDE020528E2F2BEC2B9.aspx(JTidy<http://www.koders.com/coldfusion/fid592E9E77FAE5A6BD59A69EDE020528E2F2BEC2B9.aspx%28JTidy>
CFC)

alternative approach (but similar)
http://www.jeffcoughlin.com/?pg=9&fn=3&id=1

On Wed, Feb 25, 2009 at 11:53 AM, Damian Watson <
[email protected]> wrote:



- see footer for list info -<
   Hi all,

I'm wanting to use HTML Tidy to clean up code from form submissions
containing heaps of MS based crud.

So I have Tidy installed on our server and then i'm

1. Writing an htm file in the Tidy dir
2. executing Tidy
3. Reading the file back into the form variable

Now I don't know how to get tidy to process the html file through CF,
after
a lot of googling I've not found how to do this.

Here's my code:

<cflock timeout="30" name="htmlTidy">
 <!--- create an html file from the form vars --->
 <cffile action="WRITE" file="#request.htmlTidy#temp.htm"
output="#form.nws_body#">
     <!--- call the HTML tidy object and pass the html file to it --->
 <cfexecute name="#request.htmlTidy#tidy.exe">
   <!--- read the fixed html file and pass back into the form var --->
 <cffile action="read" file="#request.htmlTidy#temp.htm"
variable="form.nws_body">

</cflock>

Can anyone help me with the what and how of getting Tidy to run on the
htm
file?

Cheers,
Damian

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-



- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
-<



_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-


- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
-<
------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database:
270.11.3/1970 - Release Date: 02/24/09 13:35:00



_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-

- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database: 270.11.3/1970 - Release Date: 02/24/09 13:35:00



_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to