I just got round to reading Hals Extended fusebox doc and started playing
around with the sample app.
Apart from loving all of it, it strikes me that there are time when you may
want to know what the original, non translated fuseaction was, for example
if you choose something from the drop down list, it nice to have this option
selected when you get to where you're going.

Would it make sense to change the index.cfm like so:

<!--- this is already there... --->
<cfparam name="attributes.fuseaction" default="sim.home">

<!--- this is a new OriginalFuseAction variable --->
<CFPARAM NAME="attributes.OFA" DEFAULT="#attributes.fuseaction#">


Then, when building the select item, for example, like the one from hals
dspHeader.cfm:

<select 
        name="event" 
      size="1" 
      onchange="document.menuForm.fuseaction.value =
document.menuForm.event.value;document.menuForm.submit();">
    <option value="#attributes.XFA.listAllContacts#" 
        <CFIF attributes.ofa IS attributes.XFA.listAllContacts>
            SELECTED
        </CFIF>>---- Contacts ----</option>
    <option value="#attributes.XFA.addContact#" 
        <CFIF attributes.ofa IS attributes.XFA.addContact>
            SELECTED
        </CFIF>>Add a New Contact</option>

Is this a good idea, or have i missed something?

Bert

ps in case you missed earlier posts, the doc is at: 
http://www.fusebox.org/specifications/extendedfusebox/Extended_Fusebox_101.d
oc

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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