On 10/14/2009 11:04:39 AM, Jackie Hamilton wrote:
> Is there a way to pass a variable from the dhandler up to the
> autohandler?
>
> I'm building a site where the autohandler constructs the html page
> (including the page title) but the dhandler is the one that actually
> figures
> out what the page content and title is supposed to be. I can't figure
> out
> how to pass the $title info over.
Can the autohandler accept args? I dunno. Anyway, the way I do this is
to pass the title to the component (here "base.mhtml" instead of the
autohandler -- since you are using the dhandler first, you might as
well call something specific:
in dhandler:
$m-redirect("base.mhtml?title=$title");
The title will be available in base.mhtml as $ARGS{title}.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users