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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:23:01+00:00 2026-05-27T20:23:01+00:00

I am using the Dojo Toolkit to build an SRS to both aid in

  • 0

I am using the Dojo Toolkit to build an SRS to both aid in my learning of both the Dojo Toolkit and the Japanese language.

For those of your who don’t know an SRS is basically a flash card system.

So, I have a side bar where I can choose a deck of cards to review and when I click on a deck from the list it opens up a new tab in a TabContainer which contains two ContentPanes.

One ContentPane contains a DataGrid which currently uses an ItemFileWriteStore with a url to a json file.

The json file contains the items for the DataGrid with each item possesing an id, question and answer.

The id is currently just an integer value and the question and answer both contain Japanese strings.

The idea is that when a row in the DataGrid is clicked, the ContentPane below the one containing the DataGrid should have it’s contents replaced with a dijit.Editor.

The original contents of the ContentPane before they are replaced is just a simple string saying Click on the rows in the grid above to edit a card's details.

I am creating the dijit.Editor programmatically and everything works well until I try to give it a Japanese string from the DataGrid‘s row.

This is my JavaScript which gets the DataGrid row’s information and creates the dijit.Editor:

(grid is the DataGrid object and card_details is the id of the ContentPane)

dojo.connect(grid, 'onRowClick', function(e) {
    var id = grid.getItem(e.rowIndex).id;
    var question = grid.getItem(e.rowIndex).question;
    var answer = grid.getItem(e.rowIndex).answer;

    dojo.byId('card_details').innerHTML = '';

    var editor = new dijit.Editor({
        id: 'editor',
        value: question
    }, dojo.byId('card_details'));
});

The code above creates the dijit.Editor in the ContentPane but doesn’t fill it with the value stored in the question variable (I have logged and alerted the variable and it does contain the expected value).

However if I replace the variable with a literal string like My String or even something in Japanese like 反乱者 it works just fine.

It even works if I replace: var question = grid.getItem(e.rowIndex).question; with: var question = '反乱者';

Does anybody know why it won’t work when using the question variable when it has been assigned it’s value via grid.getItem(e.rowIndex).question?

I am still a beginner when it comes to Dojo Toolkit so I’m sure it must be something obvious.

Any help would be appreciated!

  • 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-27T20:23:01+00:00Added an answer on May 27, 2026 at 8:23 pm

    I have found the answer to my question now.

    It turns out I just needed to change:

    var question = grid.getItem(e.rowIndex).question;
    

    to:

    var question = grid.store.getValue(grid.getItem(e.rowIndex), 'question');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a web application using Spring JS and Dojo Toolkit. In this
Using Dojo 1.7, my ValidationTextBox or NumberTextBox widgets don't hold focus. <input name=mm id=mm
I am using Dojo Toolkit and I want form elements to serialize into array,
I'm using Dojo trying to build an application with dojo's dnd. I've looked around
i am using dojo toolkit with php codeigniter 2.1.0 and i want to put
I so rarely ever get pulled into dojo related work that I don't know
I am implementing a mobile application using the Dojo Toolkit. The application has several
I'm using jQuery's ajax calls to create a chart, from the Dojo toolkit, based
I recently built a project using the Dojo toolkit and loved how you can
I have a problem with events on IE8 (dread!), using dojo toolkit 1.4.3 (can't

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.