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 <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> wrote:
> > link?
> >
> > On Thu, Apr 24, 2008 at 6:12 PM, polomasta <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> 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 <[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