As other folks said, it's best to use methods or attributes to  
communicate in this way:

    http://www.masonhq.com/docs/manual/Devel.html#object_oriented_techniques

The 'our' variable doesn't work because it is restricted to a  
particular file.

On Oct 14, 2009, at 8:04 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. I've tried a  
> shared section in the dhandler:
>
> <%shared>
> our $subpageTitle;
> </%shared>
>
> And $subpageTitle gets set in the %init block of the dhandler.
>
> However I can't seem to access $subpageTitle in the autohandler... I  
> just get an error about "Global symbol "$subpageTitle" requires  
> explicit package name". Not sure what package name to give it for  
> the dhandler....
>
> Thanks!
>
> -kira
>
> ------------------------------------------------------------------------------
> 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
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users


------------------------------------------------------------------------------
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
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to