because 0 bytes of data other than the headers is being returned

check your php and make sure something is getting returned at all (i usually
put in static text at the top of the file to do this quickly, make sure the
url of the Ajax.request is pointing to the correct url (i've done this
before and about made myself bald until i realized i had a typo in the
URL... dangit case sensitivity)



On Thu, Apr 24, 2008 at 5:27 PM, polomasta <[EMAIL PROTECTED]> wrote:

>
> here is my ajax request code:
>
> var myAjax2 = new Ajax.Request (url, {
>        method: 'post',
>        contentType: 'application/x-www-form-urlencoded',
>        requestHeaders: ["Content-length","200"],
>        contentLength: '200',
>        onComplete: parseFlyout
> });
>
> and here is the request headers per FireBug:
>
> User-Agent      Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:
> 1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
> Accept  text/javascript, text/html, application/xml, text/xml, */*
> Accept-Language en-us,en;q=0.5
> Accept-Encoding gzip,deflate
> Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive      300
> Connection      keep-alive
> X-Requested-With        XMLHttpRequest
> X-Prototype-Version     1.6.0
> Content-Type    application/x-www-form-urlencoded; charset=UTF-8
> Content-Length  0
> Pragma  no-cache
> Cache-Control   no-cache
>
> my request hits a php script that is supposed to return a bunch of
> html.. the request get's stuck in "Loading" which I assumed was
> because of the size of the html response. Why is content-length in
> firebug showing 0??
>
> Thanks for the help
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to