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

GOT IT! thanks...that was correct...mixing this. and ! this....

Expand Messages
  • sudermatt
    ... missing ... var when ... missing? ... 02/09/2007
    Message 1 of 6 , Sep 3, 2007
    • 0 Attachment
      --- In ydn-javascript@yahoogroups.com, "Satyam" <satyam@...> wrote:
      >
      > Either use 'this' all the time or don't. Read your source, you are
      missing
      > 'this' in one place. Anyway, it is better if you declare it with
      'var' when
      > you create the DataSource and don't use 'this' at all.
      >
      >
      > ----- Original Message -----
      > From: "sudermatt" <sudermatt@...>
      > To: <ydn-javascript@yahoogroups.com>
      > Sent: Monday, September 03, 2007 7:25 PM
      > Subject: [ydn-javascript] Re: Datatable Problem : datasource has no
      > properties
      >
      >
      > > OK,
      > >
      > > I tried what you suggested, but it still didn't work. What am I
      missing?
      > >
      > > Here is my NEW script
      > >
      > > <script type="text/javascript">
      > >
      > >
      > > YAHOO.util.Event.addListener(window, "load", function() {
      > > YAHOO.example.Scrolling = new function() {
      > > var myColumnDefs = [
      > > {key:"UserID", label:"User ID"},
      > > {key:"UserName", label:"User Name"},
      > > {key:"AvgPoints", label:"Avg. Points"},
      > > {key:"NumPred", label:"Num. Pred."}
      > > ];
      > >
      > > this.myDataSource = new
      > > YAHOO.util.DataSource(YAHOO.example.UserPoints);
      > > this.myDataSource.responseType =
      > > YAHOO.util.DataSource.TYPE_JSARRAY;
      > > myDataSource.responseSchema = {
      > > fields: ["UserID","UserName","AvgPoints","NumPred"]
      > > };
      > >
      > > this.myDataTable = new YAHOO.widget.DataTable("myContainer",
      > > myColumnDefs,
      > > this.myDataSource, {scrollable:true});
      > > };
      > > });
      > > </script>
      > >
      > >
      > >
      > >
      > >
      > >
      > >
      > > Yahoo! Groups Links
      > >
      > >
      > >
      > >
      > >
      > > --
      > > No virus found in this incoming message.
      > > Checked by AVG Free Edition.
      > > Version: 7.5.484 / Virus Database: 269.13.2/985 - Release Date:
      02/09/2007
      > > 16:32
      > >
      > >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.