Login Register

response

HTML and dojo widget in a string returned from Ajax-PHP response

I'm fine up to the point of returning data from the server and changing the HTML tag's innerHTML, but the Dojo widget embedded in the HTML is disabled (inline edit, to be specific). I'm guessing I have to reparse the widgets coming from the server response. My code's fine. All I need to know is how do I parse a widget copied in, not created programmatically?

dynamic execution of the XHR response content

Hello,

I'm evalutaing Dojo by recreating an application previously built with other frameworks. Liking it so far and it's a lot lighter! But just encounter my first road block was hoping someone could help me solve...

Does Dojo provide a means for dynamically executing an XHR response content. In other words parse the xhr response for script tags and execute this javascript?

We've used the following solution (a plugin for YUI) in the past if this helps you understand our requirement.

http://www.bubbling-library.com/eng/api/docs/plugins/dispatcher

Many thanks in advanced!

content pane: get reposnse error

hi all,

the call to setHref get a server response error (http status 500),
how i can retrieve the response (ioArgs.xhr.responseText)?

onDownloadError give me error and not ioArgs with response.

Thank you

dijit.TitlePane in Ajax Response

I'm new to Dojo, but I like it much, it help to make my pages look more interactive.

I've a problem with Ajax response. Im using prototype.js for Ajax.
In main JSP file, where Ajax is called is myDojo div (

myDojo div

). What i want is Ajax response with dijit.TitlePane working...

function testDojo()
{
var action_url = "cart.html";
var formData = Form.serialize('my_product_form');

new Ajax.Request (action_url,
{
asynchronous: true,
evalScripts: true,
method: "post",
onSuccess: function(transport) {

Dialog: how get response in case of error

hi all,

the call to setHref get a server response error (http status 500),
how i can retrieve the response (ioArgs.xhr.responseText)?

onDownloadError give me error and not ioArgs with response.

Thank you

Syndicate content