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 8398343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:01:52+00:00 2026-06-09T21:01:52+00:00

I’m using Feedburner to show feeds. Sometimes the feeds have the same text. I

  • 0

I’m using Feedburner to show feeds. Sometimes the feeds have the same text. I would like to ‘hide’ any ‘duplicates’ of a certain feed. I have wrapped the feedburner script inside a div ‘unique’ like this: jsFiddle

I have set display:none for the feeds because I only want to show the feeds which match the ‘index’. I don’t understand why the var is not ‘showing’

  • 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-06-09T21:01:54+00:00Added an answer on June 9, 2026 at 9:01 pm

    I think the .text() query is incorrect.

    var a = $('.unique a').text();
    

    The above returns just text:

    Man dood na val in liftschacht RotterdamBulgarije geeft foto vrij van
    tweede verdachte bomaanslagStraat ontruimd bij grote brand
    OverdinkelAsiel Assange verandert niets voor LondenMoordenaar
    honkballer Halman op vrije voetenGrote brand in Overdinkel’Broer
    vermoorde honkballer ontoerekeningsvatbaar’Boete voor RET om
    studentenreisgegevensDode bij crash vliegtuigje BiddinghuizenMinder
    tienermoeders dan ooit in Nederland

    There is nothign in a to iterate through.

    I think you may be wanting to do:

    var a = $('.unique a');
    

    This returns a list of items you can iterate over now.

    The next issue I can see is that your filter method simply iterates through the array of 12 items and still return the same 12 items, the item at the index will always match the current item.

    Try this solution:

    $(document).ready(function() {
        var $a = $('.unique a');
        var unique = {};
    
        for (i = 0; i < $a.length; i++) {
            var itemText = $($a[i]).text();
            if (unique[itemText]) {
                $($a[i]).remove();
            }
            else {
                unique[itemText] = true;
            }
        };
    
        $('.unique').show();
    });
    

    See DEMO

    I declared unique as an object. This object will keep a record of each anchor text value we already processed by adding the itemtext as a property assigning the of true. This is possible due to the dynamic nature of JavaScript which allows you to assign proeprties to an object on the fly.

    Boete voor RET om studentenreisgegevens true,
    Bulgarije geeft afbeelding vrij van verdachte aanslag true,
    Ecuador verleent Wikileaks-baas Julian Assange politiek asiel true

    When calling unique[itemText] we are asking the unique object to give us value of the property with the name matching what is in itemText.

    If the property exists the value true is returned as that is the value we assign to the property. We will now remove the value from the source as we already processed it.
    If the property is not found then undefined is returned and we add the property dynamically to the unique object assigning it the value of true.

    With the source now stripped of the duplicates we make the container visible again.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I would like to run a str_replace or preg_replace which looks for certain words
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a text area in my form which accepts all possible characters from
I have thousands of HTML files to process using Groovy/Java and I need to
I have a reasonable size flat file database of text documents mostly saved in
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a bunch of posts stored in text files formatted in yaml/textile (from

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.