CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Button.cc
Go to the documentation of this file.
2 
3 
5 {
6  std::string position = "position:absolute; left:" + get_pix_left() + "; top:" + get_pix_top();
7  *out << cgicc::div().set("style", position.c_str()) << std::endl;
8 
9  std::string js_command = "makeRequest('" + get_url() + "/" + "Request?RequestID=" + requestID + "', dummy)";
10  *out << cgicc::input().set("type", "button")
11  .set("value", name.c_str())
12  .set("onclick", js_command.c_str()) << std::endl;
13 
14  *out << cgicc::div() << std::endl;
15 }
std::string get_pix_left()
Definition: WebElement.h:38
std::string get_url()
Definition: WebElement.h:32
void printHTML(xgi::Output *out)
Definition: Button.cc:4
std::string name
the name that will appear on the button
Definition: Button.h:22
std::string requestID
the string connected to the callback, eg &quot;Default&quot;
Definition: Button.h:24
tuple out
Definition: dbtoconf.py:99
std::string get_pix_top()
Definition: WebElement.h:37
#define Output(cl)
Definition: vmac.h:193
static int position[264][3]
Definition: ReadPGInfo.cc:509
void set(const std::string &name, int value)
set the flag, with a run-time name