Hi,
I just committed a small change, which breaks compatibility in the hope,
that it is a really seldom used feature.
In a <%args> block we define the query parameters we receive. Appending
a "[]" to the argument name specifies a vector of arguments. You get a
std::vector in your c++ code.
Previously tntnet expected multiple values with the same name as the
variable without "[]". Now the "[]" is included in the name of the query
parameter.
So e.g. defining <%args>a[]<%args> results in a std::vector.
Previously this was filled using the url '...?a=5&a=6&a=7'. Now tntnet
(or actually ecpp generates code for it) expects '...?a[]=5&a[]=6&a[]=7'.
The reason was, that jquery and I guess other javascript libraries work
like that.
Now you can pass a javascript array directly in a jquery ajax request
like that:
$('#mycontent').load('/thepage.html', { a: [5,6,7] })
jquery generates 3 query arguments with the name "a[]", so it is now
really easy to read them.
Tommi
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general