Thank you Mattias that's what I needed.
On Sun, Feb 2, 2014 at 1:41 PM, Mattias Sundblad <mattias....@gmail.com>wrote: > Hi, > > I think you need to run 'make all' or 'make gate' to build httpGate along > with the interpreter. That should create a binary and place it in the 'bin' > directory of the distribution. > > best wishes, > Mattias > > > On 2 February 2014 18:16, me <yanosh...@gmail.com> wrote: > >> Thank you Alex. I cannot seem to find httpGate anywhere in the >> distribution 3.1.5. I know this is terribly noob-ish but where is httpGate >> located? >> >> >> On Mon, Jan 27, 2014 at 2:02 AM, Alexander Burger >> <a...@software-lab.de>wrote: >> >>> Hi David, >>> >>> > If I load the app by going to localhost:8080 I see the button and can >>> click >>> > on it but nothing happens and the button becomes disabled. If I then >>> > refresh the page (it now has a long session string in the address bar) >>> the >>> > button is enabled and I can click on it, the desired Alert dialog pops >>> up >>> > working correctly. >>> >>> Indeed, this is a known problem. >>> >>> The reason lies with the "same server orgigin" policy of JavaScript's >>> XMLHttpRequests. Because PicoLisp uses a separate HTTP port for each >>> session, JavaScript (wrongly) believes this is a new server, and refuses >>> to execute :( >>> >>> >>> > How can I get the button to work the first time without reloading the >>> page? >>> >>> The right way to handle this is to run web applications in combination >>> with 'httpGate'. The best way is to start (as user 'root') >>> >>> /usr/lib/picolisp/bin/httpGate 80 8080 >>> >>> and (if you like to use HTTPS) >>> >>> /usr/lib/picolisp/bin/httpGate 443 8080 <path-to-PEM> >>> >>> I have similar lines in my "/etc/rc.local" file. For a local >>> installation, adjust the pathes to 'httpGate' accordingly. >>> >>> >>> With httpGate you also have the advantage that you don't need to specify >>> ":8080" in the browser (and that you can use HTTPS, of course). >>> >>> ♪♫ Alex >>> -- >>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >>> >> >> >