Re: Passing query value via a javascript to next form
Sorry I copied it incorrectly buut still does not work. location.href=Mis012F3.cfm?dblib=#dblib#Corp=+'#trim(Corp_Cust_Code)#'; I think your missing a quote and a #. Change location.href=Mis012F3.cfm?dblib=#dblibCorp=+'#trim(Corp_Cust_Code)#'; to location.href='Mis012F3.cfm?dblib=#dblibCorp#='+'#trim(Corp_Cust_Code)#'; but it still doesn't make sense why the + is in there. Regards Dale Fraser http://learncf.com Hi, I need help passing the value through to the next form via javascript it does not like the value =+'#trim(Corp_Cust_Code)#'; cfoutput query=get_info tr onclick=onCust(); td #cust# /td /tr /cfoutput script language=javascript function onCust() { location.href=Mis012F3.cfm?dblib=#dblibCorp=+'#trim(Corp_Cust_Code)#'; } /script Please any help, Regards ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290151 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Passing query value via a javascript to next form
I think your missing a quote and a #. Change location.href=Mis012F3.cfm?dblib=#dblibCorp=+'#trim(Corp_Cust_Code)#'; to location.href='Mis012F3.cfm?dblib=#dblibCorp#='+'#trim(Corp_Cust_Code)#'; but it still doesn't make sense why the + is in there. Regards Dale Fraser http://learncf.com -Original Message- From: ismail cassiem [mailto:[EMAIL PROTECTED] Sent: Thursday, 4 October 2007 9:01 PM To: CF-Talk Subject: Passing query value via a javascript to next form Hi, I need help passing the value through to the next form via javascript it does not like the value =+'#trim(Corp_Cust_Code)#'; cfoutput query=get_info tr onclick=onCust(); td #cust# /td /tr /cfoutput script language=javascript function onCust() { location.href=Mis012F3.cfm?dblib=#dblibCorp=+'#trim(Corp_Cust_Code)#'; } /script Please any help, Regards ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290149 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Passing query value via a javascript to next form
You are still missing a ' after the href= Regards Dale Fraser http://learncf.com -Original Message- From: ismail cassiem [mailto:[EMAIL PROTECTED] Sent: Thursday, 4 October 2007 9:36 PM To: CF-Talk Subject: Re: Passing query value via a javascript to next form Sorry I copied it incorrectly buut still does not work. location.href=Mis012F3.cfm?dblib=#dblib#Corp=+'#trim(Corp_Cust_Code)#'; I think your missing a quote and a #. Change location.href=Mis012F3.cfm?dblib=#dblibCorp=+'#trim(Corp_Cust_Code)#'; to location.href='Mis012F3.cfm?dblib=#dblibCorp#='+'#trim(Corp_Cust_Code)#'; but it still doesn't make sense why the + is in there. Regards Dale Fraser http://learncf.com Hi, I need help passing the value through to the next form via javascript it does not like the value =+'#trim(Corp_Cust_Code)#'; cfoutput query=get_info tr onclick=onCust(); td #cust# /td /tr /cfoutput script language=javascript function onCust() { location.href=Mis012F3.cfm?dblib=#dblibCorp=+'#trim(Corp_Cust_Code)#'; } /script Please any help, Regards ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290154 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Passing query value via a javascript to next form
Thank You for Your Assistance, I got it going. onclick=onCust('#trim(Corp_Cust_Code)#'); function onCust(cust) { location.href=Mis012F3.cfm?dblib=#dblib#Corp=+cust; } Thank You You are still missing a ' after the href= Regards Dale Fraser http://learncf.com Sorry I copied it incorrectly buut still does not work. location.href=Mis012F3.cfm?dblib=#dblib#Corp=+'#trim(Corp_Cust_Code)#'; location.href=Mis012F3.cfm?dblib=#dblibCorp=+'#trim(Corp_Cust_Code)#'; } /script Please any help, Regards ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290156 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Passing query value via a javascript to next form
I don't know what is in your variable but #justStringFormat()# is a big headache saver when you are not sure either. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: ismail cassiem [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 7:01 AM To: CF-Talk Subject: Passing query value via a javascript to next form Hi, I need help passing the value through to the next form via javascript it does not like the value =+'#trim(Corp_Cust_Code)#'; cfoutput query=get_info tr onclick=onCust(); td #cust# /td /tr /cfoutput script language=javascript function onCust() { location.href=Mis012F3.cfm?dblib=#dblibCorp=+'#trim(Corp_Cust_Code)#'; } /script Please any help, Regards ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290159 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: passing year value into cfswitch
Are you sure qGetTimes.etc., contains a legitimate date?? Try DatePart(,CreateDate(qGetTimes.cert_issue_date)) - Original Message - From: Tim [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, May 13, 2001 11:38 AM Subject: passing year value into cfswitch The code below works, except for one thing...passing the year value via DatePart. If I remove that, and put a year, like 1999 or 2000, the whole cfswitch works and does what it is supposed to. But it won't read the date from DatePart, it goes to the cfdefaultcase. I also tried YEAR(qGetTimes.cert_issue_date), but that did not work either. cfset Year99Total = 0 cfset Year00Total = 0 cfset Year01Total = 0 cfloop query=qGetTimes cfswitch expression = DatePart(, qGetTimes.cert_issue_date) cfcase value = 1999 cfset Year99Total = Year99Total + #qGetTimes.time_to_refer# /cfcase cfcase value=2000 cfset Year00Total = Year00Total + #qGetTimes.time_to_refer# /cfcase cfcase value=2001 cfset Year01Total = Year01Total + #qGetTimes.time_to_refer# /cfcase cfdefaultcase cfoutputNo work done/cfoutput cfabort /cfdefaultcase /cfswitch /cfloop cfset Year99Avg = Year99Total / 12 cfset Year00Avg = Year00Total / 12 cfset Year01Avg = Year01Total / Month(Now()) Any ideas on how to pass the year values into the cfswitch? Is there an easier way I should be doing this? ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Passing a value
looks like you're not terminating the string on the last meta tag. meta http-equiv="refresh" content="0;URL=http://www.workcover.com/search/?ul=ps=10np=0q=#URL.SemioQ ueryString#" notice the closing " on the content piece. chris olive, cio cresco technologies [EMAIL PROTECTED] http://www.crescotech.com -Original Message- From: Parker, Kevin [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 7:03 PM To: CF-Talk Subject: Passing a value Can anyone help me with this please and tell me why I am not getting the output I want. I am passing a value on the URL. If my input is say "rise" what I am getting from this template is "rise head body bgcolor text" instead of just "rise". I have considered CFLOCATION but the problem is that when I get this working I need to put some frame busting code in and I understand that there is a problem mixing JavaScript and CFLOCATION. html head titleSEMIO Redirect/title meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" cfoutput meta http-equiv="refresh" content="0;URL=http://www.workcover.com/search/?ul=ps=10np=0q=#URL.SemioQ ueryString# /cfoutput /head body bgcolor="#FF" text="#00" + Kevin Parker Web Services Manager WorkCover Corporation [EMAIL PROTECTED] www.workcover.com p: +61 8 82332548 f: +61 8 82332000 m: 0418 800 287 + This e-mail is intended for the use of the addressee only. It may contain information that is protected by legislated confidentiality and/or is legally privileged. If you are not the intended recipient you are prohibited from disseminating, distributing or copying this e-mail. Any opinion expressed in this e-mail may not necessarily be that of the WorkCover Corporation of South Australia. Although precautions have been taken, the sender cannot warrant that this e-mail or any files transmitted with it are free of viruses or any other defect. If you have received this e-mail in error, please notify the sender immediately by return e-mail and destroy the original e-mail and any copies. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Passing a value
TA!! I found the problem a few minutes and re-posted to the board. Thanks for replying. + Kevin Parker Web Services Manager WorkCover Corporation [EMAIL PROTECTED] www.workcover.com p: +61 8 82332548 f: +61 8 82332000 m: 0418 800 287 + -Original Message- From: Christopher Olive, CIO [mailto:[EMAIL PROTECTED]] Sent: Friday, 16 February 2001 1:28:PM To: CF-Talk Subject: RE: Passing a value looks like you're not terminating the string on the last meta tag. meta http-equiv="refresh" content="0;URL=http://www.workcover.com/search/?ul=ps=10np=0q=#URL.SemioQ ueryString#" notice the closing " on the content piece. chris olive, cio cresco technologies [EMAIL PROTECTED] http://www.crescotech.com -Original Message- From: Parker, Kevin [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 7:03 PM To: CF-Talk Subject: Passing a value Can anyone help me with this please and tell me why I am not getting the output I want. I am passing a value on the URL. If my input is say "rise" what I am getting from this template is "rise head body bgcolor text" instead of just "rise". I have considered CFLOCATION but the problem is that when I get this working I need to put some frame busting code in and I understand that there is a problem mixing JavaScript and CFLOCATION. html head titleSEMIO Redirect/title meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" cfoutput meta http-equiv="refresh" content="0;URL=http://www.workcover.com/search/?ul=ps=10np=0q=#URL.SemioQ ueryString# /cfoutput /head body bgcolor="#FF" text="#00" + Kevin Parker Web Services Manager WorkCover Corporation [EMAIL PROTECTED] www.workcover.com p: +61 8 82332548 f: +61 8 82332000 m: 0418 800 287 + This e-mail is intended for the use of the addressee only. It may contain information that is protected by legislated confidentiality and/or is legally privileged. If you are not the intended recipient you are prohibited from disseminating, distributing or copying this e-mail. Any opinion expressed in this e-mail may not necessarily be that of the WorkCover Corporation of South Australia. Although precautions have been taken, the sender cannot warrant that this e-mail or any files transmitted with it are free of viruses or any other defect. If you have received this e-mail in error, please notify the sender immediately by return e-mail and destroy the original e-mail and any copies. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Passing a value
Thanks to anyone that looked at this - I found the problem, a missing quotation mark! + Kevin Parker Web Services Manager WorkCover Corporation [EMAIL PROTECTED] www.workcover.com p: +61 8 82332548 f: +61 8 82332000 m: 0418 800 287 + -Original Message- From: Parker, Kevin [mailto:[EMAIL PROTECTED]] Sent: Friday, 16 February 2001 10:33:AM To: CF-Talk Subject: Passing a value Can anyone help me with this please and tell me why I am not getting the output I want. I am passing a value on the URL. If my input is say "rise" what I am getting from this template is "rise head body bgcolor text" instead of just "rise". I have considered CFLOCATION but the problem is that when I get this working I need to put some frame busting code in and I understand that there is a problem mixing JavaScript and CFLOCATION. html head titleSEMIO Redirect/title meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" cfoutput meta http-equiv="refresh" content="0;URL=http://www.workcover.com/search/?ul=ps=10np=0q=#URL.SemioQ ueryString# /cfoutput /head body bgcolor="#FF" text="#00" + Kevin Parker Web Services Manager WorkCover Corporation [EMAIL PROTECTED] www.workcover.com p: +61 8 82332548 f: +61 8 82332000 m: 0418 800 287 + This e-mail is intended for the use of the addressee only. It may contain information that is protected by legislated confidentiality and/or is legally privileged. If you are not the intended recipient you are prohibited from disseminating, distributing or copying this e-mail. Any opinion expressed in this e-mail may not necessarily be that of the WorkCover Corporation of South Australia. Although precautions have been taken, the sender cannot warrant that this e-mail or any files transmitted with it are free of viruses or any other defect. If you have received this e-mail in error, please notify the sender immediately by return e-mail and destroy the original e-mail and any copies. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists