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

Re: [ydn-javascript] Re: Using Element to get Textarea value

Expand Messages
  • Matt Sweeney
    ... This is a timing issue. Due to the asynchronous nature of onAvailable/onContentReady (which Element uses under the hood), your call to get is being
    Message 1 of 8 , Feb 28, 2007
    • 0 Attachment
      tropeanojohn wrote:
      > I tried. Not working.
      >
      >
      This is a timing issue. Due to the asynchronous nature of
      onAvailable/onContentReady (which Element uses under the hood), your
      call to get is being executed before the Element is actually ready.

      You can either defer your calls to "get" until "contentReady" fires (per
      my example), or create your Element instance outside of the click
      handler so it will be ready onclick.

      Matt
    Your message has been successfully submitted and would be delivered to recipients shortly.