Hey Jeffrey,
2014-02-26 6:10 GMT+04:00 Jeffrey Scott Flesher Gmail <
jeffrey.scott.fles...@gmail.com>:
> Using httpd, I change the internal path using:
> Wt::WApplication::instance()->setInternalPath("/video&v=" +
> std::to_string(videoCombo->currentIndex()), true);
> but the page does not get recalled.
>
> I have a path to /video, if I click on it will on it a second time,
> nothing happens, that behavior is normal, but if a query changes it to
> /video&v=1, I would expect it to change, but it doesn't, so its not query
> aware.
> How do I get this behavior?
>
> What I am doing is using a WComboBox to change videos based on the index
> of the combo box, which I want bookmarked, so I use a query to set it, but
> this does not work, because of the behavior I am seeing above, so how can I
> work around this?
>
> Also it appends the queries, and I don't want that, so it looks like:
> /video&v=1&v=2, how do I delete the query, or better yet, change the value
> of v?
>
> I do not see any API to change a query, how do you work with queries?
>
>
> Query parameters is a part of entire URL, but not a part of internal path.
They are accessible
upon the session creation (usually from the application constructor) and
provided by
WEnvironment instance, but not from internal path changed handler.
>
Hence, how about using internal paths in a such way:
/videos/video1, /videos/video2, ... instead of
/video&v=1, /video&v=2 ?
Then you can easily write the internal path changed handler by using
WApplication::internalPathMatches() and
WApplication::internalPathNextPart().
--
// Dmitriy.
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest