Advanced Search

Results 1 to 2 of 2

Thread: jquery questions on # thingy and json

  1. #1
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Question jquery questions on # thingy and json

    # Thingy
    So I wanna make a fancy menu like this
    HTML Code:
    <ul>
    		<li><a href="#home">Home Sweet Home</a></li>
    		<li><a href="#documentation?group=1&article=3">Getting Started</a></li>
    	</ul>
    <div class="content">
    CLICK A LINK FOO!
    </div>
    How do I get it in jQuery so that I can use that # thingy to pull up a page on div class content?

    JSON
    What is it, how in the coding gods underworld do you actually use it? Now, to help because i hear it can do some wide range of fancy pants things... Can I use it to assist in retrieving information from a file (probably xml) or database?


    NOTE FOR BOTH: i have looked through the jQuery site for both of these things and can't seem to find them, looked through example codes such as lightboxes and other things like that, but I can't seem to find it!
    thnx!

  2. #2
    Join Date
    Jan 2008
    Posts
    4,158
    Thanks
    28
    Thanked 623 Times in 619 Posts
    Blog Entries
    1

    Default

    To be able to pull out the ul with a selector, give it an id. Then in jquery:
    Code:
    $("#id")
    Just like CSS.

    JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language.
    http://json.org/
    Jeremy | jfein.net

Tags for this Thread

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
  •