Mar 02
Marc Vos Lasso9 take 15: param, queryparams and action_param
Mar 02, 2013; 20:49
Marc Vos
Lasso9 take 15: param, queryparams and action_param
Hi,
We get 'definition not found' errors when we try to use
queryParams; // just to show the passed params. Seems it does not exist, this tag.
param('-x'); // definition not found: param(string)
see: http://lassoguide.com/operations/requests-responses.html#get-post-arguments
The reason we wanted to use these is because action_params does not return a certain value of a key, passed via the URL.
As we suspected, the cause is the use of one or more = characters in a value. I think L9 does a split on = and does not rejoin everything from index 2 and higher.
What works:
http://localhost/testparams.ls?-x=ABCD
action_param('-x'); // returns ABCD
What does not work in L9, but works in L8:
http://localhost/testparams.ls?-x=AB=CD
action_param('-x'); // returns nothing
http://localhost/testparams.ls?-x=AB=CD&-y=10
action_param('-x'); // returns nothing
action_param('-y'); // returns 10
It does not matter where you place the = or how many.
Bug(s)?
- -
Marc
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Mar 03
Rick Draper RE: Lasso9 take 15: param, queryparams and action_param
Mar 03, 2013; 06:01
Rick Draper
RE: Lasso9 take 15: param, queryparams and action_param
Mar 02
Brad Lindsay Re: Lasso9 take 15: param, queryparams and action_param
Mar 02, 2013; 15:09
Brad Lindsay
Re: Lasso9 take 15: param, queryparams and action_param
Mar 02
Marc Vos Re: Lasso9 take 15: param, queryparams and action_param
Mar 02, 2013; 21:43
Marc Vos
Re: Lasso9 take 15: param, queryparams and action_param
Mar 02
Marc Vos Re: Lasso9 take 15: param, queryparams and action_param
Mar 02, 2013; 21:51
Marc Vos
Re: Lasso9 take 15: param, queryparams and action_param