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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:38:08+00:00 2026-06-17T12:38:08+00:00

I currently have a set of json data that I wish to filter through,

  • 0

I currently have a set of json data that I wish to filter through, however it does not work when i attempt to filter through it & shows an error: ‘ TypeError: ‘undefined’ is not a function ‘

Here’s a snippet:

load: function(data){
    for (var i = 0; i < data.length; i++) {
        var titlePane = new TitlePane({
            title: data[i].Name ,
            open: false,
            content: '<div>' + data[i].Summary  +   '</div>'
        });
        titlePane.placeAt(dom.byId('licenseContainer'));
        titlePane.filter({ Archived:true });
    }
 },

As you can see I only want to have the json data that are archived to be displayed.

Here’s a snippet of my json data:

  [ {"Name":"james", "Archived":true, "Summary": "sfksfsd"}, {"Name":"kay", "Archived":false, "Summary": "sfksfsd"}, {"Name":"greg", "Archived":true, "Summary": "sfksfsd"}           ]

Any ideas why this is not working?

  • 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-17T12:38:09+00:00Added an answer on June 17, 2026 at 12:38 pm

    EDIT Update function to do what I assume the OP wants the filter method to do for him.

    You call a function dom.byId when I think you really meant to say dojo.byId Your function should in fact look like this:

    load: function(data){
        for (var i = 0; i < data.length; i++) {
            if (data[i].Archived) {
                var titlePane = new TitlePane({
                    title: data[i].Name,
                    open: false,
                    content: '<div>' + data[i].Summary + '</div>'
                });
                titlePane.placeAt(dojo.byId('licenseContainer'));
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently, I have json data of several twitter feeds that I parse to fill
Currently I have a site that is set up using a masterpage and a
Currently I have this: [SomeCustomAttribute] public string Name { get; set; } However, I
I currently have an API script that returns JSON. It has worked up until
I am developing a web app that accesses some external JSON data. I'm currently
I have this piece of code that currently almost does what I need. It
I currently have an Entity Framework model that collects data from a legacy database
I currently have this set up and working fine inside a users folder. RewriteEngine
I currently have Magento set up on a development server (remote, SSH access) and
I currently have a set of tabs, each tied to a fragment, and I've

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.