Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 710575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:38:11+00:00 2026-05-14T04:38:11+00:00

I’ve been struggling with a feature I’ve been trying to create for sometime. The

  • 0

I’ve been struggling with a feature I’ve been trying to create for sometime.
The idea here is that the user sees the little thumbnail + headline, as well as the Posted By information. They can then click on the headline to expand to the article or click on the “Comments” link to expand directly to the comments made on the article. Or, if they want they can view comments by clicking on the headline(to expand to the article), then click on View Comments (to expand to the comments). In the end, a modular yet flexible and functional open/close system to view latest news.

Here is what I’ve been working on: (I put all my code in one place so its easier on whomever may look at this to view) http://notedls.com/pointtest.html

This is what I’m shooting for, but it’s far from what I want ;(
It’s using the jQuery 1.6 plugin, which 1.8 is out but I’m far from being a master or expert at this and I don’t think I could build from the ground up. I’ve already edited this plugin to get it to work like this, but as you can see, the AUTHOR and Comments start making shit hit the fan ;; It’s because the code is calling the “A TAG” for the header; which is the headline.

Does anyone know any easier way to achieve what I’m envisioning or possible a way to fix this current code? I’m pretty desperate at this point ;;

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:38:11+00:00Added an answer on May 14, 2026 at 4:38 am

    Something like this:?

    http://jsbin.com/elawu

    alt text

    It’s an accordion. Each “first element”, or header, is a div. Within that header is an article headline, an author, and a clickable span listing the number of comments for that article.

    Each “second element”, or content portion of the accordion, is also a div. Within that div there is an article content div, and comments div. Within the comments div there is a comment header, again clickable, and another content div. The hierarchy looks like this:

    <div id='outer-accordion'>
       <div class='header'>
          <p>Article headline</p>
          <p>by: Author</p>
          <p><span class='clickable'># comments</span></p>
       </div>
       <div class='content'>
          <div class='article'>...</div>
          <div class='comments'>
            <p><span class='clickable'># of comments</span></p>
            <div class='comment-content'>
               comment #1
               comment #2
               ...
            </div>
          </div>
       </div>
    
       ....
    

    When the page starts all the comment content divs get hidden via $('div.comments div').hide(); Also the accordion gets set up, and the accordion onaccordionchange and onaccordionchangestart events get bound. Finally, a click event is registered for the Comments links.

    If you click anywhere on the header, it pops open the associated accordion content tab. If you click on the comments link in the header, it opens the accordion, and opens the comments div within the content div.

    Any time an accordion tab gets opened, the comments link in the header gets hidden. Any time an accordion tab closes, the comments link in the header gets shown.

    Clicking on the comments link within the accordion content div, toggles the actual comments.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to loop through a bunch of documents I have to put
I'm looking for suggestions for debugging... If you view this site in Firefox or
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.