On Wed, Aug 24, 2011 at 12:00 PM, Ennio <enniobozze...@gmail.com> wrote:

> So how can I setup my home view to see if the user is passing an
> argument or not.
>

All URL and form variables are put in the Mach-II event object, so let's
assume by "pass" you mean an argument called 'state' in the URL. You'd
access that value on a view page via:
event.getArg("state")

So for example, let's say you wanted to check to see if that argument exists
and if so, do something:
<cfif event.isArgDefined("state")>
    <!--- do something based on value of event.getArg("state") --->
</cfif>

Hope that helps.
-- 
Matthew Woodward
m...@mattwoodward.com
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

-- 
To post to this group, send email to mach-ii-for-coldfusion@googlegroups.com
For more options and to unsubscribe, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en

SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/

Reply via email to