Search the web
Sign In
New User? Sign Up
fusebox5
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Is there a variable to use if the Application is refreshed   Message List  
Reply | Forward Message #3509 of 4396 |
Re: Is there a variable to use if the Application is refreshed

From the sounds of it you don't want to use fusebox.init.cfm for your
processing code, you want to use fusebox.appinit.cfm instead.
fusebox.apppinit.cfm is actually designed for this very purpose: it is
executed (if found) at the very beginning of the request only when the
Fusebox is loaded or reloaded. People typically use it to initialize
application-level variables but it'll work for this too I'm sure.

You should be able to just cut out your current processing code from
fusebox.init.cfm and paste it into a new file. Then save that file as
fusebox.appinit.cfm and you're done. You won't need any conditionals
testing the state of the Fusebox load, since any code in
fusebox.appinit.cfm is only processed if fusebox.load is true. You can
just go straight to your handler code.

HTH

Mike
http://www.fusebuilder.net


--- In fusebox5@yahoogroups.com, "neobob182" <neobob182@...> wrote:
> Hey Josh,
>
> My issue isn't so much handling the pages, it's just that I need to
> include the fusebox.init.cfm only once after I restart the Fusebox
> application files. After the initial include of Fusebox.init.cfm, my
> layout will throw function errors because it has already been
> declared. I am looking for a variable (Sean listed a few) that I can
> put in a cfif statement to run the Fusebox.init.cfm only once.
> However the variables that were given don't flag at 1, they must get
> set to true after the Fusebox application is restarted and then never
> returned to false. Which creates a problem with my cfif statements
> because I only want them to run once after a restart. I'm just
> wondering if there is a way to flag the cfif statement with these
> variables so that it is only true once after the Fusebox application
> has been restarted (which isn't going to happen very often)
>
> Thanks,
> Jody
>




Tue May 13, 2008 2:31 pm

starkraving2002
Online Now Online Now
Send Email Send Email

Forward
Message #3509 of 4396 |
Expand Messages Author Sort by Date

Hey Everyone, I was wondering if there is a variable or something I can use in a cfif statement to tell if the Fusebox application has been cleared and ...
neobob182
Offline Send Email
May 9, 2008
2:57 pm

... Although it is not documented, you can test the following: myFusebox.applicationStart - true if the application was just started or reloaded ...
Sean Corfield
seancorfield
Online Now Send Email
May 9, 2008
3:30 pm

... Sean, Is there any way to check the variables that they are only ran once after a refresh or clear? So far it seems like once the variable is set to true...
neobob182
Offline Send Email
May 9, 2008
5:35 pm

... Can you be more specific as to what you are talking about here? If you have certain code, or variables, you only want to fire on app start you can put...
Josh Carrico
the_sigepjedi
Offline Send Email
May 9, 2008
5:40 pm

... Not clear what you're asking, but I suspect this is a fusebox mode issue. Try using index.cfm?fuseaction=whatever&fusebox.load=1 or ...
Peter Boughton
boughtonp
Offline Send Email
May 9, 2008
6:10 pm

... I'll try to better explain what I'm trying to do. See, I have a website that uses Adobe Contribute to pull in web pages that other people can make. If...
neobob182
Offline Send Email
May 12, 2008
6:02 pm

... What is the error it displays (or error template)? Im guessing missing circuit.fuse, correct? Im not familiar with contribute, but if my assumption is...
Josh Carrico
the_sigepjedi
Offline Send Email
May 12, 2008
6:36 pm

... circuit.fuse ... Hey Josh, My issue isn't so much handling the pages, it's just that I need to include the fusebox.init.cfm only once after I restart the...
neobob182
Offline Send Email
May 13, 2008
2:17 pm

From the sounds of it you don't want to use fusebox.init.cfm for your processing code, you want to use fusebox.appinit.cfm instead. fusebox.apppinit.cfm is...
Mike
starkraving2002
Online Now Send Email
May 13, 2008
2:31 pm

I'm not clear on why you can't follow Sean's suggestion of using fusebox.appinit.cfm? Steve...
Stephen Judd
sgjudd1
Offline Send Email
May 13, 2008
2:31 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help