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

Re: [ydn-javascript] [SOLVED] Re: Carousel k = null

Expand Messages
  • Gopal Venkatesan (गोपाल वे
    On Mon, Dec 1, 2008 at 2:59 PM, D. Wayne Fincher ... No problemo :) -- Gopal Venkatesan http://g13n.in/ Note: if you see question marks (?????) after my name
    Message 1 of 9 , Dec 1, 2008
    • 0 Attachment
      On Mon, Dec 1, 2008 at 2:59 PM, D. Wayne Fincher
      <slowlychillin@...> wrote:
      > Gopal Venkatesan, you sir are a genius!
      >
      > It seems that the one failed "hunk" was of no concern. The patch has
      > resolved the issue beautifully!
      >
      > Thanks a lot for getting me squared away ;)

      No problemo :)

      --
      Gopal Venkatesan
      http://g13n.in/

      Note: if you see question marks (?????) after my name in the From
      header, then your mail tool is not Unicode enabled!
      You should see my name (Gopal Venkatesan) in Hindi (गोपाल वेंकटेसन)
    • flickrphotogabe
      ... This patch also fixed this error for me. There may be a small mistake in the example code as well, when I try using the following html, as specified here:
      Message 2 of 9 , Dec 5, 2008
      • 0 Attachment
        --- In ydn-javascript@yahoogroups.com, "Gopal Venkatesan (गोपाल
        वेंकटेसन)" <gopal@...> wrote:
        >
        > On Sun, Nov 30, 2008 at 7:47 AM, D. Wayne Fincher
        > <slowlychillin@...> wrote:
        > > Gopal Venkatesan, thank you for looking into this!
        > >
        > > The error is now ---> parent = null
        > >
        > > I apologize for not being more specific about the carousel's intended
        > > location.
        > >
        > > The url the carousel is on is:
        > >
        > > http://www.road-wars.com/index.php?p=inventory
        >
        > Hi Wayne:
        >
        > There was a bug in the Carousel, the initialization code did not obey
        > the return value of the _parseCarousel() internal method. This has
        > been fixed and would be part of the next release, but I'm posting you
        > the patch (now) that fixes this bug.
        >
        > http://gopalarathnam.com/software/yui/260/carousel_selectedItem_patch.js
        >
        > Please tell me if it worked for you.

        This patch also fixed this error for me. There may be a small mistake
        in the example code as well, when I try using the following html, as
        specified here:

        http://developer.yahoo.com/yui/examples/carousel/csl_dynload2.html

        <div id="container">
        <ol id="carousel"></ol>
        </div>

        And then create a carousel:
        var carousel = new YAHOO.widget.Carousel("container");
        var imgitem = "<img
        src=\"http://farm2.static.flickr.com/1132/1320863204_4c1ee91d46_m.jpg\">";
        carousel.addItem(imgitem);
        var imgitem = "<img
        src=\"http://farm3.static.flickr.com/2331/2067957290_24283a46ea_m.jpg\">";
        carousel.addItem(imgitem);
        carousel.render("carousel");
        carousel.show();


        I get the following error: uncaught exception: Node cannot be
        inserted at the specified point in the hierarchy
        (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)
        http://u-market-trunk/yui/build/element/element-beta.js
        Line 761

        (this is w/the patch applied)

        The fix, for me was to remove the id="carousel" from the <ol></ol> and
        just leave it w/no id.

        Just an FYI... maybe I'm doing something wrong when following the
        example.

        I can supply a diff to fix the docs, if you think it's needed,
        gabe.
      Your message has been successfully submitted and would be delivered to recipients shortly.