opensubscriber
   Find in this group all groups
 
Unknown more information…

a : aolserver@listserv.aol.com 11 May 2011 • 11:16PM -0400

Re: [AOLSERVER] Feature request: ns_querygetarray function
by Torben Brosten

REPLY TO AUTHOR
 
REPLY TO GROUP




Alexey Pechnikov wrote:
> 2011/5/11 Torben Brosten <torben@dekk...>:
>> Here's a proc that uses ns_getform, and returns the form values to a
>> supplied array name:
>>
>> qf_get_inputs_as_array
>>
>> See:
>> http://fisheye.openacs.org/browse/OpenACS/openacs-4/packages/spreadsheet/tcl/form-procs.tcl?r=1.27
>>
>> It uses ad_quotehtml from OpenACS and includes some basic protections.
>
> ACS is very complex solution. Custom AOL-based ORM
> (http://en.wikipedia.org/wiki/Object-relational_mapping)
> for AJAX applications may be extremly smaller than ACS.
>

qf_get_inputs_as_array is available to use ns_getform with some common
security constraints.

To use qf_get_inputs_as_array outside of the ACS dependency, remove the
first case of ad_quotehtml, it's redundant.

For the second case of ad_quotehtml, substitute a proc defined as:

  return [string map {& & \" " < < > >} $arg]


There are no other dependencies on ACS.

cheers,

Torben


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <listserv@list...> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.