<div class="gmail_quote"><div>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Date: Wed, 19 Mar 2008 13:04:37 -0400<br>
From: Fairlight &lt;<a href="mailto:fairlite@fairlite.com">fairlite@fairlite.com</a>&gt;<br>
Subject: Re: fpCGI failure, part 2<br>
To: <a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a><br>
Message-ID: &lt;<a href="mailto:20080319130437.A13300@iglou.com">20080319130437.A13300@iglou.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Four score and seven years--eh, screw that!<br>
At about Wed, Mar 19, 2008 at 09:16:02AM -0700,<br>
Tyler blabbed on about:<br>
&gt; Just in case anyone&#39;s still interested in my fpcgi saga, here&#39;s an update.<br>
&gt;<br>
&gt; Adding an entry to the submitted forms for the nohtmlreturn field didn&#39;t<br>
&gt; resolve the issue. &nbsp;There were minor bomb outs (meaning the filepro<br>
&gt; processing didn&#39;t run and no output was produced) throughout testing, but<br>
&gt; after about 5 days it stopped outputting anything for any report.<br>
&gt;<br>
&gt; Working with fptech on the issue, so may have more to follow up with after<br>
&gt; speaking with them.<br>
<br>
By the time you&#39;ve reached this point, you could have migrated to OneGate<br>
and been done with all these problems, more than likely. &nbsp;And had better<br>
security and more features. &nbsp;And a lower Tylenol bill.<br>
<br>
You mentioned doing AJAX work with fpcgi. &nbsp;How are you getting around the<br>
inability of fpcgi to change MIME types on errors? &nbsp;Browsers are -really-<br>
picky about the type for the response to the XMLHTTPRequest object. &nbsp;Or is<br>
it just really ugly when it errors? &nbsp;:)<br>
<br>
mark-&gt;</blockquote></div><br>I&#39;m not actually sending back XML documents at all.&nbsp; They are inefficient and impractical for Javascript for most purposes (and especially mine, where mostly chuck small datagrams back and forth).&nbsp; I use JSON instead, and have a parsing/validation class that uses eval() to instantiate the data if it passes all the checks on the fly as an object literal.&nbsp; Some people complain about JSON not being human readable, but I myself rarely have that problem.&nbsp; Probably from staring at them too long in general :)<br>
<br>Tyler<br>