Yeah my client vars are enabled in cfapplication tag. And it is context sensitive menu with is not same for every user so I cant give it application scope.
-----Original Message----- From: cf refactoring [mailto:[EMAIL PROTECTED]] Sent: 01 December 2001 12:44 To: CF-Talk Subject: Re: Menu Problem 1. Did you remember to enable client variables in your cfapplication tag? 2. If you menu is the same for all users, why not store it in an application scope variable? --- Shahzad Butt <[EMAIL PROTECTED]> wrote: > > Hi all > > My menu is created by calling lot of custom tags and > stored procedures. So > its execution time is almost 1100 ms. Now if i make > a custom tag of menu and > call this tag in each page then definitely execution > time of each page would > be increase by this time. So all i want to do is > store this menu template in > variable using CFSaveContent or CF_BodyContent in > Home Page. Give this > variable a scope and call that variable on top of > each page. If i give this > variable session scope it works fine and execution > time is 10 ms. But we are > not using session variables. So i've to use client > variable. If i convert > this variable to wddx packet and give this wddx > packet client scope > (Client.MenuInWDDX) in home page. Now in each page i > just deserialise this > wddx packet (Client.MenuInWDDX) and display output > variable (MenuVar). It > should work. But problem is each page wont recoginse > Client scoped variable. > So either this should be in app_local.cfm of root? > But if so then problem is > still same cos i've to call custom tag of menu in app_local.cfm of > root. So by default execution time would be 1100ms. I am > developing this application > using FB3. Below is code what I am doing or trying > to do. > > Home.cfm > <CFSaveContent variable="MenuVar"> > <cfmodule template="../../Menu/index.cfm" > Fuseaction="Menu"> (Forget what > is in this file, crazy stored procedures and custom > tags) > </CFSaveContent> > <CFWDDX action="CFML2WDDX" input="#MenuVar#" > output="Client.MenuInWDDX"> > > In each page > <CFWDDX action="WDDX2CFML" > input="#Client.MenuInWDDX#" output="MenuVar"> > (error wont recognise Client.MenuInWDDX) > <cfoutput>#MenuVar#</cfoutput> > > Can some give me any suggetion what should I do. > > Thanks a lot > Regards > Shahzad Butt ===== I-Lin Kuo Macromedia CF5 Advanced Developer Sun Certified Java 2 Programmer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

