[Laszlo-dev] Ajax API and XML format
Antun Karlovac
antun at laszlosystems.com
Fri Oct 14 08:30:02 PDT 2005
Hi Zaheed
The example on the grid page is very simple and shows off grid's ability
to "figure out" the data it is to bind to. For a more concise example
that shows you how to databind to various attributes, take a look at the
gridtext page:
http://www.openlaszlo.org/lps-latest/docs/reference/lz-gridtext.html
You can use relative datapaths to point to the subnodes you want there.
-Antun
Zaheed Haque wrote:
> Hello:
>
> I have 2 question:
>
> 1: I have found the following Ajax API on 3.1rc2
>
> http://jira.openlaszlo.org/jira/browse/LPP-510?page=all
>
> Is there any documentation about it? Any info on what exactly is Ajax API?
>
> 2: XML format:
>
> For the grid example below :
>
> http://www.openlaszlo.org/lps-latest/docs/reference/lz-grid.html
>
> the XML data looks like the following:
> <forecast>
> <day label="TODAY"
> imageurl="http://www.srh.noaa.gov/ifps/text/images/ra100.jpg"
> desc="Heavy Rain" temp="Hi 62°F "/>
> </forecast>
>
> Where the data is comming as an attribute fashion. Is it possible to
> have the data on a node based. I have tried the following type of xml
> (i.e. example not my own data)
>
> <forecast>
> <label>TODAY</lable>
> <imageurl>http://www.srh.noaa.gov/ifps/text/images/ra100.jpg</imageurl>
> <desc>Heavy Rain</desc>
> <temp>Hi 62°F</temp>
> </forecast>
>
>
> but I can't seems to populate my Grid. Is there any limitation on what
> type of XML format is allowed by Grid and the Tree component?
>
> Thanks again for reply.
>
> Zaheed
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
More information about the Laszlo-dev
mailing list