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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
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 <bjoyce-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
the url in the request looks perfect... and if I put it into a browser it give me the correct stuff. the php script is just doing a bunch of echo("<div>myhtml here type</ div>"); type stuff and for some reason this is not making it back thru the request On Apr 24, 4:56 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 <bjo...-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
link? On Thu, Apr 24, 2008 at 6:12 PM, polomasta <bjoyce-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> wrote:> > the url in the request looks perfect... and if I put it into a browser > it give me the correct stuff. > > the php script is just doing a bunch of echo("<div>myhtml here type</ > div>"); type stuff and for some reason this is not making it back thru > the request > > > > On Apr 24, 4:56 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > 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 <bjo...-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
wish I could... the page displays private customer data. I''m stumped.. does it matter if I use Get or Post? On Apr 24, 6:27 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> link? > > On Thu, Apr 24, 2008 at 6:12 PM, polomasta <bjo...-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> wrote: > > > the url in the request looks perfect... and if I put it into a browser > > it give me the correct stuff. > > > the php script is just doing a bunch of echo("<div>myhtml here type</ > > div>"); type stuff and for some reason this is not making it back thru > > the request > > > On Apr 24, 4:56 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > 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 <bjo...-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
ok, try this, put in a temp div and do an ajax.updater to that url and see if the div gets updated On Thu, Apr 24, 2008 at 7:44 PM, polomasta <bjoyce-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> wrote:> > wish I could... the page displays private customer data. > > I''m stumped.. does it matter if I use Get or Post? > > On Apr 24, 6:27 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > link? > > > > On Thu, Apr 24, 2008 at 6:12 PM, polomasta <bjo...-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> wrote: > > > > > the url in the request looks perfect... and if I put it into a browser > > > it give me the correct stuff. > > > > > the php script is just doing a bunch of echo("<div>myhtml here type</ > > > div>"); type stuff and for some reason this is not making it back thru > > > the request > > > > > On Apr 24, 4:56 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > 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 <bjo...-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
still no updates... when I check firebug under response it still says "Loading..." On Apr 24, 7:03 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> ok, try this, put in a temp div and do an ajax.updater to that url and see > if the div gets updated > > On Thu, Apr 24, 2008 at 7:44 PM, polomasta <bjo...-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> wrote: > > > wish I could... the page displays private customer data. > > > I''m stumped.. does it matter if I use Get or Post? > > > On Apr 24, 6:27 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > link? > > > > On Thu, Apr 24, 2008 at 6:12 PM, polomasta <bjo...-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> wrote: > > > > > the url in the request looks perfect... and if I put it into a browser > > > > it give me the correct stuff. > > > > > the php script is just doing a bunch of echo("<div>myhtml here type</ > > > > div>"); type stuff and for some reason this is not making it back thru > > > > the request > > > > > On Apr 24, 4:56 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > 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 <bjo...-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> > > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Fri, Apr 25, 2008 at 11:03 AM, polomasta <bjoyce-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> wrote:> > still no updates... when I check firebug under response it still says > "Loading..."Firebug will say that if no content is returned from an Ajax call. -justin --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
problem solved... found a typo in the PHP script of course. Thanks for your suggestions! On Apr 25, 11:21 am, "Justin Perkins" <justinperk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Fri, Apr 25, 2008 at 11:03 AM, polomasta <bjo...-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> wrote: > > > still no updates... when I check firebug under response it still says > > "Loading..." > > Firebug will say that if no content is returned from an Ajax call. > > -justin--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
this is why i said to put static text at the top of the php file I guess i should have been more explicit and said: in the php file on the very first line put test text <?php .... ?> On Fri, Apr 25, 2008 at 12:23 PM, polomasta <bjoyce-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> wrote:> > problem solved... found a typo in the PHP script of course. > > Thanks for your suggestions! > > On Apr 25, 11:21 am, "Justin Perkins" <justinperk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On Fri, Apr 25, 2008 at 11:03 AM, polomasta <bjo...-PGNGAmqIy5icqzYg7KEe8g@public.gmane.org> wrote: > > > > > still no updates... when I check firebug under response it still says > > > "Loading..." > > > > Firebug will say that if no content is returned from an Ajax call. > > > > -justin > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---