Aug 25
In lesson 3 we cover handling form submissions between fuse actions. Our hello world application turns into a telephone directory linked to a db. We use conditional logic in our circuit definition file along with redirects.
The completed lesson 3 along with the database used can be downloaded below.
ps. a number of people have asked if i have an Amazon wish list for people to thank me for these lessons, I don’t have one but i have added a PayPal link on my site to accept donations.
September 14th, 2004 at 9:42 am
Excellent job; these tutorials really help me grasp and understand fusebox 4. I am definitely looking forward to lesson 4. Thanks for all your hard work and time.
November 30th, 2004 at 11:00 pm
This link is not working for me. Neither does 4 and 5. 1 and 2 are fine, however.
December 1st, 2004 at 8:31 am
that’ll be my fault - since i moved the hosts I forgot to move the blog attachments folder - all fixed now,
jb.
December 11th, 2004 at 3:37 pm
Lesson 3 download is not working. Thanks for an excellent tutorial. Are you going to be upgrading it for FB41?
May 4th, 2005 at 5:24 pm
Thanks for the Learn Fusebox lessons. You might want to put this post in the fusebox category though. i had to go search for lesson 3
May 10th, 2005 at 3:37 am
On the last page, third to last paragraph, you have explained how to create a server-side redirect using ‘type=server’ on the relocate tag.
For one thing, the attribute value - server - should be wrapped in quotes otherwise the xml is invalid. But even then it doesn’t work. The page takes a couple of minutes to load then displays a "500 null" error.
Is this an error in Fusebox or just this specific application?
May 10th, 2005 at 2:09 pm
yes, you are correct it needs the quotes. To be honest I’ve never needed to use a server side redirect but i know others have used it with success before.
December 10th, 2005 at 5:16 am
Really enjoying your Fusebox lessons - I have several FB books and couldn’t "Get It" until now.
I am stuck at Lesson 2, page 10. I cut/pasted your code and still getting an error message: "Undefined Circuit, You specified a Circuit of LearnFB which is not defined".
Tried several things, but nothing is working.
Please help…
Thanks for all your hard work and time.
December 11th, 2005 at 3:28 pm
did you download the accompanying zip file to compare your code to? You’ll need to start looking in your fusebox.xml.cfm file in the circuit definition section at the top to see if you’ve defined the LearnFB circuit.
August 13th, 2007 at 10:41 am
First of all: the tutorials are outstnading; I mean really good and well done both professionally and with good sense of humour.
One minor detail: for Lesson three on page 25: the cfquery part:
<cfquery name="userdetails" datasource="#request.dsn#"> select * from users where userID = #attributes.userID#</cfquery>
must be:
<cfquery name="userdetails" datasource="#request.dsn#"> select * from users where userID = ‘#attributes.userID#’</cfquery>
Otherwise it won’t work. For comparision see the earlier queries on pages 6 or 10; they both have single quotes as it supposed to be for sql queries.
Thank you,
Dante
August 13th, 2007 at 11:23 am
if userID is an INT column then you don’t need quotes around the value - that’s for strings only. I was using MSSQL in the examples.
February 6th, 2008 at 2:17 am
John, I can’t thank you enough. Really great tutorials. It took me a while to understand how all the pieces come together, but once it clicked, I was off and running and beginning to understand the beauty of fusebox. Thank you for taking the time to do this for us noobies. Now, I just need something slightly more advanced
May 13th, 2008 at 7:51 am
Thanks for your help. I am implementing FB 4.0 with the help of your tutorial.
Please let me know,
1. what folder level we need to keep site style sheet?. How to link style sheet in each page?.
2. How to include header file and left navigation?.
My header file is included in left navigation file.
What is best way to include left navigation file in each file?.
3. I got two sub folder for main folder…What is best way to organize common files used by application.
4. My application runs on cluster, Can i use client varibles to track session?.
5. I got lots of custom tags in my application, How to call custom tag, when i use fusebox?.
6. I am converting traditional code to fusebox code. What all i need to think before proceeding?.
Please help to ressolve these issue.
Thanks for all your help.
May 15th, 2008 at 9:42 am
there’s no set method for storing your stylesheets, that’s up to you, i tend to have an assets/css folder where I store them and then in my master layout file just do a normal link to them. If you’re implementing SES urls then you need to make sure the link is absolute and not relative (to the root index.cfm)
Have a layout file, with your layout in, and make use of content variables, eg, leftcolumn and body and then in your code populate the content variables and then apply the layout.
Not sure what you mena?
Yep, exactly the same ColdFusion stuff works fine, remember though Fusebox uses the application scope which isn’t replicatable in a cluster.
Custom tags - exactly the same as before, either put them in your server customtags path or keep them local to the site and either use cfmodule or cfimport.
plan, plan, plan - identify circuits first then group your fuseactions into those circuits.
hope that helps.