Wt examples 3.3.12
JavascriptExample.h
Go to the documentation of this file.
1// This may look like C code, but it's really -*- C++ -*-
2/*
3 * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
4 *
5 * See the LICENSE file for terms of use.
6 */
7#ifndef JAVASCRIPTEXAMPLE_H_
8#define JAVASCRIPTEXAMPLE_H_
9
10#include <Wt/WApplication>
11
12using namespace Wt;
13
18
19class Popup;
20
25{
26public:
30
31private:
34 void confirmed();
35
38 void setAmount(std::string amount);
39
43
47
51};
52
55#endif // JAVASCRIPTEXAMPLE_H_
An example showing how to interact custom JavaScript with Wt stuff.
Popup * promptAmount_
Popup for changing the amount.
void confirmed()
The user has confirmed the payment.
WText * currentAmount_
WText for showing the current amount.
void setAmount(std::string amount)
Set the amount to be payed.
Popup * confirmPay_
Popup for paying.
A JavaScript based popup window, encapsulating the Javascript functions alert(), confirm(),...
Definition Popup.h:33
WEnvironment & env()

Generated on Fri May 17 2024 for the C++ Web Toolkit (Wt) by doxygen 1.9.8