Dump out the contents of the Event object... Either event.getAll() or Event.getAllValues() I forget... You'll find what you need inside.
------Original Message------ From: Preserved Killick Sender: [email protected] To: model-glue ReplyTo: [email protected] Subject: [Model-Glue] Re: Does the view know which event was called? Sent: Dec 21, 2009 9:22 AM Hmm actually..it does not work. <cfset theEventRequested = event.getvalue(event.getvalue ('eventname')) /> gives me an empty string? It looked good though. jeff On Dec 21, 9:14 am, Preserved Killick <[email protected]> wrote: > Works! Thanks. > > On Dec 21, 8:59 am, Sean Coyne <[email protected]> wrote: > > > <cfset theEventRequested = event.getvalue(event.getvalue > > ('eventname')) /> > > > On Dec 21, 8:47 am, Preserved Killick <[email protected]> wrote: > > > > I've got a view page that used a GoogleMap api and it needs the a > > > different body tag in my template. Rather than make a new template or > > > event type, it seems simpler to have the template conditionally set > > > the body tag for the one event that will need it. > > > > Something like: > > > > <cfif #event# is "page.directions"> > > > <body id="home" onunload="GUnload()"> > > > <cfelse> > > > <body id="home"> > > > </cfif> > > > > Is the event name available to the view page? > > > > arguments.event.getValue("EventName") does not work. > > > > Of course, if there's a better way I'm all ears. > > > > -jeff -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog 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 Sent from my Verizon Wireless BlackBerry -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog 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
