Archive of UserLand's first discussion group, started October 5, 1998.

Re: a minor flaw in mainresponder.respond

Author:Brian V. Hughes
Posted:7/28/1999; 11:28:59 AM
Topic:a minor flaw in mainresponder.respond
Msg #:8836 (In response to 8808)
Prev/Next:8835 / 8837

the whole point is that latinToMac chokes on tables, so one can add a little check that leaves tables in the postargs alone, don't know of any way that those will occur but file uploads...

if defined (adrparamtable^.postArgs) { for i = 1 to sizeOf (adrparamtable^.postArgs) { if typeof(adrparamtable^.postArgs [i]) != tabletype { adrparamtable^.postArgs [i] = latinToMac.convert (adrparamtable^.postArgs [i])}}};

While this does address one problem with the latinToMac conversion that happens as part of mainResponder.respond, it still doesn't handle the problem that I brought up some months ago.

Namely that if the type of entry in the postArgs table is a list, such as you would get with multiple checkboxes or multi-selects, the latinToMac conversion coerces this entry to a string.

This just has to be a bad thing, since it forces you to have to check for the existence of "{" in your postArg entries to see if you should coerce the entry back to a list before your post processing script can correctly handle the data...




This page was archived on 6/13/2001; 4:51:34 PM.

© Copyright 1998-2001 UserLand Software, Inc.