|
It would be nice if we could post the salient parts of this code
right in the mailing list, if you don't mind. You might get a
broader response that way. NOTE: I get the same results from ACF9 as from OpenBD 2.02... G G G Ghost Vars!! RUN! AAAAyyyyeeeeee!! I put this line <cfdump var="#variables#"> at the end of your index.cfm file, and I can see all the things that CF considers "un-scoped". For example, while you DO scope application.Scanner on startup, this object has 2 methods within (LoadTemplate & LoadPage) that have popped up in the "variables" scope at the time the dump is called. I think the issue might come from using the OnRequest() method as the "code shell" for the whole page; also perhaps that the methods in scanner.cfc are not well encapsulated. They read from external scopes and write directly to the page, as opposed to [returning values back - from input arguments passed in], like most well-behaved functions. Here are some quasi-related conversations I found - that might help: http://forums.adobe.com/message/2285269 http://stackoverflow.com/questions/8188015/do-variables-inside-application-cfc-functions-need-scoping http://forums.adobe.com/thread/604831 http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=appFramework_04.html Finally, your application is named "Scanner", and you've also created an object named "Scanner" within it. Despite the referential separation by tiny dots, some people would cringe and shudder at such a naming practice. Al On 4/3/2012 8:29 AM, Benjamin Davis wrote: Hey Alan,-- online documentation: http://openbd.org/manual/ google+ hints/tips: https://plus.google.com/115990347459711259462 http://groups.google.com/group/openbd?hl=en |
- [OpenBD] Variables not resetting on each request Ben
- Re: [OpenBD] Variables not resetting on each request Alan Holden
- Re: [OpenBD] Variables not resetting on each req... Alan Holden
- Re: [OpenBD] Variables not resetting on each... Benjamin Davis
- Re: [OpenBD] Variables not resetting on ... Alex Skinner
- Re: [OpenBD] Variables not resettin... Benjamin Davis
- Re: [OpenBD] Variables not rese... Matthew Woodward
- Re: [OpenBD] Variables not rese... Alex Skinner
- Re: [OpenBD] Variables not ... Benjamin Davis
- Re: [OpenBD] Variables not ... Alan Holden
- Re: [OpenBD] Variables not ... Benjamin Davis
- Re: [OpenBD] Variables not ... Alan Holden
- Re: [OpenBD] Variables not ... Benjamin Davis
