Unsupported Document
Unsupported Document
Posted on: Tue, 06/28/2011 - 11:47
I downloaded the calaisphpdemo (OpenCalais_PHP_09Feb19) and run it on my linux server. After posting some text on the CalaisPHPDemo.html page, I was directed to the demo_results.php page with a "Unsupported Document" message. What is going on? I want to get the same results as I am getting on http://viewer.opencalais.com/ page.
I would appreciate for any help.
Thanks.
Trackback URL for this post:
http://www.opencalais.com/trackback/108063

Fatih Şen
Ph.D. Candidate/Computer Science
University of Arkansas at Little Rock
2801 S. University Ave
Little Rock, AR 72204
I am using this: var $contentType = "text/txt";
This can be found in CalaisPHPIf.php file.
You should use text/raw instead of text/txt
Fatih Şen
Ph.D. Candidate/Computer Science
University of Arkansas at Little Rock
2801 S. University Ave
Little Rock, AR 72204
Firefox only gives the "Unsupported Document" message, but when I tested it on IE, I got this error besides that message:
Message: '_clfResult' is null or not an object
Line: 228
Char: 18
Code: 0
URI: http://144.30.1.49/calaisphpdemo/ViewerJSON/js/highlight.js
Which Content-Type are you using?