I think it would be a nice shorthand to do this. Just to make sure I get it... Given the following URL structure:
http://thehealthchallenge.com/index.cfm?x=Register.Form > event.getEventValue() would return 'x' Is that right? On Thu, Nov 13, 2008 at 3:00 PM, Chris Blackwell <[EMAIL PROTECTED]> wrote: > Cheers for explaining *why* i do that J. Sometimes i forget to type what > i'm thinking, and vice-versa :) > > I see the "eventValue" url variable as a special case and as such a > shorthand for retrieving it like this would encourage people to follow the > "more correct" way. What do you think to an event.getEventValue() method? > > Chris > > 2008/11/13 Jared Rypka-Hauer <[EMAIL PROTECTED]> > > >> Fair enough Chris... that is indeed what you could call a "more >> correct" way of doing it. >> >> Either way would work, but Chris's is more bulletproof should you >> change your app from responding to event=foo.bar to responding to >> page=foo.bar. >> >> J >> >> On Nov 13, 2008, at 1:13 PM, Chris Blackwell wrote: >> >> > I know this may be slightly OTT, but i try and write my apps such >> > that changing a setting in the MG config should not break >> > anything. so i do... >> > >> > <cfset myevent = event.getValue(event.getValue("eventValue"), >> > "some.default") /> >> > >> > imho, there should probably be a shorthand for this in >> > EventContext.cfc - getEventValue() perhaps? >> > >> > Chris >> >> >> > > > > -- "Come to the edge, he said. They said: We are afraid. Come to the edge, he said. They came. He pushed them and they flew." Guillaume Apollinaire quotes --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en For more about Model-Glue, check http://www.model-glue.com . -~----------~----~----~----~------~----~------~--~---
