Bret Schuhmacher | 1 Oct 01:40 2006

Accessing a validatingForm button directly?

I have a need to access a validatingForm button directly, like I can do 
with a form button. Below you'll find a sample file that shows the 
problem. I can access the button directly if I globally replace 
"validatingForm" with "form" and use the base class, however, I lose the 
capability to use Togwa's great validating classes, which I need for my 
end goal.

If you run the code below, just press the "Next" button and you should 
get page2 loaded and the "Back" button should be enabled. That's the 
goal, anyway. If you change validatingForm to form, it works that way.

How do you access buttons in the buttonplace of a validatingForm? I've 
tried everything I can think of (i.e. all the obvious pathing options 
like canvas.theWin.myform.btnBack, etc.).

Thanks,

Bret

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

<canvas debug="true" height="530">
<include href="formlayout.lzx" />
<include href="validators/validatingform.lzx"/>
    <method name="doBackAction" args="onPage">
        <![CDATA[
        if (onPage == "page2") {
                theWin.page1.apply();
                theWin.page2.remove();

(Continue reading)

togawa manabu | 1 Oct 04:48 2006
Picon

dose it support aatabindex for taborder?

Hi!

I'm trying to set the tabindex for control the LzFocus like,

<canvas debug="true" layout="axis:y">
		<edittext name="edtx1"  aatabindex="1" aaactive="true"/>
		<edittext name="edtx2"  aatabindex="3" aaactive="true"/>
		<edittext name="edtx3"  aatabindex="2" aaactive="true"/>
		<edittext name="edtx4"  aatabindex="5" aaactive="true"/>
		<edittext name="edtx5"  aatabindex="4" aaactive="true"/>
</canvas>

but seem no effect.
How can I set the tabindex?

thanks.
Boos, Paul M. | 1 Oct 14:35 2006
Picon

Question on available components

In our Plone-Laszlo integration sprint, we have some widgets we are trying to duplicate in lzx; before we started coding these, I wanted to see if they had been done before and whether they were available for re-use.

 

My first one is a picklist type widget: this consists of a list object to the left and a right-hand list (it starts empty); two buttons between these 2 lists allow a user to put items from the left-hand list into the right-hand list or remove items from the right-hand list.  A more sublte variation of this list called the inandout widget actually removes an item from the left hand list when it is put into the right-hand list and puts it back when it is removed from the right-hand list.

 

The second one is a file upload widget that you see often in a browser.  An input box with the typical browse button next to it.  A subtle variation on that is an image widget that will show a thumbnail of an uploaded image once the object has been selected.

 

Also, I have been toying with the richinputtext widget in Laszlo and don’t see how I actually put in styles…  There isn’t any buttons, so I am presuming you have to do something?

 

Thanks in advance for any help!

Paul

 

 

Paul M. Boos, PMP

NIPO Program Manager

SAIC: From Science to Solutions

Office:   703-419-5065

Mobile:  703-307-4322

On-Site: 703-601-9831 (no voicemail)

eMail:    paul.m.boos-jTGLxe6cr0Q@public.gmane.org

Navy eMail: paul.boos-JoQm+pnW5+g@public.gmane.org

 

 


_______________________________________________
Laszlo-user mailing list
Laszlo-user@...
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
Benjamin Shine | 1 Oct 20:18 2006

Re: Question on available components


On Oct 1, 2006, at 5:35 AM, Boos, Paul M. wrote:

In our Plone-Laszlo integration sprint, we have some widgets we are trying to duplicate in lzx; before we started coding these, I wanted to see if they had been done before and whether they were available for re-use.

 

My first one is a picklist type widget: this consists of a list object to the left and a right-hand list (it starts empty); two buttons between these 2 lists allow a user to put items from the left-hand list into the right-hand list or remove items from the right-hand list.  A more sublte variation of this list called the inandout widget actually removes an item from the left hand list when it is put into the right-hand list and puts it back when it is removed from the right-hand list.

I don't think we have one of these. 

 

The second one is a file upload widget that you see often in a browser.  An input box with the typical browse button next to it.  A subtle variation on that is an image widget that will show a thumbnail of an uploaded image once the object has been selected.

 

We have file upload in LaszloMail, but I don't think it's available in the platform yet. It relies on swf8 file upload support. 

Also, I have been toying with the richinputtext widget in Laszlo and don’t see how I actually put in styles…  There isn’t any buttons, so I am presuming you have to do something?


This one I have a good answer for! 

    <include href="incubator/rich-text/richtexteditor.lzx"/>
   
    <view name="rtetestview" width="650" x="50" height="200">
        <!-- declare an instance of the richtexteditor class -->
        <richtexteditor/>
    </view>

There is a rich text editor which adds a toolbar for editing text format: See lps/components/incubator/rich-text/test/richtexteditor-test.lzx
(This test comes up with an lzunit window in front of the actual editor; slide it out of the way.) 

These examples aren't in the right place in the source hierarchy; I have filed a bug to move them to examples/components: LPP-2835.

-ben

_______________________________________________
Laszlo-user mailing list
Laszlo-user@...
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
Boos, Paul M. | 1 Oct 20:24 2006
Picon

Re: Question on available components

Thanks Ben – I found a nice drag and drop in the forums that someone had done.  We’ll probably modify that to make it data driven.

 

If it is possible to rip out the file upload that would be great as we don’t mind being dependent of swf8 at the moment, particularly since I presume when the final DHTML ‘Legals’ runtime shows up that this could be supported as well.

 

I’ll look into the richtexteditor example – thanks!

 

Paul

 

 

Paul M. Boos, PMP

NIPO Program Manager

SAIC: From Science to Solutions

Office:   703-419-5065

Mobile:  703-307-4322

On-Site: 703-601-9831 (no voicemail)

eMail:    paul.m.boos-jTGLxe6cr0Q@public.gmane.org

Navy eMail: paul.boos-JoQm+pnW5+g@public.gmane.org

 

From: ben-oDN+GTs16Eu/3pe1ocb+swC/G2K4zDHf@public.gmane.org [mailto:ben-oDN+GTs16Eu/3pe1ocb+swC/G2K4zDHf@public.gmane.org]
Sent: Sunday, October 01, 2006 2:19 PM
To: Boos, Paul M.
Cc: laszlo-user-qwsyeSSt21a05dI2w8foGA@public.gmane.org; Zpugdc-sprint-pzuzLh+EMZSsTnJN9+BGXg@public.gmane.org
Subject: Re: [Laszlo-user] Question on available components

 

 

On Oct 1, 2006, at 5:35 AM, Boos, Paul M. wrote:



In our Plone-Laszlo integration sprint, we have some widgets we are trying to duplicate in lzx; before we started coding these, I wanted to see if they had been done before and whether they were available for re-use.

 

My first one is a picklist type widget: this consists of a list object to the left and a right-hand list (it starts empty); two buttons between these 2 lists allow a user to put items from the left-hand list into the right-hand list or remove items from the right-hand list.  A more sublte variation of this list called the inandout widget actually removes an item from the left hand list when it is put into the right-hand list and puts it back when it is removed from the right-hand list.

I don't think we have one of these. 



 

The second one is a file upload widget that you see often in a browser.  An input box with the typical browse button next to it.  A subtle variation on that is an image widget that will show a thumbnail of an uploaded image once the object has been selected.

 

We have file upload in LaszloMail, but I don't think it's available in the platform yet. It relies on swf8 file upload support. 



Also, I have been toying with the richinputtext widget in Laszlo and don’t see how I actually put in styles…  There isn’t any buttons, so I am presuming you have to do something?

 

This one I have a good answer for! 

 

    <include href="incubator/rich-text/richtexteditor.lzx"/>

   

    <view name="rtetestview" width="650" x="50" height="200">

        <!-- declare an instance of the richtexteditor class -->

        <richtexteditor/>

    </view>

 

There is a rich text editor which adds a toolbar for editing text format: See lps/components/incubator/rich-text/test/richtexteditor-test.lzx

(This test comes up with an lzunit window in front of the actual editor; slide it out of the way.) 

 

These examples aren't in the right place in the source hierarchy; I have filed a bug to move them to examples/components: LPP-2835.

 

-ben


_______________________________________________
Laszlo-user mailing list
Laszlo-user@...
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
jean | 2 Oct 15:08 2006

HTTP request


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="pet-create-3.lzx"/>
   <menubar>
       <menu text="petshop">
           <menuitem onclick="new 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="http:localhost:9090/n/debug/blablabla"/>
   <form>
   <submit name="submitter" data="'${thedataset}'"/>
       <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" onclick="parent.parent.submitter.submit()">Submit</button>
       </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
Laszlo-user@...
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
jean | 2 Oct 15:47 2006

Re: HTTP request


Is doesn't work. The field dosen't even show.
I care about using classes but I do not care about submit.
Is there other way of doiing that ?
I already try by a script like that :

<button text="Go !" x="50" y="190">
               <method event="onclick">
                         <![CDATA[
                             var ds = canvas.datasets.dataset; // Maybe there is better way to search for a dataset ??? Especially if they are in classes ???
                             var query = new LzParam();
                 query.addValue( 'pouette', "1", true );
                 query.addValue( XXXXX);
                             ds.setQueryString( query );
                             ds.doRequest();
                    ]]>
                </method>
</button>


None of my approaches had worked ! Are classes concept mature enough in LZX ?





Internet
adeola-DXT9u3ndKiS/E4t9MRyRgg@public.gmane.org

Sent by: awoyemia-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

02/10/2006 14:28

To
Jean-Baptiste BRIAUD
cc
Subject
Re: [Laszlo-user] HTTP request





Have you tried placing the form elements as children of the submitter? I'mnot sure if you can nest them if you want to use the submitter to submit to the server. E.g.:

<form>
  <submit name="submitter" data="'${thedataset}'"/>
          <text name="entryDatelabel" text="entryDate" y="1"/>
          <edittext resizable="true" name="entryDate" y="2" width="${parent.width - (this.x + 50 )}" />
          <text name="namelabel" text="name" y="1"/>
          <edittext resizable="true" name="name" y="2" width="${parent.width - (this.x + 50 )}" />
          <text name="sexlabel" text="sex" y="1"/>
          <edittext resizable="true" name="sex" y="2" width="${parent.width - (this.x + 50 )}" />
          <button isdefault="true" onclick="parent.submitter.submit()">Submit</button>
</form>

HTH,

Adeola.





On 02/10/06, jean-baptiste.briaud-YBPJxV8AqZ1wlyHHSmQwm326JSxr+BKB@public.gmane.org <jean-baptiste.briaud-YBPJxV8AqZ1wlyHHSmQwm326JSxr+BKB@public.gmane.org > 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="pet-create-3.lzx"/>
  <menubar>
      <menu text="petshop">
          <menuitem onclick="new 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="http:localhost:9090/n/debug/blablabla"/>
  <form>
  <submit name="submitter" data="'${thedataset}'"/>
      <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" onclick="parent.parent.submitter.submit()">Submit</button>
      </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
Laszlo-user-qwsyeSSt21a05dI2w8foGA@public.gmane.org
http://www.openlaszlo.org/mailman/listinfo/laszlo-user




_______________________________________________
Laszlo-user mailing list
Laszlo-user@...
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
jean | 2 Oct 16:01 2006

Re: HTTP request


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
bret-fRVv5ROizcnBMjm5eRTAbBL4W9x8LtSr@public.gmane.org

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

jean-baptiste.briaud-YBPJxV8AqZ1wlyHHSmQwm326JSxr+BKB@public.gmane.org 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="pet-create-3.lzx"/>
>    <menubar>
>        <menu text="petshop">
>            <menuitem onclick="new 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="http:localhost:9090/n/debug/blablabla"/>
>    <form>
>    <submit name="submitter" data="'${thedataset}'"/>
>        <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"
> onclick="parent.parent.submitter.submit()">Submit</button>
>        </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
> Laszlo-user-qwsyeSSt21a05dI2w8foGA@public.gmane.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>  


_______________________________________________
Laszlo-user mailing list
Laszlo-user@...
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
Not Zippy | 2 Oct 16:09 2006
Picon

Re: Animating stretch along the negative X/Y

You may want to look at adjusting the xoffset / yoffset . What you can
do with these is set them to the midpoint of the image by using
something like xoffset="${-this.width/2}" Then as the width changes
the offset will change and it will appear the image is growing from
the middle...

This is also very useful when rotating an image too (since rotation
occurs at 0,0)

z

On 9/30/06, Matt <matt@...> wrote:
> Hello List!
>
> I am new to Laszlo and have been fiddling with an idea (and some tutorials)
> regarding the stretch of a small image into a large image.
>
> Is there a simple (meaning something which is inherent in the language that I
> am missing) way to stretch an image from the corner (or side) opposite its
> registration mark?
>
> Currently when I scale the image up it scales from the upper right hand
> corner, and I would like to to scale from the lower-left hand corner. The
> image in question is a jpeg, and is 600x477 which is initially seen as 100
> wide.
>
> If it cannot be done, it would be nice to know. I can think of a programatic
> way of doing it where the scale is timed with movement in an animatorgroup at
> the same time, but I wonder how smooth that will be.
>
> Thanks,
> Matt
>
> _______________________________________________
> Laszlo-user mailing list
> Laszlo-user@...
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>
Not Zippy | 2 Oct 16:11 2006
Picon

Re: HTTP request

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="http:localhost:9090/n/debug/blablabla" request="false"/>

On 10/2/06, jean-baptiste.briaud-YBPJxV8AqZ1wlyHHSmQwm326JSxr+BKB@public.gmane.org <jean-baptiste.briaud-YBPJxV8AqZ1wlyHHSmQwm326JSxr+BKB@public.gmane.org> 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
bret-fRVv5ROizcnBMjm5eRTAbBL4W9x8LtSr@public.gmane.org

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


jean-baptiste.briaud-YBPJxV8AqZ1wlyHHSmQwm326JSxr+BKB@public.gmane.org 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="pet-create-3.lzx"/>
>    <menubar>
>        <menu text="petshop">
>            <menuitem onclick="new 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="http:localhost:9090/n/debug/blablabla"/>
>    <form>
>    <submit name="submitter" data="'${thedataset}'"/>
>        <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"
> onclick="parent.parent.submitter.submit()">Submit</button>
>        </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
> Laszlo-user-qwsyeSSt21a05dI2w8foGA@public.gmane.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>  



_______________________________________________
Laszlo-user mailing list
Laszlo-user-qwsyeSSt21a05dI2w8foGA@public.gmane.org
http://www.openlaszlo.org/mailman/listinfo/laszlo-user




_______________________________________________
Laszlo-user mailing list
Laszlo-user@...
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Gmane