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

Re: Getting 'oResponse has no properties" error when loading DataTable with JSON

Expand Messages
  • Rich
    Turned out that I didn t load the Connection YUI component, doh! Works fine now.
    Message 1 of 2 , Aug 31 5:04 PM
    • 0 Attachment
      Turned out that I didn't load the Connection YUI component, doh!

      Works fine now.


      --- In ydn-javascript@yahoogroups.com, "Rich" <razon@...> wrote:
      >
      >
      > I could swear I'm following the YUI example for loading a DataTable
      > with JSON over XHR to a tee. But I'm still getting a "oResponse has
      > no properties" error.
      >
      > Here's the XHR url I'm trying to get data from:
      > http://announce.corp.yahoo.com/smartadslite/xhr.php?action=foo
      >
      > Here's how my DataSource is set up:
      > var myDataSource = new YAHOO.util.DataSource
      > ("/smartadslite/xhr.php?");
      > myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
      > myDataSource.responseSchema = {
      > resultsList: "items",
      > fields:
      > ["username","campaign_id","group_id","date_submitted","actions"]
      > };
      >
      >
      > Using Firebug, I indeed see oResponse is null at the time of the
      > error.
      >
      >
      > Help a noob out?
      > Thanks,
      > Rich
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.