Loading ...
Sorry, an error occurred while loading the content.

Re: Default Connection Header

Expand Messages
  • tssha
    ... include this header? Yes. Just add the third argument -- true -- to this method to indicate the header is to be issued for all transactions. For example:
    Message 1 of 3 , Dec 8, 2008
    • 0 Attachment
      --- In ydn-javascript@yahoogroups.com, "nwientge" <nick@...> wrote:
      >
      > I'm building a RESTful Rails app and need all of my AJAX requests to
      include this header:
      >
      > YAHOO.util.Connect.initHeader("Accept", "text/javascript");
      >
      > Is there a way to extend the Connection Manager Class to always
      include this header?

      Yes. Just add the third argument -- true -- to this method to
      indicate the header is to be issued for all transactions.

      For example:
      YAHOO.util.Connect.initHeader("Accept", "text/javascript", true);

      Regards,
      Thomas
    Your message has been successfully submitted and would be delivered to recipients shortly.