cecilia,

you need to split up the showing of the form for the guest book and the
actual action of adding a record to the DB. each one would have its own
FuseAction. You are very close though! One Fuseaction will be for collecting
info via a form to go the DB, and the other is for taking that data and
explicitly adding the record. For now, don't worry what happens after the
insertion of the new record occurs. Just get it to happen. hint: The
"action" part of your <form> will point to the same index.cfm fusebox that
the DSP came from--except it will then have the "action" fuseaction that you
will define (hence the name "fuseaction").  I'm sure if you tinker with it a
bit you will see it, and then suddenly the veil will lift ! :)

(if I tell you a solution directly I'm sure there will be as significant a
"oh, I see!" expression on your face as if you come round to it yourself)



----- Original Message -----
From: "cecilia" <[EMAIL PROTECTED]>
To: "Fusebox" <[EMAIL PROTECTED]>
Sent: Wednesday, December 27, 2000 12:24 PM
Subject: cflocation happen first of my dsp form ! help


> i'm started rebuilding some applications in fusebox style,(i bought the
> book pdf version) but i've this
> strange problem, when i make an insert (act_aggiungiguest.cfm) , the
> cflocation happen first and
> the dsp_aggiungiguest.cfm (where's the form for insert) is not displayed
>
> !, clearly there'not insert in the database Basically if there's not the
> cflocation to the "url_showguestbook.cfm
> everything go well, the update or insert is ok, but there's not
> redirection to anothere page, which is the possible mistake ?
> Thanks in advance !!
> This is the simple code :
>
> <cfinclude template="../app_globals.cfm">
>
> <cfparam name="attributes.fuseaction" default="">
>
> <cfswitch expression="#attributes.fuseaction#">
>
> <CFcase value="viewguestbook">
>  <cfinclude template="dsp_viewguestbook.cfm">
>
> </CFcase>
> <CFcase value="addguestbook">
>
>    <cfinclude template="dsp_aggiungiguest.cfm">
> <cfinclude template="act_aggiungiguest.cfm">
>  <cfinclude template="url_showguestbook.cfm">
> </CFcase>
>
> ecc.....
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to