Whats wrong in my XML Table?

<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src="js/aw.js"></script> 
<script src="js/specialArray.js"></script>
<link href="css/xp/grid.css" rel="stylesheet"></link> 
    <style> body, html {margin:0px; padding: 0px; overflow: hidden;} </style>

    <!-- ActiveWidgets stylesheet and scripts -->
    <link href="css/xp/grid.css" rel="stylesheet" type="text/css" ></link>

    <!-- grid format -->
        .active-controls-grid {height: 100%; font: menu;}

        .active-column-0 {width:  80px;}
        .active-column-1 {width: 200px; background-color: threedlightshadow;}
        .active-column-2 {text-align: right;}
        .active-column-3 {text-align: right;}
        .active-column-4 {text-align: right;}
        .active-column-5 {text-align: right;}

        .active-grid-column {border-right: 1px solid threedshadow;}
        .active-grid-row {border-bottom: 1px solid threedlightshadow;}


    //	create data formats
        var r = new AW.HTTP.Request; 
        r.setParameter("op", 1); 
        var table = new AW.XML.Table;

        var codigo = new AW.Formats.Number; 
        var descricao = new AW.Formats.String; 
        //    define formatting rule for text output 
        // set var columns XPath 
        var columnNodes = ["codigo", "descricao"]; 
        r.response = function(text){ 
            // set columns XPath 
        // send the request (async) 
        var obj = new AW.UI.Grid;
        obj.setCellFormat([codigo, descricao]);
        obj.setColumnProperty("texts", columnNodes); 

XML Code:

Error in line 31, caracter: 3761
U guys see the problem? Tankz.
March 10,
anyone can help me pelase?
i got the xml in client side, but some error when trying to show table.
March 13,
It looks like you have a mix of v1.0 code (css) and v2.0 code. I suggest starting clean with the xml example in /examples/old/xml-simple.htm.
Alex (ActiveWidgets)
March 13,

I believe that should refer to xml that starts with



don't you want


or something?
Dave Brown
March 13,

Tkz for this... about the mix versions, i need use POST METHOD to get xml, the examples/old/xml - simple.htm dont hav it, how can use post method?
March 13,
anyone can help me please?
March 15,
Save your XML as static file, copy /examples/old/xml-simple.htm and make sure it works, then move everything to the webserver.

setRequestMethod("POST") works in 2.0 same as 1.0
Alex (ActiveWidgets)
March 15,

This topic is archived.

See also:

Back to support forum