⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Wt
All Projects
Wt
Overview
Activity
Roadmap
Issues
Wiki
Forums
Download (732 Bytes)
RE: using JQuery
ยป test230.cc
Koen Deforche
, 12/14/2011 12:48 PM
#include
<Wt/WApplication>
#include
<Wt/WPushButton>
#include
<Wt/WLabel>
#include
<sstream>
using
namespace
Wt
;
class
TestApp
:
public
WApplication
{
public:
TestApp
(
const
WEnvironment
&
env
)
:
WApplication
(
env
)
{
require
(
"jquery.min.js"
);
require
(
"js/jquery.gritter.js"
);
std
::
stringstream
strm
;
strm
<<
"$.gritter.add({title: 'This is a regular notice!',text: 'This will fade out after a certain amount of time.',sticky: false,time: ''});"
;
doJavaScript
(
strm
.
str
());
}
void
foo
()
{
}
private
:
};
WApplication
*
createApplication
(
const
WEnvironment
&
env
)
{
TestApp
*
app
=
new
TestApp
(
env
);
return
app
;
}
int
main
(
int
argc
,
char
*
argv
[])
{
return
WRun
(
argc
,
argv
,
&
createApplication
);
}
(1-1/1)
Loading...