HI the list,

I'd like to design windows with class so there can be several instances.
I don't know if it the problem but I'm lost with a simple window that try to submit a form with HTTP.
That should be simple but I was not able to make it work.

After hours of various try I'm not able to reach my http server from a simple form (example at the end).
It might be a design issue, please help !
Any advice is welcome as I'm in the dark...

I got warnings from the debug windows on submit.lzx for example, but I think the issue is most probably in my code, you know that ... :-)

I was able to reuse the example with the echoer given in the documentation, so it is not a configuration issue.
I'm using the 3.3.3.

A big thanks in advance !

Here is the way I call the form (this works) :

code:



<canvas debug="true" title="petshop">
   <splash/>
   <include href="">    <menubar>
       <menu text="petshop">
           <menuitem PetCreate3()" text="quick add a pet"/>
       </menu>
   </menubar>
</canvas>



and here is the form. This does not work, I got nothing on server side. When I use the *same url* in the simple example given in the doc it works.
So, it is due to the class ? THis is the only difference I can see.

code:

<library>

<class closeable="true" extends="window" name="PetCreate3" resizable="true" title="quick add a pet">
   <dataset name="thedataset" type="http" src="">    <form>
   <submit name="submitter" data="">        <view layout="axis: x; spacing: 5" width="${parent.parent.width}">
           <text name="entryDatelabel" text="entryDate" y="1"/>
           <edittext resizable="true" name="entryDate" y="2" width="${parent.width - (this.x + 50 )}" />
       </view>
       <view layout="axis: x; spacing: 5" width="${parent.parent.width}">
           <text name="namelabel" text="name" y="1"/>
           <edittext resizable="true" name="name" y="2" width="${parent.width - (this.x + 50 )}" />
       </view>
       <view layout="axis: x; spacing: 5" width="${parent.parent.width}">
           <text name="sexlabel" text="sex" y="1"/>
           <edittext resizable="true" name="sex" y="2" width="${parent.width - (this.x + 50 )}" />
       </view>
       <view layout="axis: x; spacing: 5">
           <button isdefault="true" >        </view>
   </form>
</class>
</library>

This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.

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

Reply via email to