Login Register

array

How to parse array returned from xhrGet call

Greetings...

Can anybody point me in the right direction as to how to parse/handle an array returned from xhrGet call.

When calling dojo.xhrGet(kw) the response is a string. But if its an array how does one read it?

I have looked into JSON but there is no specific example on what to do when you receive a response which is an array (from the server). Do I need to convert the PHP array to JSON ? And if so how?

Thanks in advance.

Troy Fandango

Grid based on a single attribute (array) of a specific store item

Hi,

Wondering if there is a way to tie the contents of a grid to a single attribute (which is an array) of a store item.

Example of Data in the store:

{ {id:'1', name:"Our Book", authors: ["A. First", "B. Second", "C.Third"] }, {id:'2', name:'Your book', authors:["A. Fifth", "B. Sixth"]}

From the sample data, I would like to have a simple grid to edit the 'authors' attribute of a particular item. The grid will be built dynamically based on a selected tree item.

Any thoughts would be appreciated.

Thanks in advance,
Derek

FisheyeLite Animation doesn't work after changing data

I am workin on a project for the university with fisheyeLite. I make an sortArray to sort an array alphabetically with onclick "abc". It works and sort the array but after that the animation from fisheye doesn't work matter. Can anybody help me? An also problem is that the animation doesnt work on MS Internet Explorer 8. Thanks a lot for your answers.

Code:

{
jdata:"",
templateString: "

" +
"
abc

"+

Grid & ItemFileReadStore - Using modified JSON format

Hello,

I am currently in the process of trying to implement a grid using a JSON store. I have successfully done this with a JSON file that followed the ItemFileReadStore.js requirements of using an items array. I have recently been trying to figure out how best to use a custom JSON store hierarchy with my grid. The store looks like the following:


{
"top": [
{"id":1, "name": "Name1", "width":2,
"first":[
{"card":1, "circuit":7},
{"card":1, "circuit":8}

Using modified JSON Store w/ Grid

Hello,

I am currently in the process of trying to implement a grid using a JSON store. I have successfully done this with a JSON file that followed the ItemFileReadStore.js requirements of using an items array. I have recently been trying to figure out how best to use a custom JSON store hierarchy with my grid. The store looks like the following:


{
"top": [
{"id":1, "name": "Name1", "width":2,
"first":[
{"card":1, "circuit":7},
{"card":1, "circuit":8}

Array Functions

Along with dojo.forEach, Dojo provides other array functions which mimic JavaScript 1.6 functionality. And that's good news for IE users, who don't have the luxury of JavaScript 1.6 yet.

Syndicate content