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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:43:40+00:00 2026-05-23T03:43:40+00:00

I try to use dojox.data.JsonRestStore with my RESTful service. I read the articles by

  • 0

I try to use dojox.data.JsonRestStore with my RESTful service. I read the articles by sitepen and dojox documentation but I can’t understand what they are all about.
My service gets requests like http://<host>/rest/relatedsuggestion?query=weath&results=3 and returns JSON

{
Suggestions: [
    “weather channel”,
    “weather forecast”,
    “weather bbc”
    ]
}

It means that it can’t understand request like http://<host>/rest/relatedsuggestion/3 which are used in every tutorial. How can I make it to understand my format? And as far as I understood the responce is also unusual for this class.

In order to try JsonRestStore I wrote the following mock up page, of cource it doesn’t work and returns 4 errors “Type error: _57 is null”:

<head>
    <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js"
    djConfig="parseOnLoad: true">
    </script>
    <script type="text/javascript">
        dojo.require("dojox.data.JsonRestStore");
        dojo.require("dojox.grid.DataGrid");

        dojo.addOnLoad(function() {
            var poStore = new dojox.data.JsonRestStore({target:"http://<host>/rest/features/relatedsuggestion"});

            poStore.fetchItemByIdentity({
                identity:"3433",
                onItem:function(poItem){
                    poItem.completeOrder();
                }
            });
        });
    </script>
    <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dijit/themes/claro/claro.css"
    />
</head>

<body class=" claro ">
    <div id="gridElement"></div>
</body>
  • 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-23T03:43:41+00:00Added an answer on May 23, 2026 at 3:43 am

    This IBM developerWorks article might be of help: Use Dojo’s JsonRestStore with your REST services.

    From your description, your service is non-standard, so you’ll need to adapt both the URLs and the response mangling to fit what JsonRestStore expects. That article explains how you can do that by implementing your own service.

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

Sidebar

Related Questions

I try to use a variable in my kshell script but can't get a
I try use ms access as data provider but it give me exception. static
I try use string as a regular expression pattern but I've following errors PHP
i try to use jquery .text() but not really work : Before <a id=group_name
I try to use the columnFilter add-on of jquery datatable but I couldn't make
RegexBuddy shows the matches are OK, but in C# when I try use replace,
I try use gssapi32.dll in my application but I receive exception when app start
how to generate random number in this code? I try use $RANDOM, but the
I try use a integer array in java with the code below: public static
I try to use the great particle emitter which Michael Daley build for his

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.