Page is Loading message...
Hello, I have several CF templates that take quite some time to process. Can someone tell me how I can include an animated gif to display 'Page is loading' while the template is being processed so that the page visitors don't have to stare at a blank screen while it is being processed? A pop-up window displaying the same message would work just fine also... Thanks! Peter Bagnato ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Re: CFFILE error:formfield File does not contain a file
Angel Stewart wrote: The processing Code: CFIF IsDefined(form.rfile) AND Len(#form.rfile#) Jochem van Dieten wrote: Change form.rfile to rfile? As well as that, I seem to remember some problems in CF5 with having a trailing slash on your upload destination. Try changing e:\webs\theenergyguide\resumes\ to e:\webs\theenergyguide\resumes. K. Kay Smoljak http://kay.smoljak.com ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Re: Login/Password screen
And then in the CFM use CFCONTENT to send back the image. Works equally well with PDF, Word, Excel, etc. files. This is a good solution, but you need to be careful when using it, because it can introduce a significant amount of additional load onto CF. I found that running entire pages - ie, those containing both html and graphics - through cfcontent from outside the web root caused images to randomly not appear (ie, when you hit refresh, some images that were previously there were now not, and others that weren't there now appeared). That's probably a bad explanation, but I saw it on both a production and a dev server, both fairly beefy machines with quite different specs. K. -- Kay Smoljak http://kay.smoljak.com ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
Re: Page is Loading message...
This is something that we use where I work: cfparam name=url.directory default= cfparam name=url.page default= cfparam name=url.queryString default= cfparam name=speed default=5000 html head titlePlease Wait.../title script language=JavaScript var URL = cfoutput#basehref#/#url.directory#cfif Trim(url.directory) NEQ //cfif#url.page#?#url.queryString#/cfoutput; var speed = cfoutput#speed#/cfoutput; function reload() { location = URL } setTimeout(reload(), speed); /script /head body div align=center table width=640 border=0 cellSpacing=0 cellPadding=0 tr td align=center vAlign=middle width=100% height=480 object id=loading classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 codebase=http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0 ,0 id=loading width=197 height=52 VIEWASTEXT param name=movie value=cfoutput#imghref#/cfoutput/loading.swf param name=quality value=high param name=bgcolor value=#FF embed name=loading src=cfoutput#imghref#/cfoutput/loading.swf quality=high bgcolor=#FF width=197 height=52 type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_ Version=ShockwaveFlash /embed /object /td /tr /table div /body /html Just cfinclude this on the calling page. For instance, we use this on a login page. While you are being logged in, we show a small flash movie that says, Loggin In, Please Wait. It has a little animation so that the users know that someting is happening. HTH, Bruce - Original Message - From: Peter Bagnato [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Saturday, December 14, 2002 8:22 AM Subject: Page is Loading message... Hello, I have several CF templates that take quite some time to process. Can someone tell me how I can include an animated gif to display 'Page is loading' while the template is being processed so that the page visitors don't have to stare at a blank screen while it is being processed? A pop-up window displaying the same message would work just fine also... Thanks! Peter Bagnato ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: Page is Loading message...
body !--- Your header here --- cfflush table border=0 cellpadding=0 cellspacing=0 id=PleaseWaitMessage width=100% trtd align=center valign=bottom span style=font-size: 17px; font-family: verdana,arial,helvetica,sans-serif; font-weight: 400; b br / br / Processing #Variables.PageTitle# !--- Paypal's animated gif, for instance... --- img align=baseline border=0 height=12 src=http://www.paypal.com/images/period_ani.gif; width=20 / /b/span/td/tr/table cfflush !--- All the stuff that takes a long to process here --- script type=text/jscript document.all.PleaseWaitMessage.style.display='none'; /script !--- Your footer here --- /body -Original Message- [snip] I have several CF templates that take quite some time to process. Can someone tell me how I can include an animated gif to display 'Page is loading' while the template is being processed so that the page visitors don't have to stare at a blank screen while it is being processed? []snip]
Re: Page is Loading message...
Dave Babbitt wrote: !--- All the stuff that takes a long to process here --- script type=text/jscript document.all.PleaseWaitMessage.style.display='none'; /script That is a MS'ism that won't work in other browsers, the standard way is to use getElementById(). If you must support non-conforming browsers (e.g. Opera) use: script type=text/javascript if(document.getElementById) { document.getElementById('PleaseWaitMessage').style.display='none'; } else { document.all.PleaseWaitMessage.style.display='none'; } /script Jochem ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: For the gurus: Question about state management with CLIENT sc ope
It's intent is one thing. It's practicality is another. I never use session scope to maintain state. I use client scope and store client variables in a database. I let the database worry about what it is good at - locking, so I don't have to worry about it. best, paul At 04:54 PM 12/12/02 -0500, you wrote: The Client scope isn't really intended to behave the same way as the Session scope - it's intended more for long-term user data storage, rather than storing data during an individual visit. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: Persistent CFC's in the client scope
We are telling CFMX to use J2EE sessions and then we are using the underlying JRun clustering functionality to manage our CFMX server instances This DEFINITELY should be available in the Enterprise version. (Sending enhancement request) Was told not to do it on Ent because CF session data was not serializeable... Stace -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 11:11 PM To: CF-Talk Subject: Re: Persistent CFC's in the client scope On Monday, Nov 4, 2002, at 14:10 US/Pacific, Sean A Corfield wrote: On Monday, Nov 4, 2002, at 11:21 US/Pacific, Brook Davies wrote: Sean, our current setup uses client vars for future clustering considerations. I've heard that CFMX uses a new session scheme with better support for clustering. How does this work and does it require Enterprise? Right now, I don't have all the specific details of how exactly my team will be making this work. However, it has just become part of my job to become *very* familiar with our CFMX for J2EE on JRun 4 configuration! That means that I will know a lot about how *my*team* is making this happen but I may not be able to say whether *other* configurations will let you do the same thing. My *feeling* is that you will need CFMX for J2EE on top of JRun 4 - I believe it relies on the underlying J2EE clustering mechanism. I will report back with more information as and when I know more... Well, it's been over a month since I said I'd report back - apologies , but it's been a busy month! - and I can tell you a little bit about how we're doing this now. We are indeed using CFMX for J2EE on JRun 4. We are telling CFMX to use J2EE sessions and then we are using the underlying JRun clustering functionality to manage our CFMX server instances. The load balancing in JRun is quite configurable and your session 'sticks' to the server instance on which it was created. We're using session scope rather than client scope. I'll probably be able to tell you more about this in a few weeks when we've done more load testing and more tuning. Sean A Corfield -- Director, Architecture Web Technology Group -- Macromedia, Inc. tel: (415) 252-2287 -- cell: (415) 717-8473 aim: seancorfield -- http://www.macromedia.com An Architect's View -- http://www.corfield.org/blog/ Introducing Macromedia Contribute. Web publishing for everyone. Learn more at http://www.macromedia.com/contribute ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
RE: For the gurus: Question about state management with CLIENT sc ope
An alternative point of view, the Session scope does have good practical usability and is significantly faster in most cases that constantly querying a database for each client request. We use this methodology in the ColdFusion applications where we use the Session scope. We write, read and changes all vars in the Request scope. in application.cfm: cflock timeout=30 throwontimeout=No type=READONLY scope=SESSION cfset structappend(request,Duplicate(session)) /cflock in onrequestend.cfm cflock timeout=30 throwontimeout=No type=EXCLUSIVE scope=SESSION cfset structAppend(session,Duplicate(request)) /cflock The one thing to watch for here is where Cflocation or Cfabort are used as the onRequestEnd.cfm file will not be run in that case and any variables created or changed in the current Request will not be in the Session scope the next time Application.cfm runs. We deal with this by including onRequestEnd.cfm directly before any Cflocation or Cfabort tags run. Kind Regards - Mike Brunt, CTO Webapper Blog http://www.webapper.net Web site http://www.webapper.com Downey CA Office 562.243.6255 AIM - webappermb Web Application Specialists -Original Message- From: paul smith [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 14, 2002 9:49 AM To: CF-Talk Subject: RE: For the gurus: Question about state management with CLIENT sc ope It's intent is one thing. It's practicality is another. I never use session scope to maintain state. I use client scope and store client variables in a database. I let the database worry about what it is good at - locking, so I don't have to worry about it. best, paul At 04:54 PM 12/12/02 -0500, you wrote: The Client scope isn't really intended to behave the same way as the Session scope - it's intended more for long-term user data storage, rather than storing data during an individual visit. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
RE: Problem with single quotes(CFMX)
No idea. Sounds very strange. Can you reproduce it? I've never seen that behavior. Yes.. it was strange.. i havent been able to reproduce the error either. If i get it again.. sure will save the debug code. Joe -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 5:01 PM To: CF-Talk Subject: Re: Problem with single quotes(CFMX) On Friday, Dec 13, 2002, at 11:26 US/Pacific, Joe Eugene wrote: select * from TableName where myField=apos;BMWapos; it was replacing ' with string apos; . I tried a few things(preserve, build string.. and some others). None of them worked. I finally restarted the CFMX service.. and the query started working again. Strange... Any idea.. how this might happen? Sean A Corfield -- Director, Architecture Web Technology Group -- Macromedia, Inc. tel: (415) 252-2287 -- cell: (415) 717-8473 aim: seancorfield -- http://www.macromedia.com An Architect's View -- http://www.corfield.org/blog/ Introducing Macromedia Contribute. Web publishing for everyone. Learn more at http://www.macromedia.com/contribute ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: Page is Loading message...
-Original Message- From: Jochem van Dieten [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 14, 2002 12:16 PM To: CF-Talk Subject: Re: Page is Loading message... Dave Babbitt wrote: !--- All the stuff that takes a long to process here --- script type=text/jscript document.all.PleaseWaitMessage.style.display='none'; /script That is a MS'ism that won't work in other browsers, the standard way is to use getElementById(). If you must support non-conforming browsers (e.g. Opera) use: script type=text/javascript if(document.getElementById) { document.getElementById('PleaseWaitMessage').style.display='none'; } else { document.all.PleaseWaitMessage.style.display='none'; } /script Actually just the first is needed (you don't need the else, I believe, as IE unstands both syntaxs). So, basically, just use getElementById and you should be all set for most modern browsers. Jim Davis ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
RE: Form inside a loop problem - advise please!
When you say update only specific records do you mean only the ones that have changed? There are two ways I can think of offhand to do something like that. The first is to have the default in the dropdown be the empty string and only update if the submitted form item is not the empty string (or something along those lines). The second is to have the default in the dropdown be the value already in the DB by using something like cfif thisvalue = dbvalue option value=thisvalue selected#thisvalue#/option cfelse option value=thisvalue#thisvalue#/option /cfif and either updating all the values in the DB (the ones that the user doesn't change should be the same) or running another query (or storing the results of the first one) to check the values to see if they've changed. --Ben Doom Programmer General Lackey Moonbow Software : -Original Message- : From: Les Mizzell [mailto:[EMAIL PROTECTED]] : Sent: Friday, December 13, 2002 10:09 PM : To: CF-Talk : Subject: Form inside a loop problem - advise please! : : : I've got a cfloop/form structure set up to allow a user to update : one or two : specific fields in specific records. : : ID of Record = #MyQuery.Record_ID# : Data field to update = BOB : : The loop and form sorta like (not real code): : : cfloop : form : select name=BOB_#MyQuery.Record_ID# : hidden name=RecID value=#myQuery.Record_ID# : submit : /form : /cfloop : : : Using the following query code : : cfloop index=UpdateID list=#Form.RecID# : cfquery datasource=MyData : UPDATE dbo.app_Master : SET BOB = '#evaluate(FORM.BOB_#UpdateID#)#', : WHERE MSTR_ID= '#UpdateID#' : /cfquery : /cfloop : : I'm having trouble getting only the specific record to update though... it : wants to update them all.. : : ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: Form inside a loop problem - advise please!
OK, got it to work. Below is actual code, instead of the previous example I sent. I'm updating two fields: MSTRSub and MSTRStat, which show the current value in the database as well. #ViewAllApps.MSTR_ID# is the record number for each record in the loop. So, the loop and form looks like: cfloop query=ViewAllApps form method=POST action=#CurrentPage# name=modSTATS select name=MSTRSub_#ViewAllApps.MSTR_ID# option value=#ViewAllApps.MSTRSub##ViewAllApps.MSTRSub#/option option value=IncompleteIncomplete/option option value=SubmittedSubmitted/option option value=ProcessingProcessing/option option value=DoneDone/option option value=NoNo/option /select select name=MSTRStat_#ViewAllApps.MSTR_ID# option value=#ViewAllApps.MSTRStat##ViewAllApps.MSTRStat#/option option value=Conditional ApprovalConditional Approval/option option value=WaitingWaiting/option option value=SuspendSuspend/option option value=Cleared to CloseCleared to Close/option option value=Turned DownTurned Down/option /select /form /cfloop ..and the processing section looks like: cfloop index=loopIDX list=#Form.RecID# cfquery datasource=OneChoice username=xxx password=xxx UPDATE dbo.app_Master SET MSTR_Submit = '#evaluate(FORM.MSTRSub_#loopIDX#)#', MSTR_Status = '#evaluate(FORM.MSTRStat_#loopIDX#)#' WHERE MSTR_ID= #loopIDX# /cfquery /cfloop Is working great! Thanks for those that helped! ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
RE: Form inside a loop problem - advise please!
I'd just be sure not to confuse users where two selections in a given selet box are the same -- the one from the DB and then the matching static choice. Glad to be of service, though. --Ben Doom Programmer General Lackey Moonbow Software : -Original Message- : From: Les Mizzell [mailto:[EMAIL PROTECTED]] : Sent: Saturday, December 14, 2002 4:35 PM : To: CF-Talk : Subject: RE: Form inside a loop problem - advise please! : : : OK, got it to work. Below is actual code, instead of the previous : example I : sent. : : I'm updating two fields: MSTRSub and MSTRStat, which show the : current value : in the database as well. : #ViewAllApps.MSTR_ID# is the record number for each record in the loop. : : So, the loop and form looks like: : : cfloop query=ViewAllApps : form method=POST action=#CurrentPage# name=modSTATS : : select name=MSTRSub_#ViewAllApps.MSTR_ID# : option value=#ViewAllApps.MSTRSub##ViewAllApps.MSTRSub#/option : option value=IncompleteIncomplete/option : option value=SubmittedSubmitted/option : option value=ProcessingProcessing/option : option value=DoneDone/option : option value=NoNo/option : /select : : select name=MSTRStat_#ViewAllApps.MSTR_ID# : option : value=#ViewAllApps.MSTRStat##ViewAllApps.MSTRStat#/option : option value=Conditional ApprovalConditional Approval/option : option value=WaitingWaiting/option : option value=SuspendSuspend/option : option value=Cleared to CloseCleared to Close/option : option value=Turned DownTurned Down/option : /select : : /form : /cfloop : : : : ..and the processing section looks like: : : cfloop index=loopIDX list=#Form.RecID# :cfquery datasource=OneChoice username=xxx password=xxx :UPDATE dbo.app_Master : SET MSTR_Submit = '#evaluate(FORM.MSTRSub_#loopIDX#)#', : MSTR_Status = '#evaluate(FORM.MSTRStat_#loopIDX#)#' : WHERE MSTR_ID= #loopIDX# : /cfquery : /cfloop : : : : Is working great! Thanks for those that helped! : : : : ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
MS Access Performance: Text vs. Memo fields
Hello all! I'm looking for real-world performance information for MS Access in terms of using text field vs. memo fields. I have a CF app using MS Access97 (just a couple of concurrent users on a busy day). Will be moving to Access2000 any day now, and maybe someday I'll get around to moving to MS SQL. A number of fields in the various tables are text, and I've been wondering if changing them to memo would improve or decrease performance. The fields I'm thinking of changing to memo are not searched on or indexed, so that is not a concern. The length of data in those fields varies significantly, and so I end up defining a pretty large field size for them as text fields, although I heard once that the data is actually stored as variable length strings, and so defining large strings should not be a factor. Any experiences to relate? thanks, reed
RE: For the gurus: Question about state management with CLIENT sc ope
The Client scope isn't really intended to behave the same way as the Session scope - it's intended more for long-term user data storage, rather than storing data during an individual visit. It's intent is one thing. It's practicality is another. I never use session scope to maintain state. I use client scope and store client variables in a database. I let the database worry about what it is good at - locking, so I don't have to worry about it. While this may ease your coding, especially with versions prior to CFMX, I would disagree with your implication that it's not practical to use the Session scope. It's pretty expensive to add a database query to every page, which is what you're doing when you use the Client scope. Storing short-term data in memory is much, much cheaper, and perfectly safe if you write your code correctly. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
RE: Login/Password screen
I found that running entire pages - ie, those containing both html and graphics - through cfcontent from outside the web root caused images to randomly not appear (ie, when you hit refresh, some images that were previously there were now not, and others that weren't there now appeared). That's probably a bad explanation, but I saw it on both a production and a dev server, both fairly beefy machines with quite different specs. I've never tried to serve regular HTML pages and their images via CFCONTENT, so I don't really have any idea why this would happen. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: Login/Password screen
I found that running entire pages - ie, those containing both html and graphics - through cfcontent from outside the web root caused images to randomly not appear (ie, when you hit refresh, some images that were previously there were now not, and others that weren't there now appeared). That's probably a bad explanation, but I saw it on both a production and a dev server, both fairly beefy machines with quite different specs. The only think I can think of is that when you use cfcontent to send back all images, your cf server is now doing quite a bit more work than it did previously. In a normal CF app, CF gets called once for each request (to get the CFM page). However, if you filter images through CF for security reasons, then you have 5-10 times as many requests going to CF (one for the main page plus one for each record). Since all of the image requests are very light load, you can experiment with increasing the simultaneous requests in cf admin. Sam ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
how do i do this in cf?
I need to take a user entered date (date of birthday) (ex: may 1 of , 1971) and have it show their actual age (31) to Anything cool in cf that will do that? Thanks dave ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: how do i do this in cf?
Dave take a look on http://www.cflib.org Kind Regards - Mike Brunt, CTO Webapper Blog http://www.webapper.net Web site http://www.webapper.com Downey CA Office 562.243.6255 AIM - webappermb Web Application Specialists -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 14, 2002 3:22 PM To: CF-Talk Subject: how do i do this in cf? I need to take a user entered date (date of birthday) (ex: may 1 of , 1971) and have it show their actual age (31) to Anything cool in cf that will do that? Thanks dave ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: For the gurus: Question about state management with CLIENT sc ope
Sorry, Dave. I guess I wasn't clear enuf. The original had ...it's intended... referring to client scope. My comment about practicality referred to client scope not to session scope. I was simply pointing out that it can be practical to use client scope. I did not mean to imply session variables were not practical. I was reacting to the suggestion that client scope was intended more for long-term user data storage I'm not exactly sure what the writer meant by this, but I didn't want the suggestion that client scope should not be used to maintain state to just lie there. As always, conclusions are application-dependent. In the application I spend most of my time on, every page has database queries, and the ms spent on pulling client variables out of a database is not where the time is being spent. In addition, I don't use the default client variable database storage method that requires parsing a #-delimited list to get each client variable. My client variable database has a specific column for each client variable. best, paul At 05:13 PM 12/14/02 -0500, you wrote: The Client scope isn't really intended to behave the same way as the Session scope - it's intended more for long-term user data storage, rather than storing data during an individual visit. It's intent is one thing. It's practicality is another. I never use session scope to maintain state. I use client scope and store client variables in a database. I let the database worry about what it is good at - locking, so I don't have to worry about it. While this may ease your coding, especially with versions prior to CFMX, I would disagree with your implication that it's not practical to use the Session scope. It's pretty expensive to add a database query to every page, which is what you're doing when you use the Client scope. Storing short-term data in memory is much, much cheaper, and perfectly safe if you write your code correctly. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
RE: Pass null to a Java object?
objects using cfobjects but I can't use my own class files If you only have read access to these Java Objects...you are stuck!. if your ISP.. will let you add a few line of code.. your problem is solved!. Maybe I could figure out an alternative digging JRE 1.3's docs JRE has nothing to do with parsing.. null strings into Java(null). To translate the type conversion.. you have to set the instance variable of the object.. checking for string null something like public class TranslateNulls{ private String str; public void setStr(String s){ if(s.equals(null)) str=null; else str = s; } } Joe -Original Message- From: Massimo, Tiziana e Federica [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 4:31 PM To: CF-Talk Subject: Re: Pass null to a Java object? Again.. Listen to the question... Massimo's comment were to the effect... from CFML and I am forced to do everything with plain CFML. HE CANNOT WRITE JAVA OBJECTS BUT CAN USE THEM? Yes, because I am on a server (shared hosting) where I can instantiate Java objects using cfobjects but I can't use my own class files All he needs to do is modify that Java Class to handle null as strings and convert them to Java null I can't modify the Java Class, I have to use plain vanilla CFML and what the JRE 1.3 can provide. I am not using my own classes (am not allowed) and can't write a wrapper Maybe I could figure out an alternative digging JRE 1.3's docs better, but I guess the issue may arise in different scenarios Massimo ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: For the gurus: Question about state management with CLIENT sc ope
My comment about practicality referred to client scope not to session scope. I was simply pointing out that it can be practical to use client scope. I did not mean to imply session variables were not practical. I was reacting to the suggestion that client scope was intended more for long-term user data storage I'm not exactly sure what the writer meant by this, but I didn't want the suggestion that client scope should not be used to maintain state to just lie there. Since I was the writer, I'll clarify if I can. Of course, Client variables can be used to maintain state - that is, in fact, exactly what they do. And, yes, it can be practical to use Client variables instead of Session variables, depending on circumstances. However, the Client scope persists beyond a single user's visit to the site, by default, and is stored in a persistent data store by default as well. For tracking a user's information during her visit to the site, Session variables are generally more useful and efficient. Again, of course, this isn't going to be true in all circumstances, but it will be true in most cases. Session variables are stored in memory, so there's no database overhead; you can store a significantly larger amount of data within the Session scope before feeling any pain in the performance of your application, as long as you have the memory to do so, and you can store complex variables within the Session scope. In the application I spend most of my time on, every page has database queries, and the ms spent on pulling client variables out of a database is not where the time is being spent. You are certainly paying some performance penalty for that single additional query to the database. Just because every page has database queries doesn't mean that you should tack one more on, unnecessarily. If you can trim ten percent of your database time from every page, that's a significant performance gain, and it'll show up as such during load-testing or real-world load. Now, maybe, within your application it really doesn't make any difference; maybe there isn't enough load on the application to make it matter, or maybe there are other factors that make it more sensible to use Client variables than Session variables. Nevertheless, if you had to make your application perform better, that might be a good place to start. In addition, I don't use the default client variable database storage method that requires parsing a #-delimited list to get each client variable. My client variable database has a specific column for each client variable. Well, then you're not using Client variables at all, are you? You're using a similar method of your own construction (which is what we used to do in CF 1.5/2.0 days, since we didn't have Session variables back then). Again, though, this extra database query is still going to increase the amount of time your application spends talking to the database. In my experience, when looking at how to increase application performance, the usual approach is to improve (and minimize where possible) the amount and duration of database interaction. I'd like to reiterate that this isn't a criticism of your specific application design, just my opinion on general web application design practices. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
RE: For the gurus: Question about state management with CLIENT sc ope
As always Dave well stated, but good heavens it must be bloody late where you are and Ah! CF1.5 I remember it well. Mike Brunt - CTO Webapper Services LLC Blog - http://www.webapper.net Downey CA Office 562.243.6255 AIM webappermb Web Application Specialists -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 14, 2002 9:34 PM To: CF-Talk Subject: RE: For the gurus: Question about state management with CLIENT sc ope My comment about practicality referred to client scope not to session scope. I was simply pointing out that it can be practical to use client scope. I did not mean to imply session variables were not practical. I was reacting to the suggestion that client scope was intended more for long-term user data storage I'm not exactly sure what the writer meant by this, but I didn't want the suggestion that client scope should not be used to maintain state to just lie there. Since I was the writer, I'll clarify if I can. Of course, Client variables can be used to maintain state - that is, in fact, exactly what they do. And, yes, it can be practical to use Client variables instead of Session variables, depending on circumstances. However, the Client scope persists beyond a single user's visit to the site, by default, and is stored in a persistent data store by default as well. For tracking a user's information during her visit to the site, Session variables are generally more useful and efficient. Again, of course, this isn't going to be true in all circumstances, but it will be true in most cases. Session variables are stored in memory, so there's no database overhead; you can store a significantly larger amount of data within the Session scope before feeling any pain in the performance of your application, as long as you have the memory to do so, and you can store complex variables within the Session scope. In the application I spend most of my time on, every page has database queries, and the ms spent on pulling client variables out of a database is not where the time is being spent. You are certainly paying some performance penalty for that single additional query to the database. Just because every page has database queries doesn't mean that you should tack one more on, unnecessarily. If you can trim ten percent of your database time from every page, that's a significant performance gain, and it'll show up as such during load-testing or real-world load. Now, maybe, within your application it really doesn't make any difference; maybe there isn't enough load on the application to make it matter, or maybe there are other factors that make it more sensible to use Client variables than Session variables. Nevertheless, if you had to make your application perform better, that might be a good place to start. In addition, I don't use the default client variable database storage method that requires parsing a #-delimited list to get each client variable. My client variable database has a specific column for each client variable. Well, then you're not using Client variables at all, are you? You're using a similar method of your own construction (which is what we used to do in CF 1.5/2.0 days, since we didn't have Session variables back then). Again, though, this extra database query is still going to increase the amount of time your application spends talking to the database. In my experience, when looking at how to increase application performance, the usual approach is to improve (and minimize where possible) the amount and duration of database interaction. I'd like to reiterate that this isn't a criticism of your specific application design, just my opinion on general web application design practices. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
CF MX Pro Pricing
Getting ready to purchase CF MX Server Pro... Anybody got any recommendations on where I can get it at the best price? I found it online for $630...anybody know if there are better deals out there? Thanks! -- Josh Trefethen :[ Exciteworks, Inc ]::[ http://exciteworks.com ]:. ::[ cf hosting on linux ]::[ consulting ]::[ expertise ]::. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
Re: Pass null to a Java object?
objects using cfobjects but I can't use my own class files If you only have read access to these Java Objects...you are stuck!. if your ISP.. will let you add a few line of code.. your problem is solved!. Thanks, but I was well aware of this :-) Maybe I could figure out an alternative digging JRE 1.3's docs JRE has nothing to do with parsing.. null strings into Java(null). To translate the type conversion.. you have to set the instance variable of the object.. checking for string null something like What I was saying is that maybe I will be able to take advantage of another piece of the JRE that doesn't require to get a null in my own specific situation Massimo ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
Mildly OT: JS, Form, Passing Vars
I am attempting to take values from a form that I have (it's a form that chooses recipient, sender, letter to be sent, custom header, custom footer and whether or not a password is sent to the user, for what it's worth) and then pass them to a pop-up window for display/preview prior to submitting and having all values combined into the email and sent, and then added to the database. I've found a couple of Javascript methods for handling this, but I'd prefer to keep the pop-up page reading the CF values--which it's not; it's saying that my FORM.values are undefined. Ideally, I'd simply like to pass all my values to the popup, display them, have a window.close and then allow the user to submit the letter, if they so choose, but right now, I'm not correctly passing anything. Here's what I'm working with (and it's probably butchered after a few tries here, so please bear with me): (button): input name=Submit2 type=Button class=ButtonInv onClick=newWin() value=Preview Letter SCRIPT language=javascript type=text/javascript !-- !--- Form name = Letter; trying to see if I can manipulate the code below to work for me; failing horribly --- !--- document.Letter.action=letterPreview; --- !--- document.Letter.submit() --- function newWin(){ var confirmWin = window.open('letterPreview.cfm','','width=800,height=600,scrollbars=yes, left=380,top=0') if(confirmWin.opener==null){ confirmWin.opener = self; } } //-- /SCRIPT And now, my head's starting to spin and I'm getting a little lost. Any assistance? Thanks very much! Russ ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm