From: Luke O. <lu...@ro...> - 2002-02-26 23:00:19
|
hello everyone - Coming tangential to a number of posts recently (the case-insensitivity one, and something about PHP i think), I'm curious people's thoughts on using colons (:) in form field names. Browsers I've tested seem to escape these safely, so are there any issues I'm setting myself up for by using these or other possibly special characters in field names? Thanks, Luke ===== ------------------ Reference Counting Garbage Collection: Look out philosophy majors, things really DO cease to exist when no one is looking at them! ------------------ __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com |
From: Jeffrey P S. <je...@cu...> - 2002-02-26 23:29:02
|
On 2/26/02 4:00 PM, "Luke Opperman" <lu...@ro...> wrote: > hello everyone - > > Coming tangential to a number of posts recently (the > case-insensitivity one, and something about PHP i think), > I'm curious people's thoughts on using colons (:) in form > field names. Browsers I've tested seem to escape these > safely, so are there any issues I'm setting myself up for > by using these or other possibly special characters in > field names? Nope. Zope uses colons all the time, and has done so since the Bobo days. (they're used in the publishing machinery to marshal form data into simple python objects:: <input type="text" name="age:int" ...> ) -- Jeffrey P Shell www.cuemedia.com |
From: Luke O. <lu...@ro...> - 2002-02-27 00:05:30
|
--- Jeffrey P Shell <je...@cu...> wrote: > Nope. Zope uses colons all the time, and has done so > since the Bobo days. > (they're used in the publishing machinery to marshal form > data into simple > python objects:: > <input type="text" name="age:int" ...> > ) That's what I recalled seeing previously on the list (I'm not a zope person, although that use looks fairly neat..) My use of them right now is to namespace my form variables, so that a page can have many modules that are unaware of each other, and all be submitted at once (the user can change a value in more than one module without refreshing after each little change), and then the modules are handed their individual field dictionaries minus the namespace, to process as needed. Only the outer system knows about the namespaces, and knows what real module corresponds to each. Anyways, Luke ===== ------------------ Reference Counting Garbage Collection: Look out philosophy majors, things really DO cease to exist when no one is looking at them! ------------------ __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com |
From: Chuck E. <ChuckEsterbrook@StockAlerts.com> - 2002-02-28 12:14:17
|
On Tuesday 26 February 2002 04:05 pm, Luke Opperman wrote: > My use of them right now is to namespace my form variables, > so that a page can have many modules that are unaware of > each other, and all be submitted at once (the user can > change a value in more than one module without refreshing > after each little change), and then the modules are handed > their individual field dictionaries minus the namespace, to > process as needed. Only the outer system knows about the > namespaces, and knows what real module corresponds to each. Sounds neat. Why not use periods so that you have the dotted notation seen so frequently in Python and JavaScript? Then you could reserve the colons for typing, a la Zope. -Chuck |
From: Ian B. <ia...@co...> - 2002-02-28 16:08:04
|
You can use spaces or dashes or probably other punctuation too -- so there's no lack of possibilities. And when you start doubling them for a different meaning, you get just that much more information packed in there. On Thu, 2002-02-28 at 06:14, Chuck Esterbrook wrote: > On Tuesday 26 February 2002 04:05 pm, Luke Opperman wrote: > > My use of them right now is to namespace my form variables, > > so that a page can have many modules that are unaware of > > each other, and all be submitted at once (the user can > > change a value in more than one module without refreshing > > after each little change), and then the modules are handed > > their individual field dictionaries minus the namespace, to > > process as needed. Only the outer system knows about the > > namespaces, and knows what real module corresponds to each. > > Sounds neat. Why not use periods so that you have the dotted notation > seen so frequently in Python and JavaScript? Then you could reserve the > colons for typing, a la Zope. > > > -Chuck > > _______________________________________________ > Webware-discuss mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webware-discuss > |