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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:53:30+00:00 2026-06-07T21:53:30+00:00

I have a dijit.form.FilteringSelect using a dojo.store.JsonRest instance as the store. My back end

  • 0

I have a dijit.form.FilteringSelect using a dojo.store.JsonRest instance as the store.

My back end service for the store gets the data from somewhere else that requires authentication. Occasionally, this authentication might fail, and I’d like to report that to the browser.

The error that get returned is JSON and the response is 404, so I can see this logged in the console. However, I can’t seem to find a way to hook into that, so I can do something useful with it, either via the FilteringSelect instance, or via the JsonRest instance.

Given the following code, where can I add an error handler function?

var store = new JsonRest({
    target: "/json/store/",
    idProperty: "InternalID"
});

var widget = new FilteringSelect({
    id: 'widgetId',
    store: store,
    searchAttr: 'name'
}, 'widgetId'
});

The version of Dojo being used is 1.7.3.

  • 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-07T21:53:32+00:00Added an answer on June 7, 2026 at 9:53 pm

    I ended up intercepting the QueryResults returned by the store.query, and created my own Deferred with an appropriate error handler. Similar to the FilteringSelect, I also had to trap for cancellations.

    The resulting portion of code goes after the definition of the store, and before the FilteringSelect.

    aspect.after(store, 'query', function(QueryResults) {
        Deferred.when(QueryResults, function() {}, function(err) {
            if (err.dojoType && err.dojoType == 'cancel') {
                return; // ignore cancellations
            }
            // Do custom error handling here
        });
        return QueryResults;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dijit.form.Select widget. It's tied to a data store, if that matters.
I have some problems getting the custom formated JSON data into a dijit.form.FilteringSelect. It
I have the following code: <button data-dojo-type=dijit.form.Button data-dojo-props='baseClass:styleButton' name=_action_update type=submit label=Save >Save</button> The problem
I have an Observable dojo.store.JsonRest store that is wrapped in a dojo.data.ObjectStore for use
I have a dynamic dojo form in which I have a dijit.form.Select whose selected
I have an HTML form using dojo and have the following code for a
I'd like to have a dijit.form.Calendar embedded directly in my dojo form, rather than
I have a dijit.form.FilteringSelect component and I want to change the options dynamically. But
I have encountered a strange behaviour using dijit.form.select inside a tooltip-dialog. Here's a shortened
I have the following declarative js/dojo code running properly in Chrome: <div dojoType=dijit.form.TextBox> <script

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.