|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
fusebox not working correctly
Hi everyone,
I'm trying to apply the fusebox methodology to this new project and it seems to work partially only this is my index.cfm file, it has the default fuseaction=main so if there's nothing passed, it will load the main.cfm file, that works fine. In the Main.cfm file there is a link like this <a href="index.cfm?fuseaction=label">Make A Prescription Label</a> The problem is: when that link is clicked, the label.cfm page does not load, but instead, the main.cfm page is reloaded because it is the default fuseaction. I've tried comparing the code line by line to the examples in the FuseBox Tutorial but it seems that the case statement isn't processing the fuseaction or something. Please Help . Thanks index.cfm content: <cfparam name="attributes.fuseaction" default="main"> <cfswitch expression="#attributes.fuseaction#"> <cfcase value="main"> <cfinclude template="main.cfm"> </cfcase> <cfcase value="label"> <cfinclude template="label.cfm"> </cfcase> <cfcase value="test"> <cfinclude template="test.cfm"> </cfcase> </cfswitch> |
|
#2
|
|||
|
|||
|
What version of fusebox are you employing?
Fusebox 3 uses an fbx_switch.cfm file where the case statement would be, and index.cfm just includes a fusebox core file. With FB3 apps, I setup my default fuse in the fbx_settings.cfm file. If you are using fusebox, you should use the core files. They also take care of the form and url scope transformation to the "attributes" scope, which could be why your label link is not working. |
|
#3
|
|||
|
|||
|
Also, Fusebox 3 and 4 both require a fully-qualified fuseaction, meaning that you must supply a circuit name and a fuseaction name, like this: "fuseaction=users.showallusers"
I'd highly recommend learning Fusebox 4.1 as it is the latest version and has been refined a great deal since previous versions.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#4
|
|||
|
|||
|
I'm actually following a book called Fusebox - Methodology and Techniques by Steve Nelson and Craig Girand (ISBN 0-9673447-6) It doesn't seem to mention which version it is using, but it's published in 2000, so that's prolly pretty old. I'm gonna have to look into the new one then. Thnx for clarifying
|
|
#5
|
|||
|
|||
|
Yes, that is what was known as "Fusebox 2". It is totally outdated. Go to www.fusebox.org and download Fusebox 4.1 along with some of the sample apps. That should get you started.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > fusebox not working correctly |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|