Login Register

ItemFileReadStore

ItemFileReadStore - dumb problem

Consider the following simple code:

var mData ={ identifier: 'name', items:
[ {'name': 'strength', 'value': '5 of 5'},
{'name': 'Romberg', 'value': 'negative'},
{'name': 'tandem', 'value': 'unsteady'},
{'name': 'tongue', 'value': 'deviates in midline'},
{'name': 'pronator drift', 'value': 'none'},
{'name': 'biceps, triceps', 'value': '2+'},
{'name': 'knees', 'value': '3+'},
{'name': 'ankles', 'value': '1+'}
]
}

var mFile = "motorold.json";
var eStore = new dojo.data.ItemFileReadStore({url: mFile});

Bringing PHP, MySQL, and Dojo together

I made a pact that I’d add documentation on how to use PHP, MySQL, and Dojo together, when finishing the Dojo ItemFileReadStore demo. It’s not easy to format a JSON specific file with PHP, which includes special characters and requires JSON members. With several PHP JSON encoders out there, I recommend using the PHP encoder which came bundled with the toolkit (dojo/tests/resources/JSON.php).

ItemFileReadStore and PreventCache

I'm using Dojo 1.1.1. What it the syntax to use preventCache in ItemFileReadStore? Thanks.

pulling items out of a store in vars

Please forgive beginner question, all alone in rural zone
no one knows anything about dojo

http://colleenweb.com/dtdg-CAFEkids.html

Am fooling with example in Matt's book on page 208. I am getting the store OK, all the commented code works. It is only
when I try to bind a specific item to a local variable.
I get error msg from Firebug
Using FF3 Ubuntu
I need to be able to do this because the remaining examples use this technique to start writing to datastore.
My code looks just like in the book AFAIK. It is this line:

Multiple FilteringSelect using Single JSON Data Store

Is is possible for multiple filtering selects (or combo boxes) to use different sets of data inside a single JSON data store?

I have a form with multiple FilteringSelects, whose items I want to retrieve from a file on the server, but I don't want to have to have a separate file for each FilteringSelect.

I was hoping that I could use the ItemFileReadStore to load a single JSON Data file that contains the multiple sets of items that I can use to populate multiple FilteringSelects.

Grid not displaying data

Hi,
I am new to dojo and still learning it. I am facing a problem that I am sending a JSON response from the server and Iam trying to display that response data in the grid. Well I am getting the response back to the client but data is not vivible on the grid and the debug console shows no error. Can any one help mw ASAP as I need this very urgently.

Thanks in advance.

(Solved) Grid Layout using BorderContainer and ItemFileReadStore issue

I posted the same issue while ago, now I am using Dojo 1.1.1. But this problem still exists. Grid layout using BorderContainer works fine if I don't load the data from ItemFileReadStore. However, if I load the data from ItemFileReadStore, the Grid is blank. Any ideas would appreciated.

Thanks a lot.

Solved: It was the stylesheet problem.

How to programmatically create a filteringSelect and its associated data store

The two functions below are two different attempts to programmatically create a filteringSelect and its associated data store. I believe I am not properly creating the data store. The first method...


function createPicklist(elemId, fldLabel, fldCount) {
showMsg("creating picklist for:\nnelemId:" + elemId + "\nlabel:" + fldLabel + "\ni:" + i);
// This function creates a filteringSelect element for the specified field from the database

// get the body element
var doc = document;
var htmlElement = doc.documentElement;

Some suggestions

1
It's better for DOJO to make a widget just like "CaseCadingDropDown" in MicroSoft-Asp.net's AjaxToolkit.
We know , we always have to make two "" or more when we want to make "Country-Town-Street-PostCode" select .
So why don't we just make a widigt called "CaseCadingDropDown" like MicroSoft called ?
I think this widigit will be very helpful , I have found so many questions about "How to make FilterSelect dynamic" in this forum.

2
The "ItemFileReadSotre" must be extended.
Right now , I use "FilterSelect" and "ItemFileReadSotre" to make my "CaseCadingDropDown" ,

Make DropDownList lists infors in Chinese

I'm a Chinese student studying dojo.
I am making a CaseCadingDropDown , means once I have chosen CityA , all the towns of CityA will be ready in another FilteringSelect.
Well , I can do it in English now , but I don't know how to show Chinese.

We know that the JSON can't send Chinese or Japanese directly , I should change the chararters into UTF8 style.

Well , the client can get the infor of charaters from the server , but the infor is still UTF8 style!

So far as I know , the ItemFileReadStore can't get JSON with UTF8 style.
So , what shall I do?

Syndicate content