RA Jones wrote:

> I read somewhere about removing headers with $self->header_type('none'),
> but that only generates a 'Bad header' 500 error. I assume the problem
> is because CGI::Application handles header generation, and this
> conflicts with CGI::Ajax handling of headers? I hope the solution to
> this is simple.

Well, the solution is simple, but maybe not what you want to hear. Don't use
CGI::Ajax. I've never used it and have never missed it. Just put the necessary
Javascript into your templates.

As a side note, one of the problems (and this is just one) with modules that
hide the Javascript details and auto-generate it for you (like HTML::Prototype
and CGI::Ajax) is that the Javascript is not in a separate file. This means your
page's content is larger than it should be and the browser needs to parse it on
each page load. If you used a standalone Javascript framework (like Prototype,
JQuery, Dojo, etc) you would put your javascript into an external file. The
browser would load it on the first request and parse it. The rest of the time it
would be cached by the browser. This means your bandwidth is reduced and your
page's execution time is faster. Sometimes this is important.

-- 
Michael Peters
Developer
Plus Three, LP


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to