loader.doSerialization() Error

I’m using the following code to get a xml message sent by the server:

function doOnRowSelected(id){

    var loader = dhtmlxAjax.postSync(“prova.php”,“ACCIO=READ&ID=”+id);


    if(loader.xmlDoc.responseXML!=null && loader.xmlDoc.doXPath(“/vehicles”))

        alert(“We Got Response\n\n”+loader.doSerialization())


        alert(“Response contains no XML”)


and debugging with Firebug I see I h’ve got the error:

uncaught exception: [Exception… “Could not convert JavaScript argument arg 0 [nsIDOMSerializer.serializeToString]” nsresult: “0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)” location: “JS frame :: artek/kmgest/codebase/dhtmlxcommon.js :: anonymous :: line 88” data: no]

I’m using the free version of dhtmlx suite 2.1 but I think this feature is fully suported.

Do you know what’s the reason of this error?

As I can see in firebug, the client recives the message as expected:

<?xml version="1.0" encoding="UTF-8"?>




1.3 Diesel



Blanco Sepia





























What I want is to select a row from the grid and fill in a form with all columns of the selected row. Apart from the problem previously mentioned, another doubt I have is how can I recover each individual item I’ve received from the server?

If you have a sample that shows the way to do it I’ll appreciate it very much.

Many thanks in advance for your valuable help.

Best regardas,


the issue wasn’t reproduced locally. We have attached the sample
1250501412.zip (7.58 KB)

Thank you for your answer.
I think I found the cause of the problem. It was an extra character in he code that don’t generates a error but was the cause of the problem. After removing this character (}) it worked ok.

Many thank for your help.

Best regards,