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

YUILoader + YAHOO.util.Element

Expand Messages
  • zapo86r
    I have code like this: http://pastebin.dp.cx/139 When run on a page like this: http://pastebin.dp.cx/140 The following is output to Firebug console: 11:13:22
    Message 1 of 4 , May 28 8:19 AM
    • 0 Attachment
      I have code like this: http://pastebin.dp.cx/139

      When run on a page like this: http://pastebin.dp.cx/140

      The following is output to Firebug console:

      11:13:22 AM (0ms): global: Logger output to the function
      console.log() has been enabled.
      11:13:22 AM (0ms): AttributeProvider: element not found
      11:13:22 AM (16ms): AttributeProvider: element not found
      11:13:22 AM (0ms): Attribute: setValue element, doc failed: read only

      It seems to be complaining about
      var el = new YAHOO.util.Element('doc');

      because at the time this is run, #doc doesn't exist. From the way the
      docs explain, it should hold the information until that object is
      loaded, but maybe the loader changes that behavior.

      Any help would be appreciated!
    • zapo86r
      Bump?
      Message 2 of 4 , Jun 2, 2008
      • 0 Attachment
        Bump?

        --- In ydn-javascript@yahoogroups.com, "zapo86r" <gms8994@...> wrote:
        >
        > I have code like this: http://pastebin.dp.cx/139
        >
        > When run on a page like this: http://pastebin.dp.cx/140
        >
        > The following is output to Firebug console:
        >
        > 11:13:22 AM (0ms): global: Logger output to the function
        > console.log() has been enabled.
        > 11:13:22 AM (0ms): AttributeProvider: element not found
        > 11:13:22 AM (16ms): AttributeProvider: element not found
        > 11:13:22 AM (0ms): Attribute: setValue element, doc failed: read only
        >
        > It seems to be complaining about
        > var el = new YAHOO.util.Element('doc');
        >
        > because at the time this is run, #doc doesn't exist. From the way the
        > docs explain, it should hold the information until that object is
        > loaded, but maybe the loader changes that behavior.
        >
        > Any help would be appreciated!
        >
      • agentorangejdm
        ... Where is the script placed within the page ?
        Message 3 of 4 , Jun 2, 2008
        • 0 Attachment
          --- In ydn-javascript@yahoogroups.com, "zapo86r" <gms8994@...> wrote:
          >
          > I have code like this: http://pastebin.dp.cx/139
          >
          > When run on a page like this: http://pastebin.dp.cx/140
          >
          > The following is output to Firebug console:
          >
          > 11:13:22 AM (0ms): global: Logger output to the function
          > console.log() has been enabled.
          > 11:13:22 AM (0ms): AttributeProvider: element not found
          > 11:13:22 AM (16ms): AttributeProvider: element not found
          > 11:13:22 AM (0ms): Attribute: setValue element, doc failed: read only
          >
          > It seems to be complaining about
          > var el = new YAHOO.util.Element('doc');
          >
          > because at the time this is run, #doc doesn't exist. From the way the
          > docs explain, it should hold the information until that object is
          > loaded, but maybe the loader changes that behavior.
          >
          > Any help would be appreciated!
          >

          Where is the script placed within the page ?
        • zapo86r
          ... At the end of the head section.
          Message 4 of 4 , Jun 2, 2008
          • 0 Attachment
            > Where is the script placed within the page ?
            >

            At the end of the head section.
          Your message has been successfully submitted and would be delivered to recipients shortly.