Login Register

innerHTML

tundra styles not displaying in form html code fetched using "dojo.byId(tag).innerHTML = data;" with ajax "dojo.xhrGet"

when I load the page, (which contains the form) on it's own explicitly, the css styles for the "tundra widget look", show up, eg. TextBox etc.
but when loaded through dojo.xhrGet using innerHTML, the styles are not set.

I am new to dojo, your help is appreciated, thanks.

Jeremy

Append content to ContentPane

This should be a simple problem. I just want to append text into an existing ContentPane without clearing what's already in it.

Some background: I have a dictionary lookup tool that dynamically returns results into a ContentPane using setContent. However, there is a link for "More results" which fetches data from the server via XHRPost. I want to append this to the ContentPane, rather than reset the contents.

I've tried different things but can't get anything to work. Here are some examples of what I've tried:

Using innerHTML from server XSLT response as AJAX tree output

Hi. I am working on a J2EE project, and our current framework uses XSLT technology to render the HTML response from the J2EE server. Our application uses dojo v0.4 for AJAX requests to the server and we use '.innerHTML' property to set the server response to the HTML from the dojo.io.bind response.

Now, we have a new UI design where dojo/dijit Tree is planned to be used, with AJAX - but the problem is that it can only output JSON response (at least as I've tried in dojo v 0.4).

Stuck in the middle of Dojo -- what now?

Well, after several hours spread along several days, I got what you can see here:

http://gladevel.homedns.org/gl1.html

It probably takes AGES to load... but in order for my problem to be understood, you need to see what I am trying to do.

Only tabs "Fisicas" and "Morales" are working. However, you will find inside the lists to the left, inside "Tareas", a button.

This button, "Abrir fisicas" loads HTML and tries to make it the innerHTML of the division of tab "FISICAS". Click on it and...

Disaster! Yes. It doesn't work!

Syndicate content