HTML Headers showing in page after AJAX call

Hello,

I have an odd thing happening. I’m trying to use the Radiant CMS
system, and am seeing
a problem with some of the ajax calls. I’ve posted to the Radiant
mailing list, but I think
that it’s more a Rails / Apache / fcgid problem. My environment is
Ubuntu Linux with Apache 2.0.55
and fcgid.

The problem is, when I click on a link that will expand a child item
to show the items under it,
an ajax call is made and the items (pages) under are displayed.
However, there is also some HTML
headers that are displayed on the page. I’ve used Firefox and the
Firebug extension to try and see
what’s going on. (This seems to happen only under fcgid - using
script/server or just cgi it does
not happen)

Clicking the item to expand the current level will return (in Firebug):

Headers:

Date: Mon, 02 Oct 2006 17:10:02 GMT
Server: Apache/2.0.55 (Ubuntu)
Cache-Control: no-cache

Response:

 <tr id="page-12" class="node level-3 no-children">
  <td class="page" style="padding-left: 70px">
    <span class="w1">
      <a href="http://radiant.mysite.com/admin/pages/edit/12"><img

align=“center” alt=“page-icon” class=“icon”
src="/images/page.png?1158633174" title="" /> child



Published



Set-Cookie: _session_id=0bbe20556e516fe62ca728f21e32316b; path=/
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html;charset=utf-8

0

Notice how the headers are being returned in the response, but not
being included as part of the headers ( I don’t know where the
trailing 0 character is coming from either).
I have no idea what this would happen, or if any sort of configuratin
settings can help.

Has any one ever seen such a thing?

Thanks,

John

On 10/2/06, John T. [email protected] wrote:

Hello,

I have an odd thing happening. I’m trying to use the Radiant CMS
system, and am seeing
a problem with some of the ajax calls. I’ve posted to the Radiant
mailing list, but I think
that it’s more a Rails / Apache / fcgid problem. My environment is
Ubuntu Linux with Apache 2.0.55
and fcgid.

For reference, here is the headers from Firebug using the demo Radiant
site:

Date: Tue, 03 Oct 2006 12:46:29 GMT
Server: lighttpd | wiseheart design
Content-Type: text/html;charset=utf-8
Cache-Control: no-cache
Set-Cookie: _session_id=fe5adcc2f41b57331769e4be7dea76f8; path=/
X-Powered-By: The blood, sweat and tears of the fine, fine TextDrive
staff
Served-By: TextDrive
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 533
Connection: close

(Granted, they are using lighttpd and I’m using Apache…)

Anyone?

On 10/3/06, John T. [email protected] wrote:

On 10/2/06, John T. [email protected] wrote:

Hello,

I have an odd thing happening. I’m trying to use the Radiant CMS
system, and am seeing
a problem with some of the ajax calls. I’ve posted to the Radiant
mailing list, but I think
that it’s more a Rails / Apache / fcgid problem. My environment is
Ubuntu Linux with Apache 2.0.55
and fcgid.

Has anyone seen this problem? With fcgid and ajax? At all??

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs