7#ifndef JAVASCRIPTEXAMPLE_H_
8#define JAVASCRIPTEXAMPLE_H_
10#include <Wt/WApplication.h>
An example showing how to interact custom JavaScript with Wt stuff.
std::unique_ptr< Popup > promptAmount_
Popup for changing the amount.
void confirmed()
The user has confirmed the payment.
WText * currentAmount_
WText for showing the current amount.
JavascriptExample(const WEnvironment &env)
Create the example application.
void setAmount(std::string amount)
Set the amount to be payed.
std::unique_ptr< Popup > confirmPay_
Popup for paying.