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> -->
+&lt;!DOCTYPE html
+  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd"&gt;
+&lt;html&gt;
+   &lt;head&gt;
+      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
+   
+      &lt;link rel="SHORTCUT ICON" 
href="http://www.laszlosystems.com/favicon.ico"&gt;
+      &lt;title&gt;OpenLaszlo Application&lt;/title&gt;&lt;style 
type="text/css"&gt;
+      html, body { margin: 0; padding: 0; height: 100%; }
+      body { background-color: #ffffff; }
+    &lt;/style&gt;&lt;script language="JavaScript1.1" 
src="/lps-dev/lps/includes/vbembed.js" 
+    type="text/javascript"&gt;&lt;/script&gt;&lt;script 
src="/lps-dev/lps/includes/embed.js" 
type="text/javascript"&gt;&lt;/script&gt;&lt;/head&gt;
+   &lt;body&gt;&lt;script type="text/javascript"&gt;
+          actualVersion = detectFlash();
+          requiredVersion = 6;
+          if (isIE &amp;&amp; isWin || actualVersion &gt;= requiredVersion) {
+            lzEmbed({url: 'graceie.lzx?lzt=swf', bgcolor: '#ffffff', width: 
'500', height: '200'}, requiredVersion);
+          } else {
+            document.write('This application requires Flash player ' + 
requiredVersion + '. 
+            &lt;a href="http://www.macromedia.com/go/getflashplayer"; 
target="fpupgrade"&gt;Click here&lt;/a&gt; to upgrade.');
+          }
+        &lt;/script&gt;&lt;/body&gt;
+&lt;/html&gt;
                 </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>
+&lt;script type="text/javascript"&gt;
+   lzEmbed({url: 'mainApplication'+screenW+'.lzx?lzt=swf', bgcolor: '#394660', 
width: screenW, height: screenH});
+&lt;/script&gt;
+
+</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

Reply via email to