PDA

View Full Version : Opening pop-up window


jtesolin
08-07-2006, 05:06 PM
Hello all,
I just started using open Laszlo and after hours of toiling was unable to do a task using javascript. I am trying to open up a small window with no statusbar, menu bar, etc. I am familiar with using javascript and tried to implement it into open laszlo but no luck. any suggestions? My code is below. Thank you in advance.

<window id="win" x="950" y="10" width="260" height="200" title="Subscribe to test list" resizable="false" closeable="true">
<form>
<statictext x="20" y="30">Subscribe to the Test Email List</statictext>
<button onclick="LzBrowser.loadURL('subscribe.html', '_blank','toolbar=no,menubar=no')">
Subscribe!
</button>
</form>
</window>

jstretch
08-08-2006, 07:05 AM
There is no 3rd argument to the loadURL method. You can call a javascript directly:

LzBrowser.loadURL('javascript:doPopup(...)')

jtesolin
08-08-2006, 03:03 PM
This post and a similiar one was very useful!
I will have to read more about these topics i guess, eh? :)