forgot to mention, i use 3.1rc1.

regards,

On 11/16/05, N Kurniawan <[EMAIL PROTECTED]> wrote:
> here is my connect.lzx code:
>
> <canvas proxied="false" debug="true">
>     <dataset name="dsGet" src="getcontact.php" request="false" type="http"/>
>     <dataset name="dsSend" src="contactmgr.php" request="false" type="http"/>
>
>     <simplelayout/>
>
>     <view id="v1" datapath="new:/contact">
>         <simplelayout/>
>         <edittext id="txtId" datapath="@id" width="100"/>
>         <edittext id="txtName" datapath="@name" width="100"/>
>         <statictext text="static" width="70"/>
>     </view>
>     <view>
>         <simplelayout axis="x"/>
>         <button text="Get">
>             <method event="onclick">
>                 var d=canvas.datasets.dsGet;
>                 var p=new LzParam();
>                 p.addValue("action", "get", true);
>                 p.addValue("id", txtId.getText(), true);
>                 d.setQueryString(p);
>                 d.doRequest();
>
>                 var dp = canvas.datasets.dsGet.getPointer().dupePointer();
>
>                 Debug.write(dp.xpathQuery("result/text()"));
>             </method>
>
>         </button>
>     </view>
> </canvas>
>
> and here is my getcontact.php :
> <?php
>     $str = "<result>tes</result>";
>     echo $str;
> ?>
>
> when i click "Get" button i always receive null at first time, but the
> next clicks work as expected (print tes in the debug window). i have
> tried to use <datapointer ...> too, and wrote it either after <dataset
> ...> or <button ...> line. but still no good result.
>
> is there something wrong with my code? the whole idea is, i want to
> have a form that will display information based on entered id. the
> above code just for my test.
>
> thanks in advance,
>
> regards,
>

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to