FuseBox is all about relative links.   Every link in FuseBox points back to the base index.cfm file (the main fusebox) in the application.   This is the case no matter what hosting environment you are in.    As far as an images folder goes, there is a FuseBox API variable called fusebox.rootpath which you can use anywhere in your FuseBox app to get the path from the base index.cfm file to your images folder.
 
i.e. <img src="javascript:void(0);">
 
This way, when you change hosting environments or just want to work on your site on a development server, you don't have to go changing image paths - they fix themselves.
 
-- Jeff
 
-----Original Message-----
From: Mike [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 18, 2002 3:27 PM
To: [EMAIL PROTECTED]
Subject: Re: Newbie Question

Thanks for the welcome.  I will look at Bombusbee.  Regarding the link, does this hold true for shared hosting environments that is my probelm.  I was always in the habit of Hardcoding my link and images absolute ie /clientfolder/images/image.jpg  I am sure there is a smarter way.
 
Thanks
----- Original Message -----
Sent: Saturday, May 18, 2002 4:03 PM
Subject: RE: Newbie Question

Mike,
 
You are in the right place.
 
A good place to start is the intro to FuseBox guide at http://bombusbee.com/downloads/files/FuseboxNewbieGuide.pdf.   There are a couple of good books coming out about FuseBox, but they are not quite here yet.
 
In answer to your questions ....
 
With fusebox, all links are relative links and point back to the main fusebox (usually index.cfm) of the application.  Therefore, there is no need for a webroot variable.
 
As far as forms, no self posting is not recommended.   The point of FuseBox is to make small, reusable, code fuses.   There should be one fuse that handles the displaying of the form and a completely different action or query fuse (and fuseaction) that actually handles the process of the form.
 
If any of this does not make sense, check out the intro article and feel free to post as many questions here as you can think of.  That is the way I learned.
 
-- Jeff
 
-----Original Message-----
From: Mike [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 18, 2002 2:44 PM
To: [EMAIL PROTECTED]
Subject: Newbie Question

Hello All,
 
I am very much a beginner with Fusebox. 
 
I have two questions in Fusebox 3.0 where would I set up variables like the webroot and what is the recommended way to do that? 
 
With fusebox is it recommended to use self posting form pages or not?
 
I know these questions are very basic and if they don't belong on this could someone direct me to a list for beginners.
 
Thanks in Advance.
 
Mike
==^================================================================
This email was sent to: [EMAIL PROTECTED]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bWadW1
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================
==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to