Need to prevent javascript from being submitted in form
I have a form with a number of text and textarea fields. Information submitted is then written to a SQL Server Database. I want to prevent users from typing in potentially malicious javascript in any of these fields. One option is to loop through all the submitted form variables before writing to the database and disable the script declaration by removing the anchor brackets. cfloop list=my form fields cfset form.fieldx=rereplacenocase(form.fieldx,,,ALL) cfset form.fieldx=rereplacenocase(form.fieldx,,,ALL) /cfloop This is fairly tedious and needs to be repeated for a number of forms. Is there a more efficient way of preventing javascript from being submitted / written to database in any of the forms across the entire site ? Vishal. __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Need to prevent javascript from being submitted in form
I have a form with a number of text and textarea fields. Information submitted is then written to a SQL Server Database. I want to prevent users from typing in potentially malicious javascript in any of these fields. One option is to loop through all the submitted form variables before writing to the database and disable the script declaration by removing the anchor brackets. cfloop list=my form fields cfset form.fieldx=rereplacenocase(form.fieldx,,,ALL) cfset form.fieldx=rereplacenocase(form.fieldx,,,ALL) /cfloop This is fairly tedious and needs to be repeated for a number of forms. Is there a more efficient way of preventing javascript from being submitted / written to database in any of the forms across the entire site ? Vishal. __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Need to prevent javascript from being submitted in form
Use htmlEditFormat(yourFieldName) Douglas Brown Email: [EMAIL PROTECTED] - Original Message - From: Vishal Narayan [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Saturday, July 21, 2001 11:51 PM Subject: Need to prevent javascript from being submitted in form I have a form with a number of text and textarea fields. Information submitted is then written to a SQL Server Database. I want to prevent users from typing in potentially malicious javascript in any of these fields. One option is to loop through all the submitted form variables before writing to the database and disable the script declaration by removing the anchor brackets. cfloop list=my form fields cfset form.fieldx=rereplacenocase(form.fieldx,,,ALL) cfset form.fieldx=rereplacenocase(form.fieldx,,,ALL) /cfloop This is fairly tedious and needs to be repeated for a number of forms. Is there a more efficient way of preventing javascript from being submitted / written to database in any of the forms across the entire site ? Vishal. __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Browserhawk, 2
Hi Been a while since I used it but from what I can remember the docs said something about full support for cf. However when we wanted to do specific things (cant remember what) but I remember it was important for the particular project, the docs said that in order to achieve what we wanted to do using browser hawk we needed to use an asp bridge. i.e. some of the features only worked with asp. This was a while ago so I would get an evaluation if there is one available and play with it. It really depends on what exactly you need it for. HTH Kola -Original Message- From: Ian Lurie [mailto:[EMAIL PROTECTED]] Sent: 22 July 2002 06:49 To: CF-Talk Subject: Browserhawk, 2 Hi all, Sorry to ask again, but I'm not sure if this got posted - anyone using Browserhawk? How well does it work? Does it bog down servers under load? Ian __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFERROR e-mail
Thank you Dave Matt for clarifying this for me... I have found that it is good to use both cferror tags; most error WILL be caught by the exception tag and you will be automatically notified. Some errors (I've never figured out exactly which ones) slip through and your user may click on the mailto link. Not all errors are exceptions. An exception is a specific type of error that happens only at runtime. Other errors may happen before runtime; for example, if you misspell a CFML tag, the server won't be able to parse the page, and you'll get an error before runtime. Generally speaking, the difference between an error and an exception is that you can programmatically recover from an exception, but not an error. __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Setting a dynamically built list as a session variable.
** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have a form page that creates a list of checkboxes that have been populated by a loop. Like this: cfloop query=get_bus_type tr td class=tablefeature #bus_type#/td td width=80 align=center class=tablefeatureinput type=checkbox name=business_types#get_bus_type.currentRow# value=#bus_type# /td /tr /cfloop Each checkbox name has to have its own name as I am using a JavaScript function to check and uncheck all of them at the same time. So they need to be individually check by the JS function to see if they are checked or not. Here is my JS function: script language=JavaScript !-- Begin function checkAll() { for (var j = 1; j = 17; j++) { box = eval(document.BusinessType.business_types + j); { if (box.checked == false) { box.checked = true; } else if(box.checked == true){ box.checked = false; } } } // End -- /script In my action page I want to set all the passed/checked checkboxes as one single session variable so it can be used later on in another page. My question is how can I create this session variable from this dynamic list of form variables? Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Setting a dynamically built list as a session variable.
Stephen, What I did was to produce a string of it, with ones and zeroes, and the different parameters alphabetically like 101010012. This generated through a loop of the different checkboxes alphabetically. Not a very beautiful solution, but it works. Since it is a session var, it shouldn't matter too much if you later add or delete on checkbox (if it was a client var, then that would screw up that string...) /Hugo - Hugo Ahlenius E-Mail: [EMAIL PROTECTED] Project Officer Phone: +46 8 7410451 UNEP GRID-Arendal Fax: +46 733 403285 Stockholm OfficeMobile:+46 733 467111 WWW: http://www.grida.no - | -Original Message- | From: Adams, Stephen [mailto:[EMAIL PROTECTED]] | Sent: Monday, July 22, 2002 12:25 | To: CF-Talk | Subject: Setting a dynamically built list as a session variable. | | | ** | WESTMINSTER CITY COUNCIL | Please refer to the disclaimer beneath this message | ** | | Hi, | | I have a form page that creates a list of checkboxes that have been | populated by a loop. Like this: | | cfloop query=get_bus_type | tr | td class=tablefeature #bus_type#/td | td width=80 align=center | class=tablefeatureinput type=checkbox | name=business_types#get_bus_type.currentRow# | value=#bus_type# /td | /tr | /cfloop | | Each checkbox name has to have its own name as I am using a JavaScript | function to check and uncheck all of them at the same time. | So they need to | be individually check by the JS function to see if they are | checked or not. | Here is my JS function: | | script language=JavaScript | !-- Begin | function checkAll() { | for (var j = 1; j = 17; j++) { | box = eval(document.BusinessType.business_types + j); { | if (box.checked == false) { | box.checked = true; | } else if(box.checked == true){ | box.checked = false; | } | } | } | // End -- | /script | | In my action page I want to set all the passed/checked | checkboxes as one | single session variable so it can be used later on in another page. | | My question is how can I create this session variable from | this dynamic list | of form variables? | | Stephen | | | ** | Westminster City Council switchboard: | +44 20 7641 6000 | ** | This E-Mail may contain information which is | privileged, confidential and protected from | disclosure. If you are not the intended recipient | of this E-mail or any part of it, please telephone | Westminster City Council immediately on receipt. | You should not disclose the contents to any other | person or take copies. | ** | | __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Setting a dynamically built list as a session variable.
When you loop through in Javascript, set a variable which will append the values of the checked boxes, I'm not sure which if block you want to do it in as you are unchecking checked boxes and checking unchecked, so I take it you mean the ones you are checking, var checkList = '' if (box.checked == false) { box.checked = true; if(checkList != ''){ checkList += , + get the checkbox value }else{ checkList = , get the checkbox value } } else if(box.checked == true){ box.checked = false; } } function setSession(checkList){ location.href = setSession.cfm?sessionData= + checkList } session.cfm, if you out put the url var, say something like this, url.checklist 1,2,3,4,5,6 cfset session.checklist=url.checklist that should work -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 11:25 AM To: CF-Talk Subject: Setting a dynamically built list as a session variable. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have a form page that creates a list of checkboxes that have been populated by a loop. Like this: cfloop query=get_bus_type tr td class=tablefeature #bus_type#/td td width=80 align=center class=tablefeatureinput type=checkbox name=business_types#get_bus_type.currentRow# value=#bus_type# /td /tr /cfloop Each checkbox name has to have its own name as I am using a JavaScript function to check and uncheck all of them at the same time. So they need to be individually check by the JS function to see if they are checked or not. Here is my JS function: script language=JavaScript !-- Begin function checkAll() { for (var j = 1; j = 17; j++) { box = eval(document.BusinessType.business_types + j); { if (box.checked == false) { box.checked = true; } else if(box.checked == true){ box.checked = false; } } } // End -- /script In my action page I want to set all the passed/checked checkboxes as one single session variable so it can be used later on in another page. My question is how can I create this session variable from this dynamic list of form variables? Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Setting a dynamically built list as a session variable.
Hi Hi Perhaps you could create a structure using the form names as keys Then the structure would only consist of those which have been checked, you could use functions to check if particular keys exist to determine if a value is part of the structure and you can save this structure to session scope quite easily. HTH Kola -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: 22 July 2002 11:25 To: CF-Talk Subject: Setting a dynamically built list as a session variable. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have a form page that creates a list of checkboxes that have been populated by a loop. Like this: cfloop query=get_bus_type tr td class=tablefeature #bus_type#/td td width=80 align=center class=tablefeatureinput type=checkbox name=business_types#get_bus_type.currentRow# value=#bus_type# /td /tr /cfloop Each checkbox name has to have its own name as I am using a JavaScript function to check and uncheck all of them at the same time. So they need to be individually check by the JS function to see if they are checked or not. Here is my JS function: script language=JavaScript !-- Begin function checkAll() { for (var j = 1; j = 17; j++) { box = eval(document.BusinessType.business_types + j); { if (box.checked == false) { box.checked = true; } else if(box.checked == true){ box.checked = false; } } } // End -- /script In my action page I want to set all the passed/checked checkboxes as one single session variable so it can be used later on in another page. My question is how can I create this session variable from this dynamic list of form variables? Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Setting a dynamically built list as a session variable.
Sorry once you have finisehd the loop, call setSession, setSession(), make checkList a global var and not a function dependent var, j -Original Message- From: John McCosker [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 11:47 AM To: CF-Talk Subject: RE: Setting a dynamically built list as a session variable. When you loop through in Javascript, set a variable which will append the values of the checked boxes, I'm not sure which if block you want to do it in as you are unchecking checked boxes and checking unchecked, so I take it you mean the ones you are checking, var checkList = '' if (box.checked == false) { box.checked = true; if(checkList != ''){ checkList += , + get the checkbox value }else{ checkList = , get the checkbox value } } else if(box.checked == true){ box.checked = false; } } function setSession(checkList){ location.href = setSession.cfm?sessionData= + checkList } session.cfm, if you out put the url var, say something like this, url.checklist 1,2,3,4,5,6 cfset session.checklist=url.checklist that should work -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 11:25 AM To: CF-Talk Subject: Setting a dynamically built list as a session variable. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have a form page that creates a list of checkboxes that have been populated by a loop. Like this: cfloop query=get_bus_type tr td class=tablefeature #bus_type#/td td width=80 align=center class=tablefeatureinput type=checkbox name=business_types#get_bus_type.currentRow# value=#bus_type# /td /tr /cfloop Each checkbox name has to have its own name as I am using a JavaScript function to check and uncheck all of them at the same time. So they need to be individually check by the JS function to see if they are checked or not. Here is my JS function: script language=JavaScript !-- Begin function checkAll() { for (var j = 1; j = 17; j++) { box = eval(document.BusinessType.business_types + j); { if (box.checked == false) { box.checked = true; } else if(box.checked == true){ box.checked = false; } } } // End -- /script In my action page I want to set all the passed/checked checkboxes as one single session variable so it can be used later on in another page. My question is how can I create this session variable from this dynamic list of form variables? Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Setting a dynamically built list as a session variable.
Sorry I'ma twat, setSession(checkList) function setSession(catchList){ location.href = setSession.cfm?sessionData= + catchList } that will work -Original Message- From: John McCosker [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 11:53 AM To: CF-Talk Subject: RE: Setting a dynamically built list as a session variable. Sorry once you have finisehd the loop, call setSession, setSession(), make checkList a global var and not a function dependent var, j -Original Message- From: John McCosker [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 11:47 AM To: CF-Talk Subject: RE: Setting a dynamically built list as a session variable. When you loop through in Javascript, set a variable which will append the values of the checked boxes, I'm not sure which if block you want to do it in as you are unchecking checked boxes and checking unchecked, so I take it you mean the ones you are checking, var checkList = '' if (box.checked == false) { box.checked = true; if(checkList != ''){ checkList += , + get the checkbox value }else{ checkList = , get the checkbox value } } else if(box.checked == true){ box.checked = false; } } function setSession(checkList){ location.href = setSession.cfm?sessionData= + checkList } session.cfm, if you out put the url var, say something like this, url.checklist 1,2,3,4,5,6 cfset session.checklist=url.checklist that should work -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 11:25 AM To: CF-Talk Subject: Setting a dynamically built list as a session variable. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have a form page that creates a list of checkboxes that have been populated by a loop. Like this: cfloop query=get_bus_type tr td class=tablefeature #bus_type#/td td width=80 align=center class=tablefeatureinput type=checkbox name=business_types#get_bus_type.currentRow# value=#bus_type# /td /tr /cfloop Each checkbox name has to have its own name as I am using a JavaScript function to check and uncheck all of them at the same time. So they need to be individually check by the JS function to see if they are checked or not. Here is my JS function: script language=JavaScript !-- Begin function checkAll() { for (var j = 1; j = 17; j++) { box = eval(document.BusinessType.business_types + j); { if (box.checked == false) { box.checked = true; } else if(box.checked == true){ box.checked = false; } } } // End -- /script In my action page I want to set all the passed/checked checkboxes as one single session variable so it can be used later on in another page. My question is how can I create this session variable from this dynamic list of form variables? Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Setting a dynamically built list as a session variable.
Also There is automatically a form field created by cf called form.fieldnames Which is list of all submmited fields, You could loop through this list copying all fields which begin with the Prefix business_types to another list. You could then decide to take the portion of the name minus the prefix and save it to a list called selected business types. HTH Kola -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: 22 July 2002 11:25 To: CF-Talk Subject: Setting a dynamically built list as a session variable. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have a form page that creates a list of checkboxes that have been populated by a loop. Like this: cfloop query=get_bus_type tr td class=tablefeature #bus_type#/td td width=80 align=center class=tablefeatureinput type=checkbox name=business_types#get_bus_type.currentRow# value=#bus_type# /td /tr /cfloop Each checkbox name has to have its own name as I am using a JavaScript function to check and uncheck all of them at the same time. So they need to be individually check by the JS function to see if they are checked or not. Here is my JS function: script language=JavaScript !-- Begin function checkAll() { for (var j = 1; j = 17; j++) { box = eval(document.BusinessType.business_types + j); { if (box.checked == false) { box.checked = true; } else if(box.checked == true){ box.checked = false; } } } // End -- /script In my action page I want to set all the passed/checked checkboxes as one single session variable so it can be used later on in another page. My question is how can I create this session variable from this dynamic list of form variables? Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
OT : Anybody had problems with hiermenus ???
Hi Has anybody on the CF Talk list had much experience with hiermenus? I have been very grateful if someone on the list could spare a minute , to help me solve a small problem I am having with the script. I am trying to get the hiermenus script working correctly however I am running into some problems. There is no javascript error, but the drop down menus are not appearing when I roll the mouse over the hyperlink ?? Can you see from the script below where the problem may be that stops the mouseover/drop down from appearing Any help or leads to a solution would be most helpful. html !--HEAD-- head script language=JavaScript1.2 type=text/javascript HM_PG_BUTTON_START=133; HM_PG_SectionBarStartY=179; /script SCRIPT LANGUAGE=JavaScript1.2 TYPE=text/javascript !-- // HierMenus Init if(window.event + == undefined) event = null; function HM_f_PopUp(){return false}; function HM_f_PopDown(){return false}; popUp = HM_f_PopUp; popDown = HM_f_PopDown; HM_DOM = (document.getElementById) ? true : false; HM_NS4 = (document.layers) ? true : false; HM_IE = (document.all) ? true : false; HM_IE4 = HM_IE !HM_DOM; HM_Mac = (navigator.appVersion.indexOf(Mac) != -1); HM_IE4M = HM_IE4 HM_Mac; HM_Opera = (navigator.userAgent.indexOf(Opera)!=-1); HM_Konqueror = (navigator.userAgent.indexOf(Konqueror)!=-1); HM_Unix = (navigator.appVersion.indexOf(X11) != -1); HM_IsMenu = !HM_Opera !HM_Konqueror !HM_IE4M (HM_DOM || HM_NS4 || HM_IE4); HM_BrowserString = HM_NS4 ? NS4 : HM_DOM ? DOM : IE4; if ((HM_NS4 || HM_DOM) !HM_IE) { searchWidth = 12; vgmWidth = 9; } else { searchWidth = 14; vgmWidth = 14; } // localNavId if present var localNavId = 0 currentAd = 1; graphicSpeed = 7000; function insertPic() { //nill } var VISTA_BUTTON = 0; //-- //-- /SCRIPT SCRIPT LANGUAGE=JavaScript1.2 TYPE=text/javascript !-- browser = (((navigator.appName == Netscape) (parseInt(navigator.appVersion) = 3 )) || ((navigator.appName == Microsoft Internet Explorer) (parseInt(navigator.appVersion) = 4 ))); // Set up button positions //var menuWidth = 130; var topPosition = 40; // Constants used in menu placement //BUTTON_SPACING = 78; //BUTTON_SPACING_SOL = 80; HM_GL_BUTTON_START = 245; var sPn = BUTTON_START; if (typeof eval(window.HM_PG_ + sPn) == undefined) { currentPosition = HM_GL_BUTTON_START; } else { currentPosition = HM_PG_BUTTON_START; } //-- /SCRIPT /head !-BODY- body script language=JavaScript1.2 browser = (((navigator.appName == Netscape) (parseInt(navigator.appVersion) = 3 )) || ((navigator.appName == Microsoft Internet Explorer) (parseInt(navigator.appVersion) = 4 ))); if (browser) { window.onerror=null; HM_Array2 = [ [,currentPosition,topPosition], [Industry Solutions,/test.html] ] currentPosition = currentPosition + 73; HM_Array3 = [ [,currentPosition,topPosition], [Suite,/test.html], [Extensions,/test.html] ] currentPosition = currentPosition + 68; HM_Array4 = [ [,currentPosition,topPosition], [Services,/test.html], [Services,/test.html], [Services,/test.html] ] currentPosition = currentPosition + 83; HM_Array5 = [ [,currentPosition,topPosition], [List,/test.html], [Studies,/test.html] ] currentPosition = currentPosition + 74; HM_Array6 = [ [,currentPosition,topPosition], [Partners,/test.html], [Education,/test.html], [Partner,/test.html], [Login,/test.html] ] currentPosition = currentPosition + 80; HM_Array7 = [ [,currentPosition,topPosition], [About,/test.html], [Village,/test.html], [Press Center,/test.html], [Events,/test.html], [Contacts,/test.html] ] currentPosition = currentPosition + 84; /script table border=0 cellpadding=0 cellspacing=0 style=border-collapse: collapse bordercolor=#11 width=781 id=AutoNumber2 tr td width=104 background=/images/header/cellheight.gif p align=center a href=/bvintro.cfm class=headnav onMouseOver=HM_f_PopUp('HM_Menu2',event) onMouseOut=HM_f_PopDown('HM_Menu2',event) Best Value/a/td td width=1 background=/images/header/cellheight.gif img border=0 src=/images/header/headerdividertop.gif width=1 height=20/td/td td width=75 background=/images/header/cellheight.gif p align=centera href=/index.cfm class=headnav onMouseOver=HM_f_PopUp('HM_Menu3',event) onMouseOut=HM_f_PopDown('HM_Menu3',event)News/a/td td width=1 background=/images/header/cellheight.gif img border=0 src=/images/header/headerdividertop.gif width=1 height=20/td td width=103 background=/images/header/cellheight.gif p align=centera href=/index.cfm class=headnav onMouseOver=HM_f_PopUp('HM_Menu4',event) onMouseOut=HM_f_PopDown('HM_Menu4',event)Personnel/a/td td width=1 background=/images/header/cellheight.gif img border=0
Re: Setting a dynamically built list as a session variable.
Stephen, First up. You don't need to name each of your checkboxes seperately, so change the input tag to this : input type=checkbox name=business_types value=#bus_type# and your javascript to this : script language=JavaScript !-- Begin function checkAll() { for (var j = 1; j = document.BusinessType.business_types.length; j++) { box = document.BusinessType.business_types[j]; { if (box.checked == false) { box.checked = true; } else if(box.checked == true){ box.checked = false; } } } // End -- /script My question is how can I create this session variable from this dynamic list of form variables? Now what you'll get is one form variable called business_types with all the checked business types as a comma delimited list. To make this form variable into a session variable in your action page is as simple as : cfset session.business_types = form.business_types Don't forget get your cflock if your not on CFMX. Regards Stephen __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Setting a dynamically built list as a session variable.
I'd go with that as well, seems like the best option! Kola -Original Message- From: Stephen Moretti [mailto:[EMAIL PROTECTED]] Sent: 22 July 2002 12:24 To: CF-Talk Subject: Re: Setting a dynamically built list as a session variable. Stephen, First up. You don't need to name each of your checkboxes seperately, so change the input tag to this : input type=checkbox name=business_types value=#bus_type# and your javascript to this : script language=JavaScript !-- Begin function checkAll() { for (var j = 1; j = document.BusinessType.business_types.length; j++) { box = document.BusinessType.business_types[j]; { if (box.checked == false) { box.checked = true; } else if(box.checked == true){ box.checked = false; } } } // End -- /script My question is how can I create this session variable from this dynamic list of form variables? Now what you'll get is one form variable called business_types with all the checked business types as a comma delimited list. To make this form variable into a session variable in your action page is as simple as : cfset session.business_types = form.business_types Don't forget get your cflock if your not on CFMX. Regards Stephen __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Setting a dynamically built list as a session variable.
How come you do not have to lock on MX? -Original Message- From: Stephen Moretti [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 7:24 AM To: CF-Talk Subject: Re: Setting a dynamically built list as a session variable. Stephen, First up. You don't need to name each of your checkboxes seperately, so change the input tag to this : input type=checkbox name=business_types value=#bus_type# and your javascript to this : script language=JavaScript !-- Begin function checkAll() { for (var j = 1; j = document.BusinessType.business_types.length; j++) { box = document.BusinessType.business_types[j]; { if (box.checked == false) { box.checked = true; } else if(box.checked == true){ box.checked = false; } } } // End -- /script My question is how can I create this session variable from this dynamic list of form variables? Now what you'll get is one form variable called business_types with all the checked business types as a comma delimited list. To make this form variable into a session variable in your action page is as simple as : cfset session.business_types = form.business_types Don't forget get your cflock if your not on CFMX. Regards Stephen __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Setting a dynamically built list as a session variable.
nevermind, found the article on it: http://www.macromedia.com/v1/Handlers/index.cfm?ID=23021Method=Full mike -Original Message- From: Tangorre, Michael Sent: Monday, July 22, 2002 7:26 AM To: CF-Talk Subject: RE: Setting a dynamically built list as a session variable. How come you do not have to lock on MX? -Original Message- From: Stephen Moretti [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 7:24 AM To: CF-Talk Subject: Re: Setting a dynamically built list as a session variable. Stephen, First up. You don't need to name each of your checkboxes seperately, so change the input tag to this : input type=checkbox name=business_types value=#bus_type# and your javascript to this : script language=JavaScript !-- Begin function checkAll() { for (var j = 1; j = document.BusinessType.business_types.length; j++) { box = document.BusinessType.business_types[j]; { if (box.checked == false) { box.checked = true; } else if(box.checked == true){ box.checked = false; } } } // End -- /script My question is how can I create this session variable from this dynamic list of form variables? Now what you'll get is one form variable called business_types with all the checked business types as a comma delimited list. To make this form variable into a session variable in your action page is as simple as : cfset session.business_types = form.business_types Don't forget get your cflock if your not on CFMX. Regards Stephen __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Setting a dynamically built list as a session variable.
nevermind, found the article on it: http://www.macromedia.com/v1/Handlers/index.cfm?ID=23021Method=Full mike How come you do not have to lock on MX? Heh heh. The power of Java for you. __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Setting a dynamically built list as a session variable.
** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Well, thanks for all the replys. They have all been very helpful. I've managed to fix the problem I had through your suggestions. Thanks a lot. Stephen -- From: Tangorre, Michael[SMTP:[EMAIL PROTECTED]] Sent: 22 July 2002 12:34 To: CF-Talk Subject: RE: Setting a dynamically built list as a session variable. nevermind, found the article on it: http://www.macromedia.com/v1/Handlers/index.cfm?ID=23021Method=Full mike -Original Message- From: Tangorre, Michael Sent: Monday, July 22, 2002 7:26 AM To: CF-Talk Subject: RE: Setting a dynamically built list as a session variable. How come you do not have to lock on MX? -Original Message- From: Stephen Moretti [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 7:24 AM To: CF-Talk Subject: Re: Setting a dynamically built list as a session variable. Stephen, First up. You don't need to name each of your checkboxes seperately, so change the input tag to this : input type=checkbox name=business_types value=#bus_type# and your javascript to this : script language=JavaScript !-- Begin function checkAll() { for (var j = 1; j = document.BusinessType.business_types.length; j++) { box = document.BusinessType.business_types[j]; { if (box.checked == false) { box.checked = true; } else if(box.checked == true){ box.checked = false; } } } // End -- /script My question is how can I create this session variable from this dynamic list of form variables? Now what you'll get is one form variable called business_types with all the checked business types as a comma delimited list. To make this form variable into a session variable in your action page is as simple as : cfset session.business_types = form.business_types Don't forget get your cflock if your not on CFMX. Regards Stephen __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Finding a good Session management system.
** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have been building CF sites for a while now and I am always finding myself creating/deleting and checking for session variables or changing them into request variables. It always seems to me that there must be a better way in which to use them. A way that lets me create them easily, delete them, keep track of them with out have to write tons of code and does not add loads of time to the running of my applications.. Does anyone know of or have any tips on how I can easily handle the management of session variables. Thanks Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
Don't use session variables, but use cookies which maintain session state when the browser is open and deleted when closed. -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:54 PM To: CF-Talk Subject: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have been building CF sites for a while now and I am always finding myself creating/deleting and checking for session variables or changing them into request variables. It always seems to me that there must be a better way in which to use them. A way that lets me create them easily, delete them, keep track of them with out have to write tons of code and does not add loads of time to the running of my applications.. Does anyone know of or have any tips on how I can easily handle the management of session variables. Thanks Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
DWMX - Monitor page design time
Are there any plugs that can track the amount of design time a developer puts into a page? Dave DISCLAIMER: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
That was a pretty vague and not very helpful answer John. Stephen, what all are you storing in session variables? Could you describe your application a little more? I've always tried to make sure that I'm using session variables as little as possible anymore. I've moved majority of my session variables into client variables (storage in db). None the less, there's still a variable management issue that you have to get your fingers wrapped around. Perhaps you're storing too much information into the session scope if you're pondering that there has to be a better way. So.. my advice to you is to do a cfdump var=#session# (proper locks around of course) and take a good hard look at what really should / shouldn't be there. ~Todd On Mon, 22 Jul 2002, John McCosker wrote: Don't use session variables, but use cookies which maintain session state when the browser is open and deleted when closed. -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:54 PM To: CF-Talk Subject: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have been building CF sites for a while now and I am always finding myself creating/deleting and checking for session variables or changing them into request variables. It always seems to me that there must be a better way in which to use them. A way that lets me create them easily, delete them, keep track of them with out have to write tons of code and does not add loads of time to the running of my applications.. Does anyone know of or have any tips on how I can easily handle the management of session variables. Thanks Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Finding a good Session management system.
Bah Humbug Use Client variables Just don't forget that you must change the default client store from registry to a datasource (whatever the operating system you're running on) otherwise your registry will either fill up quickly or just slow your application down horrendously. Better ways of handling your session variables. Copy your entire session scop to a request variable in Application.cfm and back again in onRequestEnd.cfm. This way during the users request to site whatever session variable you need is in the request scope. No messing with cflocks in the rest of your code Make sure you do a Duplicate() rather than StructCopy or request.session = session Or you could buy CFMX and do away with cflocking (unless there's going to be any kind of race condition) Regards Stephen Don't use session variables, but use cookies which maintain session state when the browser is open and deleted when closed. -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:54 PM To: CF-Talk Subject: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have been building CF sites for a while now and I am always finding myself creating/deleting and checking for session variables or changing them into request variables. It always seems to me that there must be a better way in which to use them. A way that lets me create them easily, delete them, keep track of them with out have to write tons of code and does not add loads of time to the running of my applications.. Does anyone know of or have any tips on how I can easily handle the management of session variables. Thanks Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Well, the application I am building at the moment uses a series of forms to gather information from the user and then on the final page runs a query based on what has been selected in these forms. So I am storing some of the user's choices in session variables so that they can be passed can be used in the query on the last page. This is quiet a small application. My next one is going to be a large intranet with a lot of personalisation. Oh I love web-rat.com by the way, great site. Stephen -- From: [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]] Sent: 22 July 2002 14:10 To: CF-Talk Subject: RE: Finding a good Session management system. That was a pretty vague and not very helpful answer John. Stephen, what all are you storing in session variables? Could you describe your application a little more? I've always tried to make sure that I'm using session variables as little as possible anymore. I've moved majority of my session variables into client variables (storage in db). None the less, there's still a variable management issue that you have to get your fingers wrapped around. Perhaps you're storing too much information into the session scope if you're pondering that there has to be a better way. So.. my advice to you is to do a cfdump var=#session# (proper locks around of course) and take a good hard look at what really should / shouldn't be there. ~Todd On Mon, 22 Jul 2002, John McCosker wrote: Don't use session variables, but use cookies which maintain session state when the browser is open and deleted when closed. -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:54 PM To: CF-Talk Subject: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have been building CF sites for a while now and I am always finding myself creating/deleting and checking for session variables or changing them into request variables. It always seems to me that there must be a better way in which to use them. A way that lets me create them easily, delete them, keep track of them with out have to write tons of code and does not add loads of time to the running of my applications.. Does anyone know of or have any tips on how I can easily handle the management of session variables. Thanks Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
Thanks for flaming me Todd, my suggestion was a general hint of a direction in which to contemplate based on the information given, I am always finding myself creating/deleting and checking for session variables or changing them into request variables It always seems to me that there must be a better way in which to use them. keep track of them with out have to write tons of code and does not add loads of time to the running of my applications, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 2:10 PM To: CF-Talk Subject: RE: Finding a good Session management system. That was a pretty vague and not very helpful answer John. Stephen, what all are you storing in session variables? Could you describe your application a little more? I've always tried to make sure that I'm using session variables as little as possible anymore. I've moved majority of my session variables into client variables (storage in db). None the less, there's still a variable management issue that you have to get your fingers wrapped around. Perhaps you're storing too much information into the session scope if you're pondering that there has to be a better way. So.. my advice to you is to do a cfdump var=#session# (proper locks around of course) and take a good hard look at what really should / shouldn't be there. ~Todd On Mon, 22 Jul 2002, John McCosker wrote: Don't use session variables, but use cookies which maintain session state when the browser is open and deleted when closed. -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:54 PM To: CF-Talk Subject: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have been building CF sites for a while now and I am always finding myself creating/deleting and checking for session variables or changing them into request variables. It always seems to me that there must be a better way in which to use them. A way that lets me create them easily, delete them, keep track of them with out have to write tons of code and does not add loads of time to the running of my applications.. Does anyone know of or have any tips on how I can easily handle the management of session variables. Thanks Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I like you idea have you got a small example of this so I can see exatly what you talking about. Stephen -- From: Stephen Moretti[SMTP:[EMAIL PROTECTED]] Sent: 22 July 2002 14:31 To: CF-Talk Subject: Re: Finding a good Session management system. Bah Humbug Use Client variables Just don't forget that you must change the default client store from registry to a datasource (whatever the operating system you're running on) otherwise your registry will either fill up quickly or just slow your application down horrendously. Better ways of handling your session variables. Copy your entire session scop to a request variable in Application.cfm and back again in onRequestEnd.cfm. This way during the users request to site whatever session variable you need is in the request scope. No messing with cflocks in the rest of your code Make sure you do a Duplicate() rather than StructCopy or request.session = session Or you could buy CFMX and do away with cflocking (unless there's going to be any kind of race condition) Regards Stephen Don't use session variables, but use cookies which maintain session state when the browser is open and deleted when closed. -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:54 PM To: CF-Talk Subject: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have been building CF sites for a while now and I am always finding myself creating/deleting and checking for session variables or changing them into request variables. It always seems to me that there must be a better way in which to use them. A way that lets me create them easily, delete them, keep track of them with out have to write tons of code and does not add loads of time to the running of my applications.. Does anyone know of or have any tips on how I can easily handle the management of session variables. Thanks Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: DWMX - Monitor page design time
Not sure what you mean by plugs, but I use this piece of software to keep up with the time I spend on my hourly clients' work. We've used it for over a year now with no complaints. http://www.spudcity.com/traxtime/traxtime.htm hth, ~val - Original Message - From: Bosky, Dave [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, July 22, 2002 9:15 AM Subject: DWMX - Monitor page design time Are there any plugs that can track the amount of design time a developer puts into a page? Dave DISCLAIMER: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: DWMX - Monitor page design time
Does it work by using a checkout/checkin time? If so could I use MS SourceSafe to accomplish this? Dave -Original Message- From: Valerie L. Criswell [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 9:32 AM To: CF-Talk Subject: Re: DWMX - Monitor page design time Not sure what you mean by plugs, but I use this piece of software to keep up with the time I spend on my hourly clients' work. We've used it for over a year now with no complaints. http://www.spudcity.com/traxtime/traxtime.htm hth, ~val - Original Message - From: Bosky, Dave [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, July 22, 2002 9:15 AM Subject: DWMX - Monitor page design time Are there any plugs that can track the amount of design time a developer puts into a page? Dave DISCLAIMER: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
Wasn't a flame -- just a statement. ~Todd On Mon, 22 Jul 2002, John McCosker wrote: Thanks for flaming me Todd, my suggestion was a general hint of a direction in which to contemplate based on the information given, I am always finding myself creating/deleting and checking for session variables or changing them into request variables It always seems to me that there must be a better way in which to use them. keep track of them with out have to write tons of code and does not add loads of time to the running of my applications, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 2:10 PM To: CF-Talk Subject: RE: Finding a good Session management system. That was a pretty vague and not very helpful answer John. Stephen, what all are you storing in session variables? Could you describe your application a little more? I've always tried to make sure that I'm using session variables as little as possible anymore. I've moved majority of my session variables into client variables (storage in db). None the less, there's still a variable management issue that you have to get your fingers wrapped around. Perhaps you're storing too much information into the session scope if you're pondering that there has to be a better way. So.. my advice to you is to do a cfdump var=#session# (proper locks around of course) and take a good hard look at what really should / shouldn't be there. ~Todd On Mon, 22 Jul 2002, John McCosker wrote: Don't use session variables, but use cookies which maintain session state when the browser is open and deleted when closed. -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:54 PM To: CF-Talk Subject: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have been building CF sites for a while now and I am always finding myself creating/deleting and checking for session variables or changing them into request variables. It always seems to me that there must be a better way in which to use them. A way that lets me create them easily, delete them, keep track of them with out have to write tons of code and does not add loads of time to the running of my applications.. Does anyone know of or have any tips on how I can easily handle the management of session variables. Thanks Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
This doesn't really help...I don't think he asked whether to use client or sessions. [EMAIL PROTECTED] 07/22/02 09:01AM Don't use session variables, but use cookies which maintain session state when the browser is open and deleted when closed. -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:54 PM To: CF-Talk Subject: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have been building CF sites for a while now and I am always finding myself creating/deleting and checking for session variables or changing them into request variables. It always seems to me that there must be a better way in which to use them. A way that lets me create them easily, delete them, keep track of them with out have to write tons of code and does not add loads of time to the running of my applications.. Does anyone know of or have any tips on how I can easily handle the management of session variables. Thanks Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: non-integer array indexes??
Does it have to be an Array, why not use a structure? Its 2 dimensional. Structs are one dim. Right? Can there be non-integer array indexes? I've tried a workaround... cfset fields=ArrayNew(2) cfset ArtistID=1 cfset ArtistEmail=2 cfset ArtistFirstName=3 cfset label=1 cfset max_length=2 cfset min_length=3 cfset required=4 cfset size=5 cfset fields[ArtistID][label] = ID cfset fields[ArtistID][max_length] = 10 cfset fields[ArtistID][min_length] = 10 cfset fields[ArtistID][required] = true cfset fields[ArtistID][size] = 10 cfset fields[ArtistEmail][label] = Email cfset fields[ArtistEmail][max_length] = 10 cfset fields[ArtistEmail][min_length] = 10 cfset fields[ArtistEmail][required] = true cfset fields[ArtistEmail][size] = 10 cfset fields[ArtistFirstName][label] = Firstname cfset fields[ArtistFirstName][max_length] = 10 cfset fields[ArtistFirstName][min_length] = 10 cfset fields[ArtistFirstName][required] = true cfset fields[ArtistFirstName][size] = 10 cfset test=ArrayNew(1) cfset test[1] = ArtistID cfset test[2] = ArtistEmail cfset test[3] = ArtistFirstName cfloop index=i from=1 to=3 cfoutput #fields[#test[i]#][label]#br /cfoutput /cfloop Which chokes... Anyone have any suggestions? __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
Stephen, perhaps shoving everything into the variable scope isn't what you need then. If you're going from form to form, it wouldn't be that hard to loop around the form.fieldnames to set hidden form fields onto the next page to continue to pass on that information. I have a similiar application that does all this with session variables and when the form is -finally- submitted, it dumps everything to a local copy and removes the session variable. There's probably plenty of ways to do this, but ... I think you need to start thinking of better 'transport' mechanisms, even if it is a session variable (and, using session variables is not a bad thing, just means you have to manage what you're doing, but that goes with any variable scope). The one thing I tend to do before populating my forms / session vars is intialize the whole data structure. That way, things are always defined, it's just a matter of doing a len(trim(varName)) on them to see if there's any data in that scope. Plenty of ways to handle this, overall it's just application planning. You need to sit down and decide how complicated / how simple you want to make this and plan for future growth (if the application calls for it). ~Todd p.s. Thanks for the compliment, just a personal stomping ground. On Mon, 22 Jul 2002, Adams, Stephen wrote: ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Well, the application I am building at the moment uses a series of forms to gather information from the user and then on the final page runs a query based on what has been selected in these forms. So I am storing some of the user's choices in session variables so that they can be passed can be used in the query on the last page. This is quiet a small application. My next one is going to be a large intranet with a lot of personalisation. Stephen -- Todd Rafferty ([EMAIL PROTECTED]) - http://www.web-rat.com/ | Team Macromedia Volunteer for ColdFusion | http://www.macromedia.com/support/forums/team_macromedia/ | http://www.flashCFM.com/ - webRat (Moderator)| http://www.ultrashock.com/ - webRat (Back-end Moderator) | __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Finding a good Session management system.
I like you idea have you got a small example of this so I can see exatly what you talking about. Yup !--- Application.cfm --- cflock scope=SESSION type=READONLY cfset request.sessionvar = Duplicate(session) /cflock !--- Other files --- cfoutput #request.sessionvar.userid#/cfoutput !--- Instead of cfoutput #session.userid#/cfoutput with all the appropriate locking --- cfset request.sessionvar.newvar = Will be copied automatically into the session scope in OnRequestEnd !--- OnRequestEnd.cfm --- cflock scope=SESSION type=EXCLUSIVE cfset temp = StructAppend(session,request.sessionvar,Yes) /cflock Hope that helps... Stephen __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
SQL Help
Since lovely M$ Sql does not have a select last_day function like oracle I was wondering if anyone had written a script that will take the month number and return either the number of days or the last day of that month? Thanks, Josh __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Thanks, this is very helpful. -- From: Stephen Moretti[SMTP:[EMAIL PROTECTED]] Sent: 22 July 2002 14:59 To: CF-Talk Subject: Re: Finding a good Session management system. I like you idea have you got a small example of this so I can see exatly what you talking about. Yup !--- Application.cfm --- cflock scope=SESSION type=READONLY cfset request.sessionvar = Duplicate(session) /cflock !--- Other files --- cfoutput #request.sessionvar.userid#/cfoutput !--- Instead of cfoutput #session.userid#/cfoutput with all the appropriate locking --- cfset request.sessionvar.newvar = Will be copied automatically into the session scope in OnRequestEnd !--- OnRequestEnd.cfm --- cflock scope=SESSION type=EXCLUSIVE cfset temp = StructAppend(session,request.sessionvar,Yes) /cflock Hope that helps... Stephen __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
Wasn't a flame -- just a statement. ~Todd So.. my advice to you is to do a cfdump var=#session# (proper locks around of course) and take a good hard look at what really should / shouldn't be there. ~Todd I worked for a while at an education-management company ( they manage k-12 schools for people who own / operate them, but don't know what they're doing :) where I found username and password (among other things) in a dump of the session structure... ick... guess the management company didn't really know what they were doing either. :) Isaac Dealey www.turnkey.to 954-776-0046 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: DWMX - Monitor page design time
I'm independent, so while I know about SourceSafe, I don't have experience with it. TraxTime can indeed run on a network and there is a management version that will compile all employee's times into one report. We use one copy of the regular version on my machine (where I write CF apps) and one copy of the management version on the server so my husband (who manages the server) can clock hours as well on the same account. It's just the two of us though, so it's a perfect solution. Your situation may be otherwise. ~val - Original Message - From: Bosky, Dave [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, July 22, 2002 9:36 AM Subject: RE: DWMX - Monitor page design time Does it work by using a checkout/checkin time? If so could I use MS SourceSafe to accomplish this? Dave -Original Message- From: Valerie L. Criswell [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 9:32 AM To: CF-Talk Subject: Re: DWMX - Monitor page design time Not sure what you mean by plugs, but I use this piece of software to keep up with the time I spend on my hourly clients' work. We've used it for over a year now with no complaints. http://www.spudcity.com/traxtime/traxtime.htm hth, ~val - Original Message - From: Bosky, Dave [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, July 22, 2002 9:15 AM Subject: DWMX - Monitor page design time Are there any plugs that can track the amount of design time a developer puts into a page? Dave DISCLAIMER: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
On Mon, 22 Jul 2002, S. Isaac Dealey wrote: I worked for a while at an education-management company ( they manage k-12 schools for people who own / operate them, but don't know what they're doing :) where I found username and password (among other things) in a dump of the session structure... ick... guess the management company didn't really know what they were doing either. :) Isaac Dealey Username / id I can see. Password I never put in any scope. ~Todd -- Todd Rafferty ([EMAIL PROTECTED]) - http://www.web-rat.com/ | Team Macromedia Volunteer for ColdFusion | http://www.macromedia.com/support/forums/team_macromedia/ | http://www.flashCFM.com/ - webRat (Moderator)| http://www.ultrashock.com/ - webRat (Back-end Moderator) | __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
What's so bad with passing the username and password in the session structure? You wouldn't be able to steal anyone else's session unless you had a problem with firewalls, and you would end up having the same issue no matter what kind of management you used. Robert Everland III Web Developer Extraordinaire Dixon Ticonderoga Company http://www.dixonusa.com -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:14 AM To: CF-Talk Subject: RE: Finding a good Session management system. Wasn't a flame -- just a statement. ~Todd So.. my advice to you is to do a cfdump var=#session# (proper locks around of course) and take a good hard look at what really should / shouldn't be there. ~Todd I worked for a while at an education-management company ( they manage k-12 schools for people who own / operate them, but don't know what they're doing :) where I found username and password (among other things) in a dump of the session structure... ick... guess the management company didn't really know what they were doing either. :) Isaac Dealey www.turnkey.to 954-776-0046 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: non-integer array indexes??
You can have a structure of structures, a structure of arrays, arrays of structures. However complex you want. Cheers From: Chris Edwards [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: Re: non-integer array indexes?? Date: Mon, 22 Jul 2002 09:43:57 -0400 Does it have to be an Array, why not use a structure? Its 2 dimensional. Structs are one dim. Right? Can there be non-integer array indexes? I've tried a workaround... cfset fields=ArrayNew(2) cfset ArtistID=1 cfset ArtistEmail=2 cfset ArtistFirstName=3 cfset label=1 cfset max_length=2 cfset min_length=3 cfset required=4 cfset size=5 cfset fields[ArtistID][label] = ID cfset fields[ArtistID][max_length] = 10 cfset fields[ArtistID][min_length] = 10 cfset fields[ArtistID][required] = true cfset fields[ArtistID][size] = 10 cfset fields[ArtistEmail][label] = Email cfset fields[ArtistEmail][max_length] = 10 cfset fields[ArtistEmail][min_length] = 10 cfset fields[ArtistEmail][required] = true cfset fields[ArtistEmail][size] = 10 cfset fields[ArtistFirstName][label] = Firstname cfset fields[ArtistFirstName][max_length] = 10 cfset fields[ArtistFirstName][min_length] = 10 cfset fields[ArtistFirstName][required] = true cfset fields[ArtistFirstName][size] = 10 cfset test=ArrayNew(1) cfset test[1] = ArtistID cfset test[2] = ArtistEmail cfset test[3] = ArtistFirstName cfloop index=i from=1 to=3 cfoutput #fields[#test[i]#][label]#br /cfoutput /cfloop Which chokes... Anyone have any suggestions? __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Finding a good Session management system.
Better ways of handling your session variables. Copy your entire session scop to a request variable in Application.cfm and back again in onRequestEnd.cfm. This way during the users request to site whatever session variable you need is in the request scope. No messing with cflocks in the rest of your code Make sure you do a Duplicate() rather than StructCopy or request.session = session This isn't a bad method ... The only thing I would add is that you need to remember to consider cfinclude template=onrequestend.cfm before any cfabort tag, such as just after a cflocation tag. Using a cfabort in the middle of the page obviously terminates page processing, but it's sometimes easy to forget that you have important session management going on further down the page in the onrequestend.cfm that won't occur if you don't cfinclude it before you abort the page. Isaac Dealey www.turnkey.to 954-776-0046 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
Nothing wrong with sessions, until you've experienced your first session corruption / leak - then you'll see why this isn't a good idea. ~Todd On Mon, 22 Jul 2002, Robert Everland wrote: What's so bad with passing the username and password in the session structure? You wouldn't be able to steal anyone else's session unless you had a problem with firewalls, and you would end up having the same issue no matter what kind of management you used. Robert Everland III Web Developer Extraordinaire Dixon Ticonderoga Company http://www.dixonusa.com -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:14 AM To: CF-Talk Subject: RE: Finding a good Session management system. Wasn't a flame -- just a statement. ~Todd So.. my advice to you is to do a cfdump var=#session# (proper locks around of course) and take a good hard look at what really should / shouldn't be there. ~Todd I worked for a while at an education-management company ( they manage k-12 schools for people who own / operate them, but don't know what they're doing :) where I found username and password (among other things) in a dump of the session structure... ick... guess the management company didn't really know what they were doing either. :) Isaac Dealey www.turnkey.to 954-776-0046 __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Finding a good Session management system.
Use client variables if they are going to be less then 32k (i think it was) or you will mess up your client variable storage and have to rebuild them. Bill Wheatley Senior Database Developer Macromedia Certified Advanced Coldfusion Developer EDIETS.COM 954.360.9022 X159 ICQ 417645 - Original Message - From: Stephen Moretti [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, July 22, 2002 9:31 AM Subject: Re: Finding a good Session management system. Bah Humbug Use Client variables Just don't forget that you must change the default client store from registry to a datasource (whatever the operating system you're running on) otherwise your registry will either fill up quickly or just slow your application down horrendously. Better ways of handling your session variables. Copy your entire session scop to a request variable in Application.cfm and back again in onRequestEnd.cfm. This way during the users request to site whatever session variable you need is in the request scope. No messing with cflocks in the rest of your code Make sure you do a Duplicate() rather than StructCopy or request.session = session Or you could buy CFMX and do away with cflocking (unless there's going to be any kind of race condition) Regards Stephen Don't use session variables, but use cookies which maintain session state when the browser is open and deleted when closed. -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:54 PM To: CF-Talk Subject: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have been building CF sites for a while now and I am always finding myself creating/deleting and checking for session variables or changing them into request variables. It always seems to me that there must be a better way in which to use them. A way that lets me create them easily, delete them, keep track of them with out have to write tons of code and does not add loads of time to the running of my applications.. Does anyone know of or have any tips on how I can easily handle the management of session variables. Thanks Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: SQL Help
Since lovely M$ Sql does not have a select last_day function like oracle I was wondering if anyone had written a script that will take the month number and return either the number of days or the last day of that month? Is there a particular reason it needs to be in the db? ... declare mydate smalldatetime; set mydate = getdate(); select DateAdd(dd,-(1 + datepart(dd,mydate)),DateAdd(mm,1,mydate)); should do it... What you're doing is adding a month to the current date, then subtracting the datepart plus one which will give you the last day of the month for mydate... If you have SQL 2000 I recommend creating a userdefined function dbo.LastDayOfMonth(mydate smalldatetime); and possibly dbo.DaysInMonth(mydate smalldatetime); which will return DatePart(dd,dbo.LastDayOfMonth(mydate)); ... You can't use GETDATE() within a UDF in SQL ( don't ask me why. :) so if you need it for the current date, you'll have to use dbo.DaysInMonth(GETDATE()); hth Isaac Dealey www.turnkey.to 954-776-0046 __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
Stephen, I am not going to comment on the client vs. session variable issue that everyone else is talking about. I am awfully ignorant about client variables, and I am learning from those other messages as they come. I can, however, offer some advice on the approach to a multi-page form with session variables. I just (last night) released a multi-page registration system for a web site. When I started, I thought, I'll just put the variables from each form submission into a session variable, which I will store until the end of the process, at which point everything will be submitted at once. OK. That made sense, but with locking and keeping track of things and needing to let the user go back and forth and edit data, things got miserable from a variable management standpoint. Halfway through, although I kept the basic concept the same, I made a change which greatly simplified my life. Here's the idea: the biggest heartaches came in testing for a variable's existence, providing for all possible cases of its value, and the locking issues. So, I eliminated all of them. I created a page called registration_init.cfm that set to default values all of the session variables that I would be using throughout the registration process. At the top of each page, I have one CFLOCK block that pulls all of the relevant session variables for the form into local variables. Each page then pre-populates its form fields with those local variables, regardless of their value; if they are blank, fine, and if they have data from the session variables, fine. This allows you to go back and forth between forms very easily. I also set up my pages in a (probably inefficient) funny way. The flow is like this: registration_init.cfm registration1.cfm registration1_action.cfm registration2cfm registration2_action.cfm etc. Each action page validates all of the data and goes to the appropriate page: forward if everything is okay, and back if it's not. If it goes back, it also passes error values which appear on the page to let the user know what they did wrong and how to fix it. I can't remember right now if this flow setup tied into the session variable management issue, but just so you have some more ideas, I thought I'd throw it in. Anyhow, the main thing is that by pre-defining all the variables that I was going to use, I removed the need to check their values on each page. Of course, it's essentially doing the same thing, but by doing it in a centralized way was a lot easier. Hope this rambling is helpful, Matthieu -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 9:30 AM To: CF-Talk Subject: RE: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Well, the application I am building at the moment uses a series of forms to gather information from the user and then on the final page runs a query based on what has been selected in these forms. So I am storing some of the user's choices in session variables so that they can be passed can be used in the query on the last page. This is quiet a small application. My next one is going to be a large intranet with a lot of personalisation. Oh I love web-rat.com by the way, great site. Stephen -- From: [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]] Sent: 22 July 2002 14:10 To: CF-Talk Subject: RE: Finding a good Session management system. That was a pretty vague and not very helpful answer John. Stephen, what all are you storing in session variables? Could you describe your application a little more? I've always tried to make sure that I'm using session variables as little as possible anymore. I've moved majority of my session variables into client variables (storage in db). None the less, there's still a variable management issue that you have to get your fingers wrapped around. Perhaps you're storing too much information into the session scope if you're pondering that there has to be a better way. So.. my advice to you is to do a cfdump var=#session# (proper locks around of course) and take a good hard look at what really should / shouldn't be there. ~Todd On Mon, 22 Jul 2002, John McCosker wrote: Don't use session variables, but use cookies which maintain session state when the browser is open and deleted when closed. -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:54 PM To: CF-Talk Subject: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message **
RE: Finding a good Session management system.
Client Variables in database storage holds default 120k but you increase the size of the data fields.. at least this is what the documentation says. WDDX and Client variables would be a good option. Joe Certified Advanced ColdFusion Developer -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:30 AM To: CF-Talk Subject: Re: Finding a good Session management system. Use client variables if they are going to be less then 32k (i think it was) or you will mess up your client variable storage and have to rebuild them. Bill Wheatley Senior Database Developer Macromedia Certified Advanced Coldfusion Developer EDIETS.COM 954.360.9022 X159 ICQ 417645 - Original Message - From: Stephen Moretti [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, July 22, 2002 9:31 AM Subject: Re: Finding a good Session management system. Bah Humbug Use Client variables Just don't forget that you must change the default client store from registry to a datasource (whatever the operating system you're running on) otherwise your registry will either fill up quickly or just slow your application down horrendously. Better ways of handling your session variables. Copy your entire session scop to a request variable in Application.cfm and back again in onRequestEnd.cfm. This way during the users request to site whatever session variable you need is in the request scope. No messing with cflocks in the rest of your code Make sure you do a Duplicate() rather than StructCopy or request.session = session Or you could buy CFMX and do away with cflocking (unless there's going to be any kind of race condition) Regards Stephen Don't use session variables, but use cookies which maintain session state when the browser is open and deleted when closed. -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:54 PM To: CF-Talk Subject: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have been building CF sites for a while now and I am always finding myself creating/deleting and checking for session variables or changing them into request variables. It always seems to me that there must be a better way in which to use them. A way that lets me create them easily, delete them, keep track of them with out have to write tons of code and does not add loads of time to the running of my applications.. Does anyone know of or have any tips on how I can easily handle the management of session variables. Thanks Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
Todd, What is session corruption/leak? I'm worried. :) Matthieu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:21 AM To: CF-Talk Subject: RE: Finding a good Session management system. Nothing wrong with sessions, until you've experienced your first session corruption / leak - then you'll see why this isn't a good idea. ~Todd On Mon, 22 Jul 2002, Robert Everland wrote: What's so bad with passing the username and password in the session structure? You wouldn't be able to steal anyone else's session unless you had a problem with firewalls, and you would end up having the same issue no matter what kind of management you used. Robert Everland III Web Developer Extraordinaire Dixon Ticonderoga Company http://www.dixonusa.com -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:14 AM To: CF-Talk Subject: RE: Finding a good Session management system. Wasn't a flame -- just a statement. ~Todd So.. my advice to you is to do a cfdump var=#session# (proper locks around of course) and take a good hard look at what really should / shouldn't be there. ~Todd I worked for a while at an education-management company ( they manage k-12 schools for people who own / operate them, but don't know what they're doing :) where I found username and password (among other things) in a dump of the session structure... ick... guess the management company didn't really know what they were doing either. :) Isaac Dealey www.turnkey.to 954-776-0046 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: non-integer array indexes??
Does it have to be an Array, why not use a structure? Its 2 dimensional. Structs are one dim. Right? A structure can contain structures, which is analogous of an array containing arrays, which is what a 2d array in cf is... So... What would be something like this in an array 1 2 3 1[h][y][1] 2[n][y][x] 3[a][b][c] Would be something like this with structures type req value userid [hidden][yes][1] name[text ][yes][x] other [text ][no ][slardibartfast] Isaac Dealey www.turnkey.to 954-776-0046 __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Finding a good Session management system.
Use client variables if they are going to be less then 32k (i think it was) or you will mess up your client variable storage and have to rebuild them. Who stores more than 32k in a persistent scope variable? ... Isaac Dealey www.turnkey.to 954-776-0046 __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Matthieu, Thanks for sharing this, its a nice idea. It is the kind of thing I was interested in hearing about. -- From: Cornillon, Matthieu[SMTP:[EMAIL PROTECTED]] Sent: 22 July 2002 15:36 To: CF-Talk Subject: RE: Finding a good Session management system. Stephen, I am not going to comment on the client vs. session variable issue that everyone else is talking about. I am awfully ignorant about client variables, and I am learning from those other messages as they come. I can, however, offer some advice on the approach to a multi-page form with session variables. I just (last night) released a multi-page registration system for a web site. When I started, I thought, I'll just put the variables from each form submission into a session variable, which I will store until the end of the process, at which point everything will be submitted at once. OK. That made sense, but with locking and keeping track of things and needing to let the user go back and forth and edit data, things got miserable from a variable management standpoint. Halfway through, although I kept the basic concept the same, I made a change which greatly simplified my life. Here's the idea: the biggest heartaches came in testing for a variable's existence, providing for all possible cases of its value, and the locking issues. So, I eliminated all of them. I created a page called registration_init.cfm that set to default values all of the session variables that I would be using throughout the registration process. At the top of each page, I have one CFLOCK block that pulls all of the relevant session variables for the form into local variables. Each page then pre-populates its form fields with those local variables, regardless of their value; if they are blank, fine, and if they have data from the session variables, fine. This allows you to go back and forth between forms very easily. I also set up my pages in a (probably inefficient) funny way. The flow is like this: registration_init.cfm registration1.cfm registration1_action.cfm registration2cfm registration2_action.cfm etc. Each action page validates all of the data and goes to the appropriate page: forward if everything is okay, and back if it's not. If it goes back, it also passes error values which appear on the page to let the user know what they did wrong and how to fix it. I can't remember right now if this flow setup tied into the session variable management issue, but just so you have some more ideas, I thought I'd throw it in. Anyhow, the main thing is that by pre-defining all the variables that I was going to use, I removed the need to check their values on each page. Of course, it's essentially doing the same thing, but by doing it in a centralized way was a lot easier. Hope this rambling is helpful, Matthieu -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 9:30 AM To: CF-Talk Subject: RE: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Well, the application I am building at the moment uses a series of forms to gather information from the user and then on the final page runs a query based on what has been selected in these forms. So I am storing some of the user's choices in session variables so that they can be passed can be used in the query on the last page. This is quiet a small application. My next one is going to be a large intranet with a lot of personalisation. Oh I love web-rat.com by the way, great site. Stephen -- From: [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]] Sent: 22 July 2002 14:10 To: CF-Talk Subject:RE: Finding a good Session management system. That was a pretty vague and not very helpful answer John. Stephen, what all are you storing in session variables? Could you describe your application a little more? I've always tried to make sure that I'm using session variables as little as possible anymore. I've moved majority of my session variables into client variables (storage in db). None the less, there's still a variable management issue that you have to get your fingers wrapped around. Perhaps you're storing too much information into the session scope if you're pondering that there has to be a better way. So.. my advice to you is to do a cfdump var=#session# (proper locks around of course) and take a good hard look at what really should /
RE: Finding a good Session management system.
On Mon, 22 Jul 2002, S. Isaac Dealey wrote: I worked for a while at an education-management company ( they manage k-12 schools for people who own / operate them, but don't know what they're doing :) where I found username and password (among other things) in a dump of the session structure... ick... guess the management company didn't really know what they were doing either. :) Isaac Dealey Username / id I can see. Password I never put in any scope. I'm curious, why username? In this particular case it was a blunder -- the username wasn't ever used anywhere outside of the login, so there was no need to have it as a persistent variable... and I generally try to avoid using either of them anywhere outside of the login page just to keep code and security tidy. :) Isaac Dealey www.turnkey.to 954-776-0046 __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
Well, this occured back in the good ol' days when we were upgrading from 4.01 to 4.5 and ... learning the hard way about cflocks :) However if you have all the appropriate locks in place and stuff, you shouldn't see this happening. ~Todd On Mon, 22 Jul 2002, Cornillon, Matthieu wrote: Todd, What is session corruption/leak? I'm worried. :) Matthieu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:21 AM To: CF-Talk Subject: RE: Finding a good Session management system. Nothing wrong with sessions, until you've experienced your first session corruption / leak - then you'll see why this isn't a good idea. ~Todd On Mon, 22 Jul 2002, Robert Everland wrote: What's so bad with passing the username and password in the session structure? You wouldn't be able to steal anyone else's session unless you had a problem with firewalls, and you would end up having the same issue no matter what kind of management you used. Robert Everland III Web Developer Extraordinaire Dixon Ticonderoga Company http://www.dixonusa.com -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:14 AM To: CF-Talk Subject: RE: Finding a good Session management system. Wasn't a flame -- just a statement. ~Todd So.. my advice to you is to do a cfdump var=#session# (proper locks around of course) and take a good hard look at what really should / shouldn't be there. ~Todd I worked for a while at an education-management company ( they manage k-12 schools for people who own / operate them, but don't know what they're doing :) where I found username and password (among other things) in a dump of the session structure... ick... guess the management company didn't really know what they were doing either. :) Isaac Dealey www.turnkey.to 954-776-0046 __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: multifunction anchor
Be sure that there are no spaces in the anchor name. Netscape dos not like spaces very much. Best regards, Dennis Powers UXB Internet - A Web Design and Hosting Company tel: (203)879-2844 fax: (203)879-6254 http://www.uxbinternet.com/ http://dennis.uxb.net/ -Original Message- From: Craig Thomas [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 5:54 PM To: CF-Talk Subject: RE: multifunction anchor It should work with IE and Netcrap. That is standard HTML 1.0 SHOULD being the operative word! -Craig __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
On Mon, 22 Jul 2002, S. Isaac Dealey wrote: I'm curious, why username? In this particular case it was a blunder -- the username wasn't ever used anywhere outside of the login, so there was no need to have it as a persistent variable... and I generally try to avoid using either of them anywhere outside of the login page just to keep code and security tidy. :) Ah, 'outside' of the portal, Ok.. don't need it outside. ;) I was talking about inside. ~Todd -- Todd Rafferty ([EMAIL PROTECTED]) - http://www.web-rat.com/ | Team Macromedia Volunteer for ColdFusion | http://www.macromedia.com/support/forums/team_macromedia/ | http://www.flashCFM.com/ - webRat (Moderator)| http://www.ultrashock.com/ - webRat (Back-end Moderator) | __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
On Mon, 22 Jul 2002, S. Isaac Dealey wrote: I'm curious, why username? In this particular case it was a blunder -- the username wasn't ever used anywhere outside of the login, so there was no need to have it as a persistent variable... and I generally try to avoid using either of them anywhere outside of the login page just to keep code and security tidy. :) Ah, 'outside' of the portal, Ok.. don't need it outside. ;) I was talking about inside. Hmmm... yea, I guess I could see a more complex login area with its own application.cfm that would retain the username ... particularly if it were for multiple sites / apps which each required its own separate login ( likely with a different password ) ... Though their login page had it's own directory and application.cfm ( to prevent an indefinite loop sending not-logged-in users back to the login prompt :) it was just the one app and they weren't using session management to retain it there... Isaac Dealey www.turnkey.to 954-776-0046 __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
SMTP Authentication w/CFMAIL tag?
Our network admin told me I need to add smtp authentication in my cf email application. Currently users simply login with their pop server info (server,user,pwd) to retrieve and send mail. How can I add SMTP authentication using the cfmail tag? Thanks, Dave DISCLAIMER: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: SMTP Authentication w/CFMAIL tag?
If you supply the username and password in the cfmail tag, it should support SMTP authentication. I don't know offhand if this supports encrypted logins or just plaintext. --Ben Doom Programmer General Lackey Moonbow Software : -Original Message- : From: Bosky, Dave [mailto:[EMAIL PROTECTED]] : Sent: Monday, July 22, 2002 11:08 AM : To: CF-Talk : Subject: SMTP Authentication w/CFMAIL tag? : : : Our network admin told me I need to add smtp authentication in my cf email : application. Currently users simply login with their pop server info : (server,user,pwd) to retrieve and send mail. : : How can I add SMTP authentication using the cfmail tag? : : Thanks, : Dave : : : DISCLAIMER: The information contained in this message may be : privileged and : confidential and protected from disclosure. If the reader of this : message is : not the intended recipient, or an employee or agent responsible for : delivering this message to the intended recipient, you are hereby notified : that any dissemination, distribution or copying of this communication is : strictly prohibited. If you have received this communication in error, : please notify us immediately by replying to the message and : deleting it from : your computer. Thank you. : : : __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Elaborate plan...
I have an application I am working on... I want each portion of the code to send an HTTP request to a page and respond back to my page, however I want the calling page to refresh. I really want some sort of a status maybe a % complete, but how do I get the page to constantly refresh. Any ideas and or examples people have seen would be great. Sorry I couldn't be anymore vague :) I can see it in my head but not put it in writing... Thanks, Neil __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: SMTP Authentication w/CFMAIL tag?
I didn't see an option to supply username/password in the mail tag. What version of CF are you using. Dave -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 11:34 AM To: CF-Talk Subject: RE: SMTP Authentication w/CFMAIL tag? If you supply the username and password in the cfmail tag, it should support SMTP authentication. I don't know offhand if this supports encrypted logins or just plaintext. --Ben Doom Programmer General Lackey Moonbow Software : -Original Message- : From: Bosky, Dave [mailto:[EMAIL PROTECTED]] : Sent: Monday, July 22, 2002 11:08 AM : To: CF-Talk : Subject: SMTP Authentication w/CFMAIL tag? : : : Our network admin told me I need to add smtp authentication in my cf email : application. Currently users simply login with their pop server info : (server,user,pwd) to retrieve and send mail. : : How can I add SMTP authentication using the cfmail tag? : : Thanks, : Dave : : : DISCLAIMER: The information contained in this message may be : privileged and : confidential and protected from disclosure. If the reader of this : message is : not the intended recipient, or an employee or agent responsible for : delivering this message to the intended recipient, you are hereby notified : that any dissemination, distribution or copying of this communication is : strictly prohibited. If you have received this communication in error, : please notify us immediately by replying to the message and : deleting it from : your computer. Thank you. : : : __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Elaborate plan...
You're going to hear references to Metatag refresh, and HTTP Header refresh options. Judging from your statements, I think these would not be the best solution. If you are dealing with IE only, you can use IFRAMES (in Netscape, I think the equivalent is a Layer). In Javascript on the main form, you can set a timer that calls a function (setTimeout()) - if your function sets the location of the IFRAME, the page loaded there can do whatever processing you need, then update the parent page through javascript - including changing the page itself. I've found this to be a much cleaner solution than refreshing whole pages - the user doesn't see the page getting reloaded, but DOES see the results of the reload, which would be the data being updated. My thoughts Not yours... Shawn Grover -Original Message- From: Neil H. [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 9:38 AM To: CF-Talk Subject: Elaborate plan... I have an application I am working on... I want each portion of the code to send an HTTP request to a page and respond back to my page, however I want the calling page to refresh. I really want some sort of a status maybe a % complete, but how do I get the page to constantly refresh. Any ideas and or examples people have seen would be great. Sorry I couldn't be anymore vague :) I can see it in my head but not put it in writing... Thanks, Neil __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Elaborate plan...
Thanks.. You don't happen to know an example of this anywhere do you? Neil - Original Message - From: Shawn Grover [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, July 22, 2002 11:58 AM Subject: RE: Elaborate plan... You're going to hear references to Metatag refresh, and HTTP Header refresh options. Judging from your statements, I think these would not be the best solution. If you are dealing with IE only, you can use IFRAMES (in Netscape, I think the equivalent is a Layer). In Javascript on the main form, you can set a timer that calls a function (setTimeout()) - if your function sets the location of the IFRAME, the page loaded there can do whatever processing you need, then update the parent page through javascript - including changing the page itself. I've found this to be a much cleaner solution than refreshing whole pages - the user doesn't see the page getting reloaded, but DOES see the results of the reload, which would be the data being updated. My thoughts Not yours... Shawn Grover -Original Message- From: Neil H. [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 9:38 AM To: CF-Talk Subject: Elaborate plan... I have an application I am working on... I want each portion of the code to send an HTTP request to a page and respond back to my page, however I want the calling page to refresh. I really want some sort of a status maybe a % complete, but how do I get the page to constantly refresh. Any ideas and or examples people have seen would be great. Sorry I couldn't be anymore vague :) I can see it in my head but not put it in writing... Thanks, Neil __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Elaborate plan...
Wasn't there an article on how to do a status bar in CF5? ( Oh, where is Ray when you need him--I think he wrote it? ) You can do something with cfflush and layers, I believe. At 11:37 AM 7/22/2002 -0400, you wrote: I have an application I am working on... I want each portion of the code to send an HTTP request to a page and respond back to my page, however I want the calling page to refresh. I really want some sort of a status maybe a % complete, but how do I get the page to constantly refresh. Any ideas and or examples people have seen would be great. Sorry I couldn't be anymore vague :) I can see it in my head but not put it in writing... Thanks, Neil __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Looping thru recordset
I think I already know the answer to this but is there a way of determining the position in a recordset of a particular value without having to loop thru it.? I have a recordset stored in an application variable which I want to query (CF 5) to find the pos of this record. I then want to get everything else after it in the recordset. I think the answer to this is I can't without looping thru all recs but I appear to have left my SQL hat at home today so I'm hoping one of you may prove me wrong :) -- Andy Ewings Director Thoughtbubble Ltd http://www.thoughtbubble.net -- United Kingdom http://www.thoughtbubble.net Tel: +44 (0) 20 7387 8890 -- New Zealand http://www.thoughtbubble.co.nz/ Tel: +64 (0) 9 419 4235 -- The information in this email and in any attachments is confidential and intended solely for the attention and use of the named addressee(s). Any views or opinions presented are solely those of the author and do not necessarily represent those of Thoughtbubble. This information may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to disclose, copy, distribute, or retain this message. Please notify us on +44 (0)207 387 8890. __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: SMTP Authentication w/CFMAIL tag?
Erk. Brain lost traction. Was thinking of something else entirely. Apologies. --Ben Doom Programmer General Lackey Moonbow Software : -Original Message- : From: Bosky, Dave [mailto:[EMAIL PROTECTED]] : Sent: Monday, July 22, 2002 11:50 AM : To: CF-Talk : Subject: RE: SMTP Authentication w/CFMAIL tag? : : : I didn't see an option to supply username/password in the mail tag. : What version of CF are you using. : : Dave : : -Original Message- : From: Ben Doom [mailto:[EMAIL PROTECTED]] : Sent: Monday, July 22, 2002 11:34 AM : To: CF-Talk : Subject: RE: SMTP Authentication w/CFMAIL tag? : : If you supply the username and password in the cfmail tag, it : should support : SMTP authentication. I don't know offhand if this supports : encrypted logins : or just plaintext. : : : : --Ben Doom : Programmer General Lackey : Moonbow Software : : : -Original Message- : : From: Bosky, Dave [mailto:[EMAIL PROTECTED]] : : Sent: Monday, July 22, 2002 11:08 AM : : To: CF-Talk : : Subject: SMTP Authentication w/CFMAIL tag? : : : : : : Our network admin told me I need to add smtp authentication in : my cf email : : application. Currently users simply login with their pop server info : : (server,user,pwd) to retrieve and send mail. : : : : How can I add SMTP authentication using the cfmail tag? : : : : Thanks, : : Dave : : : : : : DISCLAIMER: The information contained in this message may be : : privileged and : : confidential and protected from disclosure. If the reader of this : : message is : : not the intended recipient, or an employee or agent responsible for : : delivering this message to the intended recipient, you are : hereby notified : : that any dissemination, distribution or copying of this communication is : : strictly prohibited. If you have received this communication in error, : : please notify us immediately by replying to the message and : : deleting it from : : your computer. Thank you. : : : : : : : : __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
browse to mdb and java error problem.
java.lang.NoClassDefFoundError: netscape/application/Target I'm trying to register a local access mdb in 127.0.0.1/cfide/administrator When I click on the Browse Server for Database File under odbc, it installed a cab, then the java window in the browser just shows this error message and sits there. __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Elaborate plan...
I have an application I am working on... I want each portion of the code to send an HTTP request to a page and respond back to my page, however I want the calling page to refresh. I really want some sort of a status maybe a % complete, but how do I get the page to constantly refresh. Any ideas and or examples people have seen would be great. Sorry I couldn't be anymore vague :) I can see it in my head but not put it in writing... No worries on the vagueries, I know what you're getting at... :) There are a couple of ways this can be done... If you want the page to actually refresh, you can do something like this in CF 5: cfhttp ... cfoutput ... status info here ... /cfoutput cfflush script language=javascript location.reload(); !--- or --- location.replace(urltonextiteminlist); /script Or you can do the whole thing on a single request using something like this... cfoutput table border=0 cellpadding=0 cellspacing=5 trtd ID=statustext/td/tr trtd table border=0 cellpadding=0 cellspacing=0tr tdimg ID=completed src=spacer.gif/td tdimg ID=remaining src=spacer.gif/td /tr/table /td/tr /table /cfoutput cfloop ... cfhttp ... script language=javascript document.getElementById(completed).width = #completed#; document.getElementById(remaining).width = #remaining#; document.getElementById(statustext).innerHTML = #percentage# complete; /script cfflush /cfloop I believe there's also a commercial custom tag in the devex that creates a progress bar using xml ... I'm not too familiar with the specifics tho... Isaac Dealey www.turnkey.to 954-776-0046 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
OT Restore DB In SQL7
I have a back up of a db in SQL 7 that I need to restore on my live server. When I do the transfer and then try to open up a table I get an error that says Query designer encountered as query error. Can anyone please tell me the proper steps to get this db up and running. TIA DDINC __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
WAY Way OT: Typist Bold Font
Hopefully somebody out there can help. Prior to my existence here, we had a design firm build some templates and they used Typist Bold as one of their fonts I have been able to find every other font except this one Does anyone know where I can get this font from??? Please help KP -Original Message- From: Brockman, Chuck [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:18 AM To: CF-Community Subject: College Savings I don't know if anybody knows about this, but for those of you with kids, it seems to be a pretty good deal. http://www.upromise.com/ A percentage of you credit/debit card charges are put away for college. __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: IIS Problem - HELP!
IIS Version - 5 Win2k box - The images appears broken. I can't give you a url because it's a protected internal server of the clients. Thanks! - Paul -Original Message- From: Christopher Olive [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 21, 2002 11:18 AM To: CF-Talk Subject: RE: IIS Problem - HELP! What version of IIS? Do they get an error, or is the image just broken? What's the URL? chris olive -Original Message- From: Paul Begovich [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 5:13 PM To: CF-Talk Subject: OT: IIS Problem - HELP! Calling all of the IIS geniuses on this list! I know this is a CF list, but I'm sure there are a few of you. :) I have a client whose server appears not to allow relative referencing from the root - Example: /images/SomePic.gif In order for them to reference any images they have to use the relative dot notation from whichever directory they are in - Example ../../images/SomePic.gif Does anyone know how this may have been disabled in IIS? And if so, how to re-enable referencing from the root. THANKS!!! - Paul __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: WAY Way OT: Typist Bold Font
ask the design firm for it -Original Message- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 11:23 AM To: CF-Talk Subject: WAY Way OT: Typist Bold Font Hopefully somebody out there can help. Prior to my existence here, we had a design firm build some templates and they used Typist Bold as one of their fonts I have been able to find every other font except this one Does anyone know where I can get this font from??? Please help KP -Original Message- From: Brockman, Chuck [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:18 AM To: CF-Community Subject: College Savings I don't know if anybody knows about this, but for those of you with kids, it seems to be a pretty good deal. http://www.upromise.com/ A percentage of you credit/debit card charges are put away for college. __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Looping thru recordset
I think I already know the answer to this but is there a way of determining the position in a recordset of a particular value without having to loop thru it.? I have a recordset stored in an application variable which I want to query (CF 5) to find the pos of this record. I then want to get everything else after it in the recordset. I think the answer to this is I can't without looping thru all recs but I appear to have left my SQL hat at home today so I'm hoping one of you may prove me wrong :) With a query of a query I think you would have to manually add an index column, i.e. cfscript myarray = arraynew(1); for (x = 1; x lte myquery.recordcount; x++) { myarray[x] = x; } QueryAddColumn(myquery,index,myarray); /cfscript ( not sure off-hand about the quotes around myarray -- the cf studio help says arrayname rather than array for the third argument ) but at this point you would be able to use WHERE index = #startrow# in your query of query once you knew what row to start on Isaac Dealey www.turnkey.to 954-776-0046 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: IIS Problem - HELP!
take a look at the page. do a view source. look at the SRC of the IMG tag. is it actually correct? -Original Message- From: Paul Begovich [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 12:25 PM To: CF-Talk Subject: RE: IIS Problem - HELP! IIS Version - 5 Win2k box - The images appears broken. I can't give you a url because it's a protected internal server of the clients. Thanks! - Paul -Original Message- From: Christopher Olive [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 21, 2002 11:18 AM To: CF-Talk Subject: RE: IIS Problem - HELP! What version of IIS? Do they get an error, or is the image just broken? What's the URL? chris olive -Original Message- From: Paul Begovich [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 5:13 PM To: CF-Talk Subject: OT: IIS Problem - HELP! Calling all of the IIS geniuses on this list! I know this is a CF list, but I'm sure there are a few of you. :) I have a client whose server appears not to allow relative referencing from the root - Example: /images/SomePic.gif In order for them to reference any images they have to use the relative dot notation from whichever directory they are in - Example ../../images/SomePic.gif Does anyone know how this may have been disabled in IIS? And if so, how to re-enable referencing from the root. THANKS!!! - Paul __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: WAY Way OT: Typist Bold Font
Ohh... I failed to mention they are no longer around... -Original Message- From: Justin Hansen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 12:29 PM To: CF-Talk Subject: RE: WAY Way OT: Typist Bold Font ask the design firm for it -Original Message- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 11:23 AM To: CF-Talk Subject: WAY Way OT: Typist Bold Font Hopefully somebody out there can help. Prior to my existence here, we had a design firm build some templates and they used Typist Bold as one of their fonts I have been able to find every other font except this one Does anyone know where I can get this font from??? Please help KP -Original Message- From: Brockman, Chuck [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:18 AM To: CF-Community Subject: College Savings I don't know if anybody knows about this, but for those of you with kids, it seems to be a pretty good deal. http://www.upromise.com/ A percentage of you credit/debit card charges are put away for college. __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Looping thru recordset
Here's a possible CF solution: CFSET TargetValue = value you are looking for here CFSET StartRow = ListFind(ArrayToList(MyQuery[MyField]),TargetValue) CFOUTPUT QUERY=MyQuery STARTROW=#StartRow# BR#MyField# /CFOUTPUT Chris Lofback Sr. Web Developer TRX Integration 28051 US 19 N., Ste. C Clearwater, FL 33761 www.trxi.com -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 12:18 PM To: CF-Talk Subject: Looping thru recordset I think I already know the answer to this but is there a way of determining the position in a recordset of a particular value without having to loop thru it.? I have a recordset stored in an application variable which I want to query (CF 5) to find the pos of this record. I then want to get everything else after it in the recordset. I think the answer to this is I can't without looping thru all recs but I appear to have left my SQL hat at home today so I'm hoping one of you may prove me wrong :) -- Andy Ewings Director Thoughtbubble Ltd http://www.thoughtbubble.net -- United Kingdom http://www.thoughtbubble.net Tel: +44 (0) 20 7387 8890 -- New Zealand http://www.thoughtbubble.co.nz/ Tel: +64 (0) 9 419 4235 -- The information in this email and in any attachments is confidential and intended solely for the attention and use of the named addressee(s). Any views or opinions presented are solely those of the author and do not necessarily represent those of Thoughtbubble. This information may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to disclose, copy, distribute, or retain this message. Please notify us on +44 (0)207 387 8890. __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Elaborate plan...
This is off the top of my head (so keep in mind that I could be guessing on some items) Main Page: script language=javascript setInterval(GetProgress, 1000) //run the GetProgress function every second function GetProgres() { document.all.MyIFrameName.src = myactionpage.cfm; } /script iframe id=MyIFrameName name=MyIFrameName height=0 width=0/iframe img src=1x1pixel.gif width=1 height=10 id=MyProgressBar ACTION PAGE: .. Server side processing .. script language=javascript var MyBar = parent.document.all.MyProgressBar; MyBar.width = MyBar.width + 1; /script Now, that said, you should check out Raymond Camden's article on using CFFLUSH to create a progress bar. You can find it on the Macromedia site somewhere (I know, not particularly helpful, but the best I can do right this moment). I've used the above routines for some VERY complex processing, and updated the parent page, without ever having to do a page refresh. It's a fair bit more work, but the end results are very slick. And don't forget that you can use server side processing (a'la Cold Fusion) to build the necessary javascript, or parts of the javascript - i.e. cfoutputalert(#MyMessage#);/cfoutput. HTH Shawn Grover -Original Message- From: Neil H. [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:10 AM To: CF-Talk Subject: Re: Elaborate plan... Thanks.. You don't happen to know an example of this anywhere do you? Neil - Original Message - From: Shawn Grover [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, July 22, 2002 11:58 AM Subject: RE: Elaborate plan... You're going to hear references to Metatag refresh, and HTTP Header refresh options. Judging from your statements, I think these would not be the best solution. If you are dealing with IE only, you can use IFRAMES (in Netscape, I think the equivalent is a Layer). In Javascript on the main form, you can set a timer that calls a function (setTimeout()) - if your function sets the location of the IFRAME, the page loaded there can do whatever processing you need, then update the parent page through javascript - including changing the page itself. I've found this to be a much cleaner solution than refreshing whole pages - the user doesn't see the page getting reloaded, but DOES see the results of the reload, which would be the data being updated. My thoughts Not yours... Shawn Grover -Original Message- From: Neil H. [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 9:38 AM To: CF-Talk Subject: Elaborate plan... I have an application I am working on... I want each portion of the code to send an HTTP request to a page and respond back to my page, however I want the calling page to refresh. I really want some sort of a status maybe a % complete, but how do I get the page to constantly refresh. Any ideas and or examples people have seen would be great. Sorry I couldn't be anymore vague :) I can see it in my head but not put it in writing... Thanks, Neil __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Looping thru recordset
ah yes - I'll try this and see how performance is effected. Currently we are using this: cfloop query=application.queryname cfif fieldvaue = client.variable cfset whereami = currentrow cfset start = whereami cfbreak /cfif /cfloop cfoutput query=APPLICATION.gettable startrow=#start#. . . . . which can get pretty inefficient as the size of the rec set builds -Original Message- From: Chris Lofback [mailto:[EMAIL PROTECTED]] Sent: 22 July 2002 17:29 To: CF-Talk Subject: RE: Looping thru recordset Here's a possible CF solution: CFSET TargetValue = value you are looking for here CFSET StartRow = ListFind(ArrayToList(MyQuery[MyField]),TargetValue) CFOUTPUT QUERY=MyQuery STARTROW=#StartRow# BR#MyField# /CFOUTPUT Chris Lofback Sr. Web Developer TRX Integration 28051 US 19 N., Ste. C Clearwater, FL 33761 www.trxi.com -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 12:18 PM To: CF-Talk Subject: Looping thru recordset I think I already know the answer to this but is there a way of determining the position in a recordset of a particular value without having to loop thru it.? I have a recordset stored in an application variable which I want to query (CF 5) to find the pos of this record. I then want to get everything else after it in the recordset. I think the answer to this is I can't without looping thru all recs but I appear to have left my SQL hat at home today so I'm hoping one of you may prove me wrong :) -- Andy Ewings Director Thoughtbubble Ltd http://www.thoughtbubble.net -- United Kingdom http://www.thoughtbubble.net Tel: +44 (0) 20 7387 8890 -- New Zealand http://www.thoughtbubble.co.nz/ Tel: +64 (0) 9 419 4235 -- The information in this email and in any attachments is confidential and intended solely for the attention and use of the named addressee(s). Any views or opinions presented are solely those of the author and do not necessarily represent those of Thoughtbubble. This information may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to disclose, copy, distribute, or retain this message. Please notify us on +44 (0)207 387 8890. __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
I'd like to chime into this thread on the side of client variables. I've pretty much abandoned session vars in favor of client vars and - where needed - using wddx to fake a structure if I need it. It works marvelously. The kicker was when I found Hal Helms' tutorial on this. Using in part a tag that's been sitting in the devex for quite some time, it shows a way to build an inactivity-based expiration setup. I adapted it to my own needs with only minor mods. http://halhelms.com/index.cfm?fuseaction=tutorials.detail --Matt Robertson-- MSB Designs, Inc. http://mysecretbase.com -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 5:54 AM To: CF-Talk Subject: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have been building CF sites for a while now and I am always finding myself creating/deleting and checking for session variables or changing them into request variables. It always seems to me that there must be a better way in which to use them. A way that lets me create them easily, delete them, keep track of them with out have to write tons of code and does not add loads of time to the running of my applications.. Does anyone know of or have any tips on how I can easily handle the management of session variables. Thanks Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: HTTP 500 - Internal Server Error (URGENT)
I've heard the explanation before on this list, but frankly I don't recall it. ;D Just parroting back the advice I got and have seen elsewhere. I, too had a server that worked just fine with everything set to Medium. Then after a reinstall I got 500's everywhere, and learned of the need for Low. Never did figure out how it worked for me on Medium. --Matt Robertson-- MSB Designs, Inc. http://mysecretbase.com -Original Message- From: Douglas Brown [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 21, 2002 10:51 PM To: CF-Talk Subject: Re: HTTP 500 - Internal Server Error (URGENT) Why would that happen? All sites on my server are set to (pooled) and all work fine. Douglas Brown Email: [EMAIL PROTECTED] - Original Message - From: JAIME HOI [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, July 21, 2002 10:36 PM Subject: RE: HTTP 500 - Internal Server Error (URGENT) thank you s much!! it works like magic! But why is that so , if u dun mind explaining -Original Message- From: Matt Robertson [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 12:12 PM To: CF-Talk Subject: RE: HTTP 500 - Internal Server Error (URGENT) Go into IIS Manager. Click the Home Directory tab for the affected web site. The Application Protection setting should be at Low (IIS Process). Leaving it at the default of Medium (Pooled) will give you a 500 error. --Matt Robertson-- MSB Designs, Inc. http://mysecretbase.com -Original Message- From: JAIME HOI [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 21, 2002 6:31 PM To: CF-Talk Subject: HTTP 500 - Internal Server Error (URGENT) Hi I am using the Windows 2000 Professional on my workstation. However my coldfusion files cannot be displayed. And i dun think the problem lies with Coldfusion server as i get this error code HTTP 500- Internal Server Error. Does anyone knows how i can resolve this error? Thanks! __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Studio 5 download
Thanks. I had gotten it personally from someone and was able to get a little work done. I'm going to suggest this to Judith as a best of talk thread as it is important information. Either that or have it as a side article in FA and a link in the resources on HoF. ftp://ftp.allaire.com/outgoing/eval/ColdFusion Studio 5 Trial Installer.exe Hope it helps... Joachim -- http://www.developer.be/ - Original Message - From: Michael Dinowitz [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, July 21, 2002 7:14 AM Subject: Studio 5 download I'm at my mother in laws and want to do some work. I need a copy of studio 5 and can't find one on the MM site. Does anyone know where I can find the eval edition of it? Thanks p.s. Spam really sucks and I'm banning certain IPs from the entire mail server for sending spam and trying to grab the list addresses. They screwed up the server Saturday with their attempts. No more mail for them. __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Populating a form with query results
I have a basic HTML form in a CF document, and I need to be able to populate some of the fields on the form with the results of a database query. I can't seem to find anywhere that explains how to go about doing this. Could somebody point me in the right direction? Thanks in advance. /* || Robert D. Yexley || Oracle Programmer/Analyst || Easylink Services Corporation || Professional Services || Contractor - Wright Research Site MIS || Det-1 AFRL/WSI Bldg. 45 Rm. 062 || (937) 255-1984 || [EMAIL PROTECTED] || ))) */ Robert D. Yexley (E-mail).vcf __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: SMTP Authentication w/CFMAIL tag?
I'm not sure about CFMX but CF5.0 and earlier do not support SMTP auth. If you can, try to get your postmaster to assign the IP address of your CF server to an allowed list of IPs so that you don't have to authenticate. If that doesn't work, and you are running Windows, then you may want to look at iMS-SE which allows you to send mail without an external email server and, if you still want to use the other mail server, it supports SMTP auth as well. HTH, -- Howie Hamlin - inFusion Project Manager On-Line Data Solutions, Inc. - www.CoolFusion.com - 631-737-4668 x101 inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server Find out how iMS Stacks up to the competition: http://www.coolfusion.com/imssecomparison.cfm - Original Message - From: Ben Doom [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, July 22, 2002 11:34 AM Subject: RE: SMTP Authentication w/CFMAIL tag? If you supply the username and password in the cfmail tag, it should support SMTP authentication. I don't know offhand if this supports encrypted logins or just plaintext. --Ben Doom Programmer General Lackey Moonbow Software : -Original Message- : From: Bosky, Dave [mailto:[EMAIL PROTECTED]] : Sent: Monday, July 22, 2002 11:08 AM : To: CF-Talk : Subject: SMTP Authentication w/CFMAIL tag? : : : Our network admin told me I need to add smtp authentication in my cf email : application. Currently users simply login with their pop server info : (server,user,pwd) to retrieve and send mail. : : How can I add SMTP authentication using the cfmail tag? : : Thanks, : Dave : __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Populating a form with query results
use the form attribute value=#query.colname# will add the value to the field. If you are using the cfinput value you will not need to wrap the call with the cfoutput if you are using just input do not forget to use the cfoutput tags. matt -Original Message- From: Yexley Robert D Contr Det 1 AFRL/WSI [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 12:50 PM To: CF-Talk Subject: Populating a form with query results I have a basic HTML form in a CF document, and I need to be able to populate some of the fields on the form with the results of a database query. I can't seem to find anywhere that explains how to go about doing this. Could somebody point me in the right direction? Thanks in advance. /* || Robert D. Yexley || Oracle Programmer/Analyst || Easylink Services Corporation || Professional Services || Contractor - Wright Research Site MIS || Det-1 AFRL/WSI Bldg. 45 Rm. 062 || (937) 255-1984 || [EMAIL PROTECTED] || ))) */ Robert D. Yexley (E-mail).vcf __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Populating a form with query results
I generally do something like this: cfquery name=foo select bar from table /cfquery cfoutput input name=newfoo type=text value=#foo.bar# /cfoutput Hope that helps. Maybe my brain is in gear on this one. :-) --Ben Doom Programmer General Lackey Moonbow Software : -Original Message- : From: Yexley Robert D Contr Det 1 AFRL/WSI : [mailto:[EMAIL PROTECTED]] : Sent: Monday, July 22, 2002 12:50 PM : To: CF-Talk : Subject: Populating a form with query results : : : I have a basic HTML form in a CF document, and I need to be able : to populate some of the fields on the form with the results of a : database query. I can't seem to find anywhere that explains how : to go about doing this. Could somebody point me in the right : direction? Thanks in advance. : : /* : || Robert D. Yexley : || Oracle Programmer/Analyst : || Easylink Services Corporation : || Professional Services : || Contractor - Wright Research Site MIS : || Det-1 AFRL/WSI Bldg. 45 Rm. 062 : || (937) 255-1984 : || [EMAIL PROTECTED] : || ))) : */ : : Robert D. Yexley (E-mail).vcf : : __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Populating a form with query results
www.google.com On Mon, 22 Jul 2002, Yexley Robert D Contr Det 1 AFRL/WSI wrote: I have a basic HTML form in a CF document, and I need to be able to populate some of the fields on the form with the results of a database query. I can't seem to find anywhere that explains how to go about doing this. Could somebody point me in the right direction? Thanks in advance. /* || Robert D. Yexley || Oracle Programmer/Analyst || Easylink Services Corporation || Professional Services || Contractor - Wright Research Site MIS || Det-1 AFRL/WSI Bldg. 45 Rm. 062 || (937) 255-1984 || [EMAIL PROTECTED] || ))) */ Robert D. Yexley (E-mail).vcf __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Populating a form with query results
One other thing is you should do isDefined and provide a blank or default if it is not. Otherwise you get errors if the query returns a null for that field. -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:05 AM To: CF-Talk Subject: RE: Populating a form with query results I generally do something like this: cfquery name=foo select bar from table /cfquery cfoutput input name=newfoo type=text value=#foo.bar# /cfoutput Hope that helps. Maybe my brain is in gear on this one. :-) --Ben Doom Programmer General Lackey Moonbow Software : -Original Message- : From: Yexley Robert D Contr Det 1 AFRL/WSI : [mailto:[EMAIL PROTECTED]] : Sent: Monday, July 22, 2002 12:50 PM : To: CF-Talk : Subject: Populating a form with query results : : : I have a basic HTML form in a CF document, and I need to be able : to populate some of the fields on the form with the results of a : database query. I can't seem to find anywhere that explains how : to go about doing this. Could somebody point me in the right : direction? Thanks in advance. : : /* : || Robert D. Yexley : || Oracle Programmer/Analyst : || Easylink Services Corporation : || Professional Services : || Contractor - Wright Research Site MIS : || Det-1 AFRL/WSI Bldg. 45 Rm. 062 : || (937) 255-1984 : || [EMAIL PROTECTED] : || ))) : */ : : Robert D. Yexley (E-mail).vcf : : __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
Talking about mulit-page forms... I don't use session or client variables at all when doing multi-page forms. I simply pass the form structure on to the next page in hidden form fields. That way, if somebody chooses to go -Back, then the variables are there in the preceding page code, not the memory. The problems with going through any particular page more than once in a session does not apply to this situatioun either. I don't have to worry about session or client persistance or wacky form paths. The form variables just get passed on page to page until the end of the form is reached, then the are committed to the database (or whatever) all at once. - Matt Small -Original Message- From: Cornillon, Matthieu [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:36 AM To: CF-Talk Subject: RE: Finding a good Session management system. Stephen, I am not going to comment on the client vs. session variable issue that everyone else is talking about. I am awfully ignorant about client variables, and I am learning from those other messages as they come. I can, however, offer some advice on the approach to a multi-page form with session variables. I just (last night) released a multi-page registration system for a web site. When I started, I thought, I'll just put the variables from each form submission into a session variable, which I will store until the end of the process, at which point everything will be submitted at once. OK. That made sense, but with locking and keeping track of things and needing to let the user go back and forth and edit data, things got miserable from a variable management standpoint. Halfway through, although I kept the basic concept the same, I made a change which greatly simplified my life. Here's the idea: the biggest heartaches came in testing for a variable's existence, providing for all possible cases of its value, and the locking issues. So, I eliminated all of them. I created a page called registration_init.cfm that set to default values all of the session variables that I would be using throughout the registration process. At the top of each page, I have one CFLOCK block that pulls all of the relevant session variables for the form into local variables. Each page then pre-populates its form fields with those local variables, regardless of their value; if they are blank, fine, and if they have data from the session variables, fine. This allows you to go back and forth between forms very easily. I also set up my pages in a (probably inefficient) funny way. The flow is like this: registration_init.cfm registration1.cfm registration1_action.cfm registration2cfm registration2_action.cfm etc. Each action page validates all of the data and goes to the appropriate page: forward if everything is okay, and back if it's not. If it goes back, it also passes error values which appear on the page to let the user know what they did wrong and how to fix it. I can't remember right now if this flow setup tied into the session variable management issue, but just so you have some more ideas, I thought I'd throw it in. Anyhow, the main thing is that by pre-defining all the variables that I was going to use, I removed the need to check their values on each page. Of course, it's essentially doing the same thing, but by doing it in a centralized way was a lot easier. Hope this rambling is helpful, Matthieu -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 9:30 AM To: CF-Talk Subject: RE: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Well, the application I am building at the moment uses a series of forms to gather information from the user and then on the final page runs a query based on what has been selected in these forms. So I am storing some of the user's choices in session variables so that they can be passed can be used in the query on the last page. This is quiet a small application. My next one is going to be a large intranet with a lot of personalisation. Oh I love web-rat.com by the way, great site. Stephen -- From: [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]] Sent: 22 July 2002 14:10 To: CF-Talk Subject: RE: Finding a good Session management system. That was a pretty vague and not very helpful answer John. Stephen, what all are you storing in session variables? Could you describe your application a little more? I've always tried to make sure that I'm using session variables as little as possible anymore. I've moved majority of my session variables into client variables (storage in db). None the less, there's still a variable management issue that you have to get your fingers wrapped around. Perhaps you're storing too much
RE: Finding a good Session management system.
I took the same approach before CFMX. I've now moved back to session variables with CFMX's ability to replicate session data across a cluster...less headache in dealing with stored complex structures. (not like it was a HUGE deal using WDDX but is still extra processing) Let's hope I don't live to regret it and have some session issues emerge! -Original Message- From: Matt Robertson [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 12:45 PM To: CF-Talk Subject: RE: Finding a good Session management system. I'd like to chime into this thread on the side of client variables. I've pretty much abandoned session vars in favor of client vars and - where needed - using wddx to fake a structure if I need it. It works marvelously. The kicker was when I found Hal Helms' tutorial on this. Using in part a tag that's been sitting in the devex for quite some time, it shows a way to build an inactivity-based expiration setup. I adapted it to my own needs with only minor mods. http://halhelms.com/index.cfm?fuseaction=tutorials.detail --Matt Robertson-- MSB Designs, Inc. http://mysecretbase.com -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 5:54 AM To: CF-Talk Subject: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I have been building CF sites for a while now and I am always finding myself creating/deleting and checking for session variables or changing them into request variables. It always seems to me that there must be a better way in which to use them. A way that lets me create them easily, delete them, keep track of them with out have to write tons of code and does not add loads of time to the running of my applications.. Does anyone know of or have any tips on how I can easily handle the management of session variables. Thanks Stephen ** Westminster City Council switchboard: +44 20 7641 6000 ** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ** __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: IIS Problem - HELP!
right. are the client's directory structures the same on both machines? i'm looking for something like this... dev box: http://clienturl points to / / - has all root files /images - has all appropriate images staging - http://clienturl points to / /clientname - has all root files /clientname/images - has image files. c -Original Message- From: Paul Begovich [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 12:50 PM To: CF-Talk Subject: RE: IIS Problem - HELP! Yes, the source of the image tag is correct. Everything works fine on our development enviroment for referencing from the root (ie /images/something.gif), however on their staging server it does not. It only works if it is referenced either ../images/something.gif or images/something.gif. It's not a matter of the code, it's a matter of the server settings to get it to accept the / reference for root. - Paul -Original Message- From: Christopher Olive [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 12:31 PM To: CF-Talk Subject: RE: IIS Problem - HELP! take a look at the page. do a view source. look at the SRC of the IMG tag. is it actually correct? __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Finding a good Session management system.
Damn. This is a good idea. I wish I had known about it before I built this massive session-based system. :) Oh, well. I'll know for next time. Matthieu -Original Message- From: Matthew R. Small [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:18 PM To: CF-Talk Subject: RE: Finding a good Session management system. Talking about mulit-page forms... I don't use session or client variables at all when doing multi-page forms. I simply pass the form structure on to the next page in hidden form fields. That way, if somebody chooses to go -Back, then the variables are there in the preceding page code, not the memory. The problems with going through any particular page more than once in a session does not apply to this situatioun either. I don't have to worry about session or client persistance or wacky form paths. The form variables just get passed on page to page until the end of the form is reached, then the are committed to the database (or whatever) all at once. - Matt Small -Original Message- From: Cornillon, Matthieu [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:36 AM To: CF-Talk Subject: RE: Finding a good Session management system. Stephen, I am not going to comment on the client vs. session variable issue that everyone else is talking about. I am awfully ignorant about client variables, and I am learning from those other messages as they come. I can, however, offer some advice on the approach to a multi-page form with session variables. I just (last night) released a multi-page registration system for a web site. When I started, I thought, I'll just put the variables from each form submission into a session variable, which I will store until the end of the process, at which point everything will be submitted at once. OK. That made sense, but with locking and keeping track of things and needing to let the user go back and forth and edit data, things got miserable from a variable management standpoint. Halfway through, although I kept the basic concept the same, I made a change which greatly simplified my life. Here's the idea: the biggest heartaches came in testing for a variable's existence, providing for all possible cases of its value, and the locking issues. So, I eliminated all of them. I created a page called registration_init.cfm that set to default values all of the session variables that I would be using throughout the registration process. At the top of each page, I have one CFLOCK block that pulls all of the relevant session variables for the form into local variables. Each page then pre-populates its form fields with those local variables, regardless of their value; if they are blank, fine, and if they have data from the session variables, fine. This allows you to go back and forth between forms very easily. I also set up my pages in a (probably inefficient) funny way. The flow is like this: registration_init.cfm registration1.cfm registration1_action.cfm registration2cfm registration2_action.cfm etc. Each action page validates all of the data and goes to the appropriate page: forward if everything is okay, and back if it's not. If it goes back, it also passes error values which appear on the page to let the user know what they did wrong and how to fix it. I can't remember right now if this flow setup tied into the session variable management issue, but just so you have some more ideas, I thought I'd throw it in. Anyhow, the main thing is that by pre-defining all the variables that I was going to use, I removed the need to check their values on each page. Of course, it's essentially doing the same thing, but by doing it in a centralized way was a lot easier. Hope this rambling is helpful, Matthieu -Original Message- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 9:30 AM To: CF-Talk Subject: RE: Finding a good Session management system. ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Well, the application I am building at the moment uses a series of forms to gather information from the user and then on the final page runs a query based on what has been selected in these forms. So I am storing some of the user's choices in session variables so that they can be passed can be used in the query on the last page. This is quiet a small application. My next one is going to be a large intranet with a lot of personalisation. Oh I love web-rat.com by the way, great site. Stephen -- From: [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]] Sent: 22 July 2002 14:10 To: CF-Talk Subject: RE: Finding a good Session management system. That was a pretty vague and not very helpful answer John. Stephen, what all are you storing in session variables? Could you describe your application
cfexecute problems
Tried doing this, but there are no output or errors. I've been able to run the command with a PHP script. cfexecute name=/usr/local/ImageMagick/bin/convert arguments=image1.jpg -sharpen 1x2 -geometry '300x300+0+0' output1.jpg /cfexecute img src=output1.jpg Any thoughts? __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
List Down?
is the List down? Joe __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: OT Restore DB In SQL7
Checkout http://www.sqlmag.com instantdoc id number 9808 by Michael D. Reilly Double Down [EMAIL PROTECTED] wrote in message news:01c2319b$d3387660$0100a8c0@ipk... I have a back up of a db in SQL 7 that I need to restore on my live server. When I do the transfer and then try to open up a table I get an error that says Query designer encountered as query error. Can anyone please tell me the proper steps to get this db up and running. TIA DDINC __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: WAY Way OT: Typist Bold Font
After a search on Google (http://www.google.com/search?q=Typist+Fonthl=enlr=ie=UTF-8oe=UTF-8) (the supreme ruler of all that is known, second only to Dave Watts ...) I found this link for you in about 60 seconds: http://www.mohaa-ss.freeserve.co.uk/TYPIST.zip Hope that helps ... Erika ** disclaimer ** P.S. Please be aware there are licensing restrictions on most fonts, especially those created by Adobe, and in order to use a font, one must first purchase it from the company who created it ... Unless of course it was freeware. I have no idea who created Typist ... And I have already used up daily my allocated help time in answering this so far! grin j/k | -Original Message- | From: Kris Pilles [mailto:[EMAIL PROTECTED]] | | Ohh... I failed to mention they are no longer around... | | -Original Message- | From: Justin Hansen [mailto:[EMAIL PROTECTED]] | Sent: Monday, July 22, 2002 12:29 PM | To: CF-Talk | Subject: RE: WAY Way OT: Typist Bold Font | | | ask the design firm for it | | -Original Message- | From: Kris Pilles [mailto:[EMAIL PROTECTED]] | Sent: Monday, July 22, 2002 11:23 AM | To: CF-Talk | Subject: WAY Way OT: Typist Bold Font | | | Hopefully somebody out there can help. | | Prior to my existence here, we had a design firm build some | templates and they used Typist Bold as one of their | fonts I have been able to find every other font except | this one | | Does anyone know where I can get this font from??? | | Please help | | KP | | -Original Message- | From: Brockman, Chuck [mailto:[EMAIL PROTECTED]] | Sent: Monday, July 22, 2002 10:18 AM | To: CF-Community | Subject: College Savings | | | I don't know if anybody knows about this, but for those of | you with kids, it seems to be a pretty good deal. | http://www.upromise.com/ A percentage of you credit/debit card charges are put away for college. __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: WAY Way OT: Typist Bold Font
THANKS~! -Original Message- From: Erika L. Walker [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:28 PM To: CF-Talk Subject: RE: WAY Way OT: Typist Bold Font After a search on Google (http://www.google.com/search?q=Typist+Fonthl=enlr=ie=UTF-8oe=UTF-8) (the supreme ruler of all that is known, second only to Dave Watts ...) I found this link for you in about 60 seconds: http://www.mohaa-ss.freeserve.co.uk/TYPIST.zip Hope that helps ... Erika ** disclaimer ** P.S. Please be aware there are licensing restrictions on most fonts, especially those created by Adobe, and in order to use a font, one must first purchase it from the company who created it ... Unless of course it was freeware. I have no idea who created Typist ... And I have already used up daily my allocated help time in answering this so far! grin j/k | -Original Message- | From: Kris Pilles [mailto:[EMAIL PROTECTED]] | | Ohh... I failed to mention they are no longer around... | | -Original Message- | From: Justin Hansen [mailto:[EMAIL PROTECTED]] | Sent: Monday, July 22, 2002 12:29 PM | To: CF-Talk | Subject: RE: WAY Way OT: Typist Bold Font | | | ask the design firm for it | | -Original Message- | From: Kris Pilles [mailto:[EMAIL PROTECTED]] | Sent: Monday, July 22, 2002 11:23 AM | To: CF-Talk | Subject: WAY Way OT: Typist Bold Font | | | Hopefully somebody out there can help. | | Prior to my existence here, we had a design firm build some | templates and they used Typist Bold as one of their | fonts I have been able to find every other font except | this one | | Does anyone know where I can get this font from??? | | Please help | | KP | | -Original Message- | From: Brockman, Chuck [mailto:[EMAIL PROTECTED]] | Sent: Monday, July 22, 2002 10:18 AM | To: CF-Community | Subject: College Savings | | | I don't know if anybody knows about this, but for those of | you with kids, it seems to be a pretty good deal. | http://www.upromise.com/ A percentage of you credit/debit card charges are put away for college. __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Explorer password saving feature
Hello. Internet Explorer, when certain settings are set and a user enters a username and password in a form, asks the user: Do you want windows to remember this password, so that you don't have to type it again the next time you visit this page? I know how to disable this on my own computer. Here's the question: is there a way to programatically disable it for a given password field? In other words, can I somehow code the page, the field, the form, or whatever so that when my page, signin.cfm, is submitted, IE doesn't prompt the user or save the password? Thanks, Matthieu __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: IIS Problem - HELP!
Hmm... I think I know where your going - What if their staging IS completely different than their live - and when they are testing, it's on a stripped down version of IIS that supports only one site, with subdirectories, and their testing on that subdirectory. / would be usesless in referencing. Good thought! I'll get back to you with the answer, hopefully that is the issue. Thanks! Paul -Original Message- From: Christopher Olive [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:15 PM To: CF-Talk Subject: RE: IIS Problem - HELP! right. are the client's directory structures the same on both machines? i'm looking for something like this... dev box: http://clienturl points to / / - has all root files /images - has all appropriate images staging - http://clienturl points to / /clientname - has all root files /clientname/images - has image files. c -Original Message- From: Paul Begovich [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 12:50 PM To: CF-Talk Subject: RE: IIS Problem - HELP! Yes, the source of the image tag is correct. Everything works fine on our development enviroment for referencing from the root (ie /images/something.gif), however on their staging server it does not. It only works if it is referenced either ../images/something.gif or images/something.gif. It's not a matter of the code, it's a matter of the server settings to get it to accept the / reference for root. - Paul -Original Message- From: Christopher Olive [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 12:31 PM To: CF-Talk Subject: RE: IIS Problem - HELP! take a look at the page. do a view source. look at the SRC of the IMG tag. is it actually correct? __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
tracking payments
Hi all, It's Monday, caffeine intake is low and I am having a brainfreeze. I need to keep track of payments made by the client (amount and date), as well as the commissions paid to the sales reps. The reps get paid each time a client makes a payment; ie if the client pays 1000 of his 2000 balance the rep gets a percent of the 1000 not the 2000. That being said, I am on a SQL 2K DB. I thought about having a couple of columns like: Total Cost Invoice Date Invoice Amount Balance Commissions However, I don't want to overwrite the existing data (as this is going to be available for tracking and allowing the reps to print out an intemized view). I am having trouble of thinking about the best way to do this. I don't want to put in a ton of colums (in case they are not used but likewist don't want to put too few). Anyone got any ideas? Thanks! T __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
SoEditor Pro
Hello, We are just about to purchase the SoEditor pro wysiwyg editor form www.siteobjects.com. Before we make the purchase, I thought it would be a good idea to check with this list and solicit some feedback from anyone who has used these components. Any comments? FYI, We are building an email delivery system, possibly with the Soeditor component and with the excellent IMS (www.coolfusion.com) Products. Brook Davies maracasmedia inc. __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: SoEditor Pro
I use the lite version for my cfug site and another intranet ap. Works great - no complaints. It is IE specific though - so it's not so hot for a general public site. -mk -Original Message- From: Brook Davies [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:23 PM To: CF-Talk Subject: SoEditor Pro Hello, We are just about to purchase the SoEditor pro wysiwyg editor form www.siteobjects.com. Before we make the purchase, I thought it would be a good idea to check with this list and solicit some feedback from anyone who has used these components. Any comments? FYI, We are building an email delivery system, possibly with the Soeditor component and with the excellent IMS (www.coolfusion.com) Products. Brook Davies maracasmedia inc. __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists