Author: lou
Date: 2007-12-18 09:35:10 -0800 (Tue, 18 Dec 2007)
New Revision: 7594
Modified:
openlaszlo/trunk/docs/src/developers/browser-integration.dbk
Log:
Change 20071218-lou-7 by [EMAIL PROTECTED] on 2007-12-18 13:26:02 AST
in /Users/lou/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix code examples in the browser integration chapter of the dguide
Bugs Fixed: LPP-5279, LPP-5281
Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
These code example both had <fixme> tags instead of code.
Replace missing code with code from the 3.4 build
Modified: openlaszlo/trunk/docs/src/developers/browser-integration.dbk
===================================================================
--- openlaszlo/trunk/docs/src/developers/browser-integration.dbk
2007-12-18 17:33:54 UTC (rev 7593)
+++ openlaszlo/trunk/docs/src/developers/browser-integration.dbk
2007-12-18 17:35:10 UTC (rev 7594)
@@ -502,13 +502,29 @@
<example role="live-example">
<title>Flash player version-detecting wrapper</title>
<programlisting>
- <!-- remove para tags for valid DocBook LI, LPP-4594 9/3/2007 -->
- <!-- para is not a legal child of programlisting -->
- <!-- <para role="fixme"> -->
- <remark role="fixme">
- <emphasis role="para-label">FIXME:</emphasis>
- </remark>
- <!-- </para> -->
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+
+ <link rel="SHORTCUT ICON"
href="http://www.laszlosystems.com/favicon.ico">
+ <title>OpenLaszlo Application</title><style
type="text/css">
+ html, body { margin: 0; padding: 0; height: 100%; }
+ body { background-color: #ffffff; }
+ </style><script language="JavaScript1.1"
src="/lps-dev/lps/includes/vbembed.js"
+ type="text/javascript"></script><script
src="/lps-dev/lps/includes/embed.js"
type="text/javascript"></script></head>
+ <body><script type="text/javascript">
+ actualVersion = detectFlash();
+ requiredVersion = 6;
+ if (isIE && isWin || actualVersion >= requiredVersion) {
+ lzEmbed({url: 'graceie.lzx?lzt=swf', bgcolor: '#ffffff', width:
'500', height: '200'}, requiredVersion);
+ } else {
+ document.write('This application requires Flash player ' +
requiredVersion + '.
+ <a href="http://www.macromedia.com/go/getflashplayer"
target="fpupgrade">Click here</a> to upgrade.');
+ }
+ </script></body>
+</html>
</programlisting>
</example>
<para>Depending on which version is running, you may wish to
@@ -631,17 +647,14 @@
globals.</para>
<example role="live-example">
<title>Passing query parameters to LZX application</title>
- <programlisting>
- <!-- remove para tags for valid DocBook LI, LPP-4594 9/3/2007 -->
- <!-- para is not a legal child of programlisting -->
- <!-- <para role="fixme"> -->
- <remark role="fixme">
- <emphasis role="para-label">FIXME:</emphasis>example
- showing passing of parameters</remark>
- <!-- </para> -->
- </programlisting>
+ <programlisting>
+<script type="text/javascript">
+ lzEmbed({url: 'mainApplication'+screenW+'.lzx?lzt=swf', bgcolor: '#394660',
width: screenW, height: screenH});
+</script>
+
+</programlisting>
</example>
- <para />
+
<section>
<title>Query Parameters and Global Variables</title>
<para>Once the data has been passed in you can simply access
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins