Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 406

wt-doc-3.2.3-1.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt examples: JavascriptExample Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt examples
   &#160;<span id="projectnumber">3.2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">JavascriptExample Class Reference<div class="ingroups"><a class="el" href="group__javascript.html">Javascript - Wt interaction example</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="JavascriptExample" --><!-- doxytag: inherits="Wt::WApplication" -->
<p>An example showing how to interact custom JavaScript with <a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/namespaceWt.html">Wt</a> stuff.  
 <a href="classJavascriptExample.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="JavascriptExample_8h_source.html">JavascriptExample.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for JavascriptExample:</div>
<div class="dyncontent">
<div class="center"><img src="classJavascriptExample__inherit__graph.png" border="0" usemap="#JavascriptExample_inherit__map" alt="Inheritance graph"/></div>
<map name="JavascriptExample_inherit__map" id="JavascriptExample_inherit__map">
<area shape="rect" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WApplication.html" title="Wt::WApplication" alt="" coords="8,80,131,107"/><area shape="rect" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WObject.html" title="Wt::WObject" alt="" coords="21,5,117,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classJavascriptExample-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJavascriptExample.html#a77b459948d455df5cdb17df2d7e290a6">JavascriptExample</a> (const <a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WEnvironment.html">WEnvironment</a> &amp;env)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create the example application.  <a href="#a77b459948d455df5cdb17df2d7e290a6"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJavascriptExample.html#a3a275b368e298b3d89c6d2729e1acd69">confirmed</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The user has confirmed the payment.  <a href="#a3a275b368e298b3d89c6d2729e1acd69"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJavascriptExample.html#aa75d161f232147d89a1c343f1e13b40d">setAmount</a> (std::string amount)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the amount to be payed.  <a href="#aa75d161f232147d89a1c343f1e13b40d"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classPopup.html">Popup</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJavascriptExample.html#a1e155e7b50393ba00fd2256a33ee5ef7">promptAmount_</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classPopup.html" title="A JavaScript based popup window, encapsulating the Javascript functions alert(), confirm(), and prompt().">Popup</a> for changing the amount.  <a href="#a1e155e7b50393ba00fd2256a33ee5ef7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classPopup.html">Popup</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJavascriptExample.html#ab169ca86f643cf5602c63d8fc88bbfc0">confirmPay_</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classPopup.html" title="A JavaScript based popup window, encapsulating the Javascript functions alert(), confirm(), and prompt().">Popup</a> for paying.  <a href="#ab169ca86f643cf5602c63d8fc88bbfc0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html">WText</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJavascriptExample.html#a6e4ca792d015d42f20578f1b05e3e282">currentAmount_</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">WText for showing the current amount.  <a href="#a6e4ca792d015d42f20578f1b05e3e282"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>An example showing how to interact custom JavaScript with <a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/namespaceWt.html">Wt</a> stuff. </p>

<p>Definition at line <a class="el" href="JavascriptExample_8h_source.html#l00024">24</a> of file <a class="el" href="JavascriptExample_8h_source.html">JavascriptExample.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a77b459948d455df5cdb17df2d7e290a6"></a><!-- doxytag: member="JavascriptExample::JavascriptExample" ref="a77b459948d455df5cdb17df2d7e290a6" args="(const WEnvironment &amp;env)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">JavascriptExample::JavascriptExample </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WEnvironment.html">WEnvironment</a> &amp;&#160;</td>
          <td class="paramname"><em>env</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create the example application. </p>

<p>Definition at line <a class="el" href="JavascriptExample_8C_source.html#l00019">19</a> of file <a class="el" href="JavascriptExample_8C_source.html">JavascriptExample.C</a>.</p>
<div class="fragment"><pre class="fragment">  : <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WApplication.html#ae29a843f4d50159b17abfa9503c389db">WApplication</a>(env)
{
  <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WApplication.html#a71a3f7da5abb9a76df94fab69ba61670">setTitle</a>(<span class="stringliteral">&quot;Javascript example&quot;</span>);

  <span class="comment">// Create a popup for prompting the amount of money, and connect the</span>
  <span class="comment">// okPressed button to the slot for setting the amount of money.</span>
  <span class="comment">//</span>
  <span class="comment">// Note that the input provided by the user in the prompt box is passed as</span>
  <span class="comment">// an argument to the slot.</span>
  <a class="code" href="classJavascriptExample.html#a1e155e7b50393ba00fd2256a33ee5ef7" title="Popup for changing the amount.">promptAmount_</a> = <a class="code" href="classPopup.html#adf73b1320baaea8d1a090d4bb3e7f3ac" title="Create a prompt dialog with the given default value.">Popup::createPrompt</a>(<span class="stringliteral">&quot;How much do you want to pay?&quot;</span>, <span class="stringliteral">&quot;&quot;</span>,
                                      <span class="keyword">this</span>);
  <a class="code" href="classJavascriptExample.html#a1e155e7b50393ba00fd2256a33ee5ef7" title="Popup for changing the amount.">promptAmount_</a>-&gt;<a class="code" href="classPopup.html#a3705ac1c6feedfbf737ae729ec097bab" title="Signal emitted when ok pressed.">okPressed</a>().<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1JSignal.html#aabb41837c09620b689972095b8a050fc">connect</a>(<span class="keyword">this</span>, &amp;<a class="code" href="classJavascriptExample.html#aa75d161f232147d89a1c343f1e13b40d" title="Set the amount to be payed.">JavascriptExample::setAmount</a>);

  <span class="comment">// Create a popup for confirming the payment.</span>
  <span class="comment">//</span>
  <span class="comment">// Since a confirm popup does not allow input, we ignore the</span>
  <span class="comment">// argument carrying the input (which will be empty anyway).</span>
  <a class="code" href="classJavascriptExample.html#ab169ca86f643cf5602c63d8fc88bbfc0" title="Popup for paying.">confirmPay_</a> = <a class="code" href="classPopup.html#a2ab31c6aca9d435eb734a8be24eea7b9" title="Create a confirm dialog.">Popup::createConfirm</a>(<span class="stringliteral">&quot;&quot;</span>, <span class="keyword">this</span>);
  <a class="code" href="classJavascriptExample.html#ab169ca86f643cf5602c63d8fc88bbfc0" title="Popup for paying.">confirmPay_</a>-&gt;<a class="code" href="classPopup.html#a3705ac1c6feedfbf737ae729ec097bab" title="Signal emitted when ok pressed.">okPressed</a>().<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1JSignal.html#aabb41837c09620b689972095b8a050fc">connect</a>(<span class="keyword">this</span>, &amp;<a class="code" href="classJavascriptExample.html#a3a275b368e298b3d89c6d2729e1acd69" title="The user has confirmed the payment.">JavascriptExample::confirmed</a>);

  <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html">WText</a>(<span class="stringliteral">&quot;&lt;h2&gt;Wt Javascript example&lt;/h2&gt;&quot;</span>
            <span class="stringliteral">&quot;&lt;p&gt;Wt makes abstraction of Javascript, and therefore allows you&quot;</span>
            <span class="stringliteral">&quot; to develop web applications without any knowledge of Javascript,&quot;</span>
            <span class="stringliteral">&quot; and which are not dependent on Javascript.&quot;</span>
            <span class="stringliteral">&quot; However, Wt does allow you to add custom Javascript code:&lt;/p&gt;&quot;</span>
            <span class="stringliteral">&quot; &lt;ul&gt;&quot;</span>
            <span class="stringliteral">&quot;   &lt;li&gt;To call custom JavaScript code from an event handler, &quot;</span>
            <span class="stringliteral">&quot;connect the Wt::EventSignal to a Wt::JSlot.&lt;/li&gt;&quot;</span>
            <span class="stringliteral">&quot;   &lt;li&gt;To call C++ code from custom JavaScript, use &quot;</span>
            <span class="stringliteral">&quot;Wt.emit() to emit a Wt::JSignal.&lt;/li&gt;&quot;</span>
            <span class="stringliteral">&quot;   &lt;li&gt;To call custom JavaScript code from C++, use &quot;</span>
            <span class="stringliteral">&quot;WApplication::doJavascript() or Wt::JSlot::exec().&lt;/li&gt;&quot;</span>
            <span class="stringliteral">&quot; &lt;/ul&gt;&quot;</span>
            <span class="stringliteral">&quot;&lt;p&gt;This simple application shows how to interact between C++ and&quot;</span>
            <span class="stringliteral">&quot; JavaScript using the JSlot and JSignal classes.&lt;/p&gt;&quot;</span>, <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WApplication.html#a17e118a04d962459484a12989a80bc05">root</a>());

  <a class="code" href="classJavascriptExample.html#a6e4ca792d015d42f20578f1b05e3e282" title="WText for showing the current amount.">currentAmount_</a>
    = <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html">WText</a>(<span class="stringliteral">&quot;Current amount: $&quot;</span> + <a class="code" href="classJavascriptExample.html#a1e155e7b50393ba00fd2256a33ee5ef7" title="Popup for changing the amount.">promptAmount_</a>-&gt;<a class="code" href="classPopup.html#a3069c5552a1ce6faeec9c580ae7f62ad" title="Get the default value for a prompt dialog.">defaultValue</a>(), <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WApplication.html#a17e118a04d962459484a12989a80bc05">root</a>());

  <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WPushButton.html">WPushButton</a> *amountButton = <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WPushButton.html">WPushButton</a>(<span class="stringliteral">&quot;Change ...&quot;</span>, <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WApplication.html#a17e118a04d962459484a12989a80bc05">root</a>());
  amountButton-&gt;setMargin(10, Left | Right);

  <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WBreak.html">WBreak</a>(<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WApplication.html#a17e118a04d962459484a12989a80bc05">root</a>());

  <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WPushButton.html">WPushButton</a> *confirmButton = <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WPushButton.html">WPushButton</a>(<span class="stringliteral">&quot;Pay now.&quot;</span>, <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WApplication.html#a17e118a04d962459484a12989a80bc05">root</a>());
  confirmButton-&gt;<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWebWidget.html#a9795c18e926b26b97fcbabc62a1dd4e3">setMargin</a>(10, Top | Bottom);

  <span class="comment">// Connect the event handlers to a JSlot: this will execute the JavaScript</span>
  <span class="comment">// immediately, without a server round trip.</span>
  amountButton-&gt;clicked().connect(<a class="code" href="classJavascriptExample.html#a1e155e7b50393ba00fd2256a33ee5ef7" title="Popup for changing the amount.">promptAmount_</a>-&gt;<a class="code" href="classPopup.html#a4fba40d8284a8022842f523dfa6318fa" title="Show the dialog.">show</a>);
  confirmButton-&gt;<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WInteractWidget.html#ae11e050cce0d4a8f742afa3ef92bfe8c">clicked</a>().connect(<a class="code" href="classJavascriptExample.html#ab169ca86f643cf5602c63d8fc88bbfc0" title="Popup for paying.">confirmPay_</a>-&gt;<a class="code" href="classPopup.html#a4fba40d8284a8022842f523dfa6318fa" title="Show the dialog.">show</a>);

  <span class="comment">// Set the initial amount</span>
  <a class="code" href="classJavascriptExample.html#aa75d161f232147d89a1c343f1e13b40d" title="Set the amount to be payed.">setAmount</a>(<span class="stringliteral">&quot;1000&quot;</span>);
}
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a3a275b368e298b3d89c6d2729e1acd69"></a><!-- doxytag: member="JavascriptExample::confirmed" ref="a3a275b368e298b3d89c6d2729e1acd69" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JavascriptExample::confirmed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The user has confirmed the payment. </p>

<p>Definition at line <a class="el" href="JavascriptExample_8C_source.html#l00088">88</a> of file <a class="el" href="JavascriptExample_8C_source.html">JavascriptExample.C</a>.</p>
<div class="fragment"><pre class="fragment">{
  <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html">WText</a>(<span class="stringliteral">&quot;&lt;br/&gt;Just payed $&quot;</span> + <a class="code" href="classJavascriptExample.html#a1e155e7b50393ba00fd2256a33ee5ef7" title="Popup for changing the amount.">promptAmount_</a>-&gt;<a class="code" href="classPopup.html#a3069c5552a1ce6faeec9c580ae7f62ad" title="Get the default value for a prompt dialog.">defaultValue</a>() + <span class="stringliteral">&quot;.&quot;</span>, <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WApplication.html#a17e118a04d962459484a12989a80bc05">root</a>());
}
</pre></div>
</div>
</div>
<a class="anchor" id="aa75d161f232147d89a1c343f1e13b40d"></a><!-- doxytag: member="JavascriptExample::setAmount" ref="aa75d161f232147d89a1c343f1e13b40d" args="(std::string amount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JavascriptExample::setAmount </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>amount</em></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the amount to be payed. </p>

<p>Definition at line <a class="el" href="JavascriptExample_8C_source.html#l00076">76</a> of file <a class="el" href="JavascriptExample_8C_source.html">JavascriptExample.C</a>.</p>
<div class="fragment"><pre class="fragment">{
  <span class="comment">// Change the confirmation message to include the amount.</span>
  <a class="code" href="classJavascriptExample.html#ab169ca86f643cf5602c63d8fc88bbfc0" title="Popup for paying.">confirmPay_</a>-&gt;<a class="code" href="classPopup.html#a29f79258a69ee042dbf970b7883b2b97" title="Change the message.">setMessage</a>(<span class="stringliteral">&quot;Are you sure you want to pay $&quot;</span> + amount + <span class="stringliteral">&quot; ?&quot;</span>);

  <span class="comment">// Change the default value for the prompt.</span>
  <a class="code" href="classJavascriptExample.html#a1e155e7b50393ba00fd2256a33ee5ef7" title="Popup for changing the amount.">promptAmount_</a>-&gt;<a class="code" href="classPopup.html#a97c14de0bcf9ca764b29eceb7627f14c" title="Change the default value for a prompt dialog.">setDefaultValue</a>(amount);

  <span class="comment">// Change the text that shows the current amount.</span>
  <a class="code" href="classJavascriptExample.html#a6e4ca792d015d42f20578f1b05e3e282" title="WText for showing the current amount.">currentAmount_</a>-&gt;<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html#a2f788aa524d51b3962642c9f565e66e6">setText</a>(<span class="stringliteral">&quot;Current amount: $&quot;</span> + <a class="code" href="classJavascriptExample.html#a1e155e7b50393ba00fd2256a33ee5ef7" title="Popup for changing the amount.">promptAmount_</a>-&gt;<a class="code" href="classPopup.html#a3069c5552a1ce6faeec9c580ae7f62ad" title="Get the default value for a prompt dialog.">defaultValue</a>());
}
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ab169ca86f643cf5602c63d8fc88bbfc0"></a><!-- doxytag: member="JavascriptExample::confirmPay_" ref="ab169ca86f643cf5602c63d8fc88bbfc0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPopup.html">Popup</a>* <a class="el" href="classJavascriptExample.html#ab169ca86f643cf5602c63d8fc88bbfc0">JavascriptExample::confirmPay_</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classPopup.html" title="A JavaScript based popup window, encapsulating the Javascript functions alert(), confirm(), and prompt().">Popup</a> for paying. </p>

<p>Definition at line <a class="el" href="JavascriptExample_8h_source.html#l00046">46</a> of file <a class="el" href="JavascriptExample_8h_source.html">JavascriptExample.h</a>.</p>

</div>
</div>
<a class="anchor" id="a6e4ca792d015d42f20578f1b05e3e282"></a><!-- doxytag: member="JavascriptExample::currentAmount_" ref="a6e4ca792d015d42f20578f1b05e3e282" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html">WText</a>* <a class="el" href="classJavascriptExample.html#a6e4ca792d015d42f20578f1b05e3e282">JavascriptExample::currentAmount_</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>WText for showing the current amount. </p>

<p>Definition at line <a class="el" href="JavascriptExample_8h_source.html#l00050">50</a> of file <a class="el" href="JavascriptExample_8h_source.html">JavascriptExample.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1e155e7b50393ba00fd2256a33ee5ef7"></a><!-- doxytag: member="JavascriptExample::promptAmount_" ref="a1e155e7b50393ba00fd2256a33ee5ef7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPopup.html">Popup</a>* <a class="el" href="classJavascriptExample.html#a1e155e7b50393ba00fd2256a33ee5ef7">JavascriptExample::promptAmount_</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classPopup.html" title="A JavaScript based popup window, encapsulating the Javascript functions alert(), confirm(), and prompt().">Popup</a> for changing the amount. </p>

<p>Definition at line <a class="el" href="JavascriptExample_8h_source.html#l00042">42</a> of file <a class="el" href="JavascriptExample_8h_source.html">JavascriptExample.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/koen/project/wt/public-git/wt/examples/javascript/<a class="el" href="JavascriptExample_8h_source.html">JavascriptExample.h</a></li>
<li>/home/koen/project/wt/public-git/wt/examples/javascript/<a class="el" href="JavascriptExample_8C_source.html">JavascriptExample.C</a></li>
</ul>
</div>
<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>