Hi,
anchor = new WAnchor(new WFileResource("text/html", "/path/to/file",
this), this);
anchor->setTarget(Wt::TargetNewWindow);
Note that any file in the --docroot=... directory is accessible
through http, so you could also use an anchor without a WResource
(depends a bit on whether this is a public file, or session-specific,
or ...)
Regards,
Wim
2010/1/16 <[email protected]>:
> hi :
> in wt,no html file .some time ,I want to dynamic generate page ,but no
> need generate a disk file html ,can show in a new browse window, on top of
> the current window.
> dynamic generate page such as :
> <?xml version="1.0" encoding="utf-8">
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
> <head>
> <title>dynamic generate page</title>
> </head>
> <body>
> <div style="width:99%;height:99%">dynamic generate page</div>
> </body>
> </html>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest