Latest Post

iPhone 3.0 bugs

So here are details of two bugs I’ve found so far; In the Camera application in the bottom left corner is (I guess) your latest picture in your Camera Roll except the picture I’m being shown is about 6 pictures ago and not updating. I sync my iPhone to my iMac at home but as is often the...

Read More

Lesson 2 – HelloWorld part2

Posted by johnb | Posted in Uncategorized | Posted on 24-08-2004

Tags:

7

In this lesson we use some of the fusebox variables that are available at run time, use the attributes scope for passing data between fuseactions and use XFAs to allow us to control application flow.

The completed application is available for download below.

I’ve made some changes to directory structure and changed to a PDF format, Lesson1 has been changed accordingly

Download Lesson 2 PDF

Download Lesson 2 ZIP

Comments (7)

At the bottom of page 12 you say…

Now that we’ve set the value of our XFA we need to use the XFA, so return
back to dsp_hello.cfm and change it to look like;

This should be dsp_welcome, not dsp_hello

This may have been mentioned later (I’m just starting reading lesson 3), but you’re using #application.fusebox.fuseactionVariable# for the fuseaction label, but it’s in the application scope. Surely this needs to be locked.

You’ve not done this in any of the pages I’ve seen. is there a reason for this – apologies if you say why later.

Cheers,

Grahame

yeah, if your in development mode you might run into a problem (try a 4 way frameset each calling a fuseaction – it usually causes an error) but in production mode application.fusebox is only ever created on the first request (or when the application is reloaded/refreshed). I’ve not run into a problem using this method myself – especially as nothing ever programmaically changes the value of fuseactionvariable at run time.

What happened to the accompanying PDFs and zip files?

Why do I get exceptions the first time I run a lesson in my Firefox web browser in CFMX 6.1? Here they are:

Exceptions

17:23:34.034 – Application Exception – in /webdev/latticesemi/web/bruce/fb4/LearnFB/lesson2/fusebox4.loader.cfmx.cfm : line 97

The specified Directory attribute value /webdev/latticesemi/web/bruce/fb4/LearnFB/lesson2/parsed could not be created.

17:23:34.034 – Application Exception – in /webdev/latticesemi/web/bruce/fb4/LearnFB/lesson2/fusebox4.loader.cfmx.cfm : line 101

The specified Directory attribute value /webdev/latticesemi/web/bruce/fb4/LearnFB/lesson2/plugins could not be created.

17:23:34.034 – fusebox.forceLoadException.newAppRoot – in /webdev/latticesemi/web/bruce/fb4/LearnFB/lesson2/fusebox4.loader.cfmx.cfm : line 130

The application root directory has changed.

17:23:37.037 – MissingInclude Exception – in /webdev/latticesemi/web/bruce/fb4/LearnFB/lesson2/fusebox4.runtime.cfmx.cfm : line 170

Could not find the included template ./fusebox.init.cfm.

17:24:03.003 – Application Exception – in /webdev/latticesemi/web/bruce/fb4/LearnFB/lesson2/fusebox4.parser.cfmx.cfm : line 106

The request has exceeded the allowable time limit Tag: CFLOOP

I refresh the same page and poof!… it works fine. Is this due to the first time runtime compile CFMX does into Java?

Let me clarify the previous post…after the refresh I then see what I’m supposed to see in the window but I STILL get the exception errors as before. It’s just that first time that I get a timeout on CFLOOP tag.

Will also point out typo on pg. 9 Summary item #1 the file should be dsp_welcome.cfm, not dsp_hello.cfm.

Great tutorial by the way! Thanks John!!

More typos…
Pg. 12-13 when talking about adding XFA tag and variable, you state to make changes to the dsp_hello.cfm twice but it should be referencing dsp_welcome.cfm each time. No changes are made to the dsp_hello.cfm for this tutorial to work.

Write a comment