SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Oct 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face Javascript Recursion/JSON

    I'm trying to build a nested JSON list from UL/LI elements, but I just can't get it work with recursion. I have an example here. You can see the javascript I've written and my ideal output.

    Can anyone help me?!

  2. #2
    SitePoint Zealot
    Join Date
    Aug 2009
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    404 error. look up json.org for examples.
    MYCFMX (Under Construction)
    http://www.mycfmx.com/

    More from me - coming soon

  3. #3
    SitePoint Member
    Join Date
    Oct 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I should have deleted this. It turned out to be a variable scope issue. Thanks though!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •