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

Re: [ydn-javascript] DataTable - Change "Loading data..." text to an animated .gif?

Expand Messages
  • Satyam
    The DataTable will load into the message box any string that is in MSG_LOADING. If MSG_LOADING contains the HTML for an image, it will show that image.
    Message 1 of 2 , Nov 1, 2007
    • 0 Attachment
      The DataTable will load into the message box any string that is in
      MSG_LOADING. If MSG_LOADING contains the HTML for an image, it will show
      that image. Notice that you also have CLASS_xxx variables (they are meant
      to be constants, but JavaScript does not have constants) for each of the
      messages so you can either put an <img> tag into the MSG_xxx string or
      change the CLASS_xxx to a style you define with a background image.

      Satyam


      ----- Original Message -----
      From: "Shafique" <shafique_kassam@...>
      To: <ydn-javascript@yahoogroups.com>
      Sent: Thursday, November 01, 2007 8:15 PM
      Subject: [ydn-javascript] DataTable - Change "Loading data..." text to an
      animated .gif?


      > Howdy all:
      >
      > When results are coming back to the data table, it says "Loading data..."
      >
      > I found where this is set in the datatable-beta.js file:
      >
      > /**
      > * Message to display while DataTable is loading data.
      > *
      > * @property DataTable.MSG_LOADING
      > * @type String
      > * @static
      > * @final
      > * @default "Loading data..."
      > */
      > YAHOO.widget.DataTable.MSG_LOADING = "Loading data...";
      >
      > Is it possible to set this to something else like an animated .GIF or
      > another image file?
      >
      > Thanks!
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      > --
      > No virus found in this incoming message.
      > Checked by AVG Free Edition.
      > Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date:
      > 01/11/2007 6:01
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.