Ola pessoal, estou voltando ao forum, pois esse ano realmente eu começo, e termino minha monografia, OpenLazlo =)
Entaum estou aprendendo, mais é meio confuso, pois, tenho o seguinte
uma window, e um script PHP que lista as cidades cadastradas no banco
ja fiz isso aqui<?xml version="1.0" encoding="UTF-8" ?>
<canvas width="1024" height="768">
<silverstyle name="silvercolors" isdefault="true" />
<splash />
<attribute name="initURL" type="string" value="http://localhost/laszlo/buchala/" />
<debug x="500" y="400" />
<dataset name="ds" querytype="post" type="http"/>
<view id="mainview" align="center" bgcolor="#94B0E8" width="100%" height="100%">
<view x="0" y="2" width="500" height="20" bgcolor="#EFEFEF">
<text x="10" y="2">Andradina</text>
<button x="160" y="2" width="50" height="17" text="Apagar" />
<button x="220" y="2" width="50" height="17" text="Editar" />
<button x="280" y="2" width="100" height="17" text="Adicionar Bairro" />
</view>
<view x="0" y="20" width="500" height="20" bgcolor="#FFFFFF">
<text x="10" y="2">Castilho</text>
<button x="160" y="2" width="50" height="17" text="Apagar" />
<button x="220" y="2" width="50" height="17" text="Editar" />
<button x="280" y="2" width="100" height="17" text="Adicionar Bairro" />
</view>
<view x="0" y="40" width="500" height="20" bgcolor="#EFEFEF">
<text x="10" y="2">Murutinga do Sul</text>
<button x="160" y="2" width="50" height="17" text="Apagar" />
<button x="220" y="2" width="50" height="17" text="Editar" />
<button x="280" y="2" width="100" height="17" text="Adicionar Bairro" />
</view>
<scrollbar/>
</view>
</canvas>
Primeiro, chamar a pagina no onClick ate da pra entender, mais como eu fazia um evento desses quando minha janela fosse contruida, carregada??
outra coisa, como pegar os valores retornados? pq preciso fazer isso<view x="0" y="40" width="500" height="20" bgcolor="#EFEFEF">
<text x="10" y="2">Cidade</text>
<button x="160" y="2" width="50" height="17" text="Apagar" />
<button x="220" y="2" width="50" height="17" text="Editar" />
<button x="280" y="2" width="100" height="17" text="Adicionar Bairro" />
</view>
para cada cidade, tipo uma tabela, com alguns botoes na frente.
Valeu! =)



