PDA

View Full Version : Accessing the Browser


RIAD
05-12-2005, 12:13 PM
How do i access the browser that my laszlo app is running in, i want to change the text on the browser's status bar from within my laszlo app
Thanks
K,Browne

arina
05-16-2005, 03:37 AM
Originally posted by RIAD
How do i access the browser that my laszlo app is running in, i want to change the text on the browser's status bar from within my laszlo app
Thanks
K,Browne

Include your lzx-file into the jsp-file where is placed needed script.


<html>
<head>
<script src="lps/includes/embed.js" type="text/javascript">
<!--Your function-->
function rename_title(){...}
</script>
</head>

<body>
<script type="text/javascript">
lzEmbed({url: 'your.lzx?lzt=swf', bgcolor: '#394660', width: 500, height: 350});
</script>
</body>
</html>


And call this function from lzx-file:

LzBrowser.loadURL("javascript:rename_title();");