Login Register

parse

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

Problems when dynamically adding dijits to a form

I'm fairly new to Dojo, but wasn't able to find any information on this by searching (perhaps my search-fu is weak).

I'm attempting to have some local javascript add a second set of fields to a form. After running the function that adds them (and calls the parser), they work fine, but the previously generated versions get broken.

You can see the problem here:

http://geeklair.net/~dluke/dojo_problem.html

Here's an excerpt of the code:

dojo.require("dijit.form.Form");
dojo.require("dijit.form.TextBox");

one widget object with multiple template string

Hello,

I would like to have a widget that gets moved to a couple content panes. And with in each content view, I would like it to look different. I dont mean just css difference, but actual html to be different. So is it possible to have multiple template strings that can I can choose which one to parse in a certain content pane.

thanks,
Ahmet

Dijit.layout.ContentPane cache problem

Hi,

i want to use dijit.layout.ContentPane to generate a widget, where i can integrate some templated widgets.
The first time i loaded the page everything is fine. When i reload via link the content, dojo can only create the first widget without my defined template and input. Everytime the same procedure, when i load the content for the contentPane everything is fine, but when i reload the contentPane with the same content a second time nothing happen and the page is empty.

Has anybody an idea for this effect?

Cheers

Syndicate content