Hi

You are likely getting an error (or warning) with your dataset when you start your application. Try adding request="false" to your dataset
<dataset name="thedataset" type="http" src="" request="false"/>

On 10/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

According to the doc if you specify type=http,
there is no need for //
Whatever, I tryied with and without and it dind't change anything.
I would be happy to have an laszlo HTTP error, then I would investigate URL or thing like that.

Unfortunatly it silently failed and apparently without sending any HTTP request.
I got error for having defined several time the dataset when I try to instanciate several time the window,
So I wonder if I choose the right design for that form window...

Any advice more than welcome as I'm totally in the dark now...




Internet
[EMAIL PROTECTED]

02/10/2006 14:48

To
Jean-Baptiste BRIAUD
cc

Subject
Re: [Laszlo-user] HTTP request







The first thing I noticed was a malformed URL in your code:
http:localhost:9090/n/debug/blablabla

Shouldn't that be
http://localhost:9090/n/debug/blablabla ?

Rgds,

Bret


[EMAIL PROTECTED] wrote:
>
> 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
>  



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



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

Reply via email to