PDA

View Full Version : link to the nextpage


mohan
07-27-2003, 11:18 PM
hai antun,
i am using gif image to go to the nextpage (lzx file)but i don't no how to make that work.we can go to next page by clicking on the text .but i am facing the problem when using images.


2.my second question is how do i make when i click on the image that should stretches and display in the middle of the window (i know how to make the image stretch but that should be invisible untill i click on the unstretched image and then that that should come to visible and display in the middle of the window )


3.is there any other forum where i can get help

with regards
mohan

antun
07-27-2003, 11:27 PM
To use an image as a link, you'd assign an onclick event handler to the view, and call the loadURL() method of the LzBrowser service as follows:


<view resource="myimage.gif" onclick="LzBrowser.loadURL('myurl.html');" />


If you want an image to appear after it was clicked, you would typically do something like:


<view resource="myimage.gif" stretches="both">
<method event="onclick">
this.setX( 20 );
this.setWidth( 400 );
this.setVisible( true );
</method>
</view>


There's other ways of approaching the problem the above is a simple example.

There isn't another forum for Laszlo as far as I know, but there is the Laszlo User website:

http://www.laszlouser.org/

-Antun

RIA
11-23-2005, 03:01 AM
if you want that the image appears after click, you have to do something like this:

<view id=image x="20" width="400" stretches="both">
<method event="onclick">
image.setSource("myimage.gif")
</method>
</view>

luck!