Author: buildbot
Date: Thu Mar 27 01:54:35 2014
New Revision: 903863

Log:
Staging update by buildbot for thrift

Modified:
    websites/staging/thrift/trunk/content/   (props changed)
    websites/staging/thrift/trunk/content/tutorial/js.html

Propchange: websites/staging/thrift/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Mar 27 01:54:35 2014
@@ -1 +1 @@
-1582097
+1582148

Modified: websites/staging/thrift/trunk/content/tutorial/js.html
==============================================================================
--- websites/staging/thrift/trunk/content/tutorial/js.html (original)
+++ websites/staging/thrift/trunk/content/tutorial/js.html Thu Mar 27 01:54:35 
2014
@@ -92,16 +92,18 @@
 <li>This tutorial depends on an existing Thrift server. See either the <a 
href="/tutorial/java">Java tutorial</a> or <a href="/tutorial/cpp">C++ 
tutorial</a> for how to build and setup one of these servers.</li>
 </ul>
 <h3 id="client">Client</h3>
-<p><pre><code class="language-js">
+<pre><code class="language-js">
 function calc() {
   var transport = new Thrift.Transport("/thrift/service/tutorial/");
   var protocol  = new Thrift.Protocol(transport);
-  var client    = new CalculatorClient(protocol);</p>
-<p>var work = new Work()
+  var client    = new CalculatorClient(protocol);
+
+  var work = new Work()
   work.num1 = $("#num1").val();
   work.num2 = $("#num2").val();
-  work.op = $("#op").val();</p>
-<p>try {
+  work.op = $("#op").val();
+
+  try {
     result = client.calculate(1, work);
     $('#result').val(result);
     $('#result').css('color', 'black');
@@ -110,7 +112,8 @@ function calc() {
     $('#result').css('color', 'red');
   }
 }
-</code></pre></p>
+</code></pre>
+
 <h3 id="server">Server</h3>
 <p>Use either the <a href="/tutorial/java">Java tutorial</a> or <a 
href="/tutorial/cpp">C++ tutorial</a> server </p>
 <h2 id="additional-information">Additional Information</h2>


Reply via email to