|
Mailing Lists
|
Home /
Groups /
cf-opensource
More CFHTTP fun
Had this working then changed it to a custom tag.... Changed it back and itMark Stephenson - Evolution Internet 08/09/02 08:04 A Mark,Robert Baker 08/09/02 08:12 A Like i say... I had this thing working fine... Changed the params toMark Stephenson - Evolution Internet 08/09/02 08:20 A Hello, I don't know if this email will circulate like I am hoping, but IKhoi Le 08/10/02 04:10 P try this!!!!Mark Stephenson - Evolution Internet 08/10/02 08:34 P bugger.... wont allow me to attatch a file!!!!Mark Stephenson - Evolution Internet 08/10/02 08:40 P what version is your coldfusion?Harold Alcala' 08/11/02 08:46 P Mark,stevanus 08/09/02 09:42 A Mark,stevanus 08/09/02 09:52 A Got this working fine as a custom tag with only FindNoCase added instead ofRichard Salter 08/11/02 02:12 A Had this working then changed it to a custom tag.... Changed it back and it stopped working..... Any ideas <!--- Set Default Values ---> <cfparam name="Amount" default="1000"> <cfparam name="from" default="GBP"> <cfparam name="to" default="USD"> <cfparam name="font" default="Verdana"> <!--- Grab Conversion ---> <cfhttp url="http://www.forexe.com/cgi-bin/currencyconvertor.asp" method="post" resolveurl="false"> <cfhttpparam type="FORMFIELD" name="Amount" value="#Amount#"> <cfhttpparam type="FORMFIELD" name="ccy2" value="#To#"> <cfhttpparam type="FORMFIELD" name="ccy1" value="#From#"> </cfhttp> <!---Parse the info---> <cfset Start=Find('RESULTS',CFHTTP.FileContent,1) + 7> <cfset End=Find('<small>',CFHTTP.FileContent,Start)> <cfset Length=end-start> <cfset TranslatedText=Mid(CFHTTP.FileContent,Start,Length)> <cfset TranslatedText ="#replace(variables.TranslatedText, "<br>", "" , "ALL" )#"> <cfset TranslatedText ="#replace(variables.TranslatedText, "Arial", "#font#" , "ALL" )#"> <!---Display the info---> <cfoutput> #TranslatedText# </cfoutput> Thanks, Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. First thoughts are that you could use the CFHTTP command to post a postcode entered onto your site to the BTOpenWorld site and then parse the returned information for the yes or no that would be returned... HTH [mailto:info@evolutioninternet.co.uk] Sent: Tuesday, July 23, 2002 14:05 To: CF_OpenSource Subject: RE: BT ECHANGE CHECKER Dear ALL, I am based in the UK so propably there are only brits know what I am going on about... If you are not a brit and can help anyway PLEASE do so!!! btopenworld.com have an online tool for visitors to enter their postcode and see if their local exchange has been enabled for ADSL. I am wanting to have the ability to do this from my site.... Any ideas if there is a tool out there or any ideas if there is a way to use cf to grab the YES or NO. Kind Regards, Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Yes, I would like to be part of the group, shares information as well. I am a CF user for about 2 years. Can I jsut reply to the email sent from cf_opensource for collaborations? :) Thanks. Fong, My mail was with reference to a mail sent with the subject "CFMAIL: html vs. text mime type failover", which i supplied code for (originated by Bryant P. Fields). The idea of the mailing list is to use it and its members as a resource and if necessary help with opensource collaborations. To mail to every one on the list just email cf_opensource@houseoffusion.com . You must have joined the list at some point? Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Dear Sir, Mind if I ask what is this reagarding? How can I benefit/respond to this CF_Opensource thingy? Thanks. Fong [mailto:info@evolutioninternet.co.uk] Sent: Tuesday, July 23, 2002 6:25 PM To: CF_OpenSource Subject: RE: CFMAIL: html vs. text mime type failover Did this work for you??? Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Does anyone know how to send a CFMAIL message that distinguishes between HTML and Text only email clients? Thanks. __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com Archives: http://www.mail-archive.com/cf_opensource@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists Mark, Have you tried using "FindNoCase" instead of just "Find"? >>> Rob Baker <<< Webcentric Applications Developer [mailto:info@evolutioninternet.co.uk] Sent: Friday, August 09, 2002 7:42 AM To: CF_OpenSource Subject: RE: More CFHTTP fun Had this working then changed it to a custom tag.... Changed it back and it stopped working..... Any ideas <!--- Set Default Values ---> <cfparam name="Amount" default="1000"> <cfparam name="from" default="GBP"> <cfparam name="to" default="USD"> <cfparam name="font" default="Verdana"> <!--- Grab Conversion ---> <cfhttp url="http://www.forexe.com/cgi-bin/currencyconvertor.asp" method="post" resolveurl="false"> <cfhttpparam type="FORMFIELD" name="Amount" value="#Amount#"> <cfhttpparam type="FORMFIELD" name="ccy2" value="#To#"> <cfhttpparam type="FORMFIELD" name="ccy1" value="#From#"> </cfhttp> <!---Parse the info---> <cfset Start=Find('RESULTS',CFHTTP.FileContent,1) + 7> <cfset End=Find('<small>',CFHTTP.FileContent,Start)> <cfset Length=end-start> <cfset TranslatedText=Mid(CFHTTP.FileContent,Start,Length)> <cfset TranslatedText ="#replace(variables.TranslatedText, "<br>", "" , "ALL" )#"> <cfset TranslatedText ="#replace(variables.TranslatedText, "Arial", "#font#" , "ALL" )#"> <!---Display the info---> <cfoutput> #TranslatedText# </cfoutput> Thanks, Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. First thoughts are that you could use the CFHTTP command to post a postcode entered onto your site to the BTOpenWorld site and then parse the returned information for the yes or no that would be returned... HTH [mailto:info@evolutioninternet.co.uk] Sent: Tuesday, July 23, 2002 14:05 To: CF_OpenSource Subject: RE: BT ECHANGE CHECKER Dear ALL, I am based in the UK so propably there are only brits know what I am going on about... If you are not a brit and can help anyway PLEASE do so!!! btopenworld.com have an online tool for visitors to enter their postcode and see if their local exchange has been enabled for ADSL. I am wanting to have the ability to do this from my site.... Any ideas if there is a tool out there or any ideas if there is a way to use cf to grab the YES or NO. Kind Regards, Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Yes, I would like to be part of the group, shares information as well. I am a CF user for about 2 years. Can I jsut reply to the email sent from cf_opensource for collaborations? :) Thanks. Fong, My mail was with reference to a mail sent with the subject "CFMAIL: html vs. text mime type failover", which i supplied code for (originated by Bryant P. Fields). The idea of the mailing list is to use it and its members as a resource and if necessary help with opensource collaborations. To mail to every one on the list just email cf_opensource@houseoffusion.com . You must have joined the list at some point? Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Dear Sir, Mind if I ask what is this reagarding? How can I benefit/respond to this CF_Opensource thingy? Thanks. Fong [mailto:info@evolutioninternet.co.uk] Sent: Tuesday, July 23, 2002 6:25 PM To: CF_OpenSource Subject: RE: CFMAIL: html vs. text mime type failover Did this work for you??? Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Does anyone know how to send a CFMAIL message that distinguishes between HTML and Text only email clients? Thanks. __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com Archives: http://www.mail-archive.com/cf_opensource@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists Like i say... I had this thing working fine... Changed the params to attribute.var's put it in the custom tag folder and invoked it!!! Didnt work... So i changed it back... Think i must have just missed something... Looks like it is just not connecting... Yet if i pull up the post page it is still active.... Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Mark, Have you tried using "FindNoCase" instead of just "Find"? >>> Rob Baker <<< Webcentric Applications Developer [mailto:info@evolutioninternet.co.uk] Sent: Friday, August 09, 2002 7:42 AM To: CF_OpenSource Subject: RE: More CFHTTP fun Had this working then changed it to a custom tag.... Changed it back and it stopped working..... Any ideas <!--- Set Default Values ---> <cfparam name="Amount" default="1000"> <cfparam name="from" default="GBP"> <cfparam name="to" default="USD"> <cfparam name="font" default="Verdana"> <!--- Grab Conversion ---> <cfhttp url="http://www.forexe.com/cgi-bin/currencyconvertor.asp" method="post" resolveurl="false"> <cfhttpparam type="FORMFIELD" name="Amount" value="#Amount#"> <cfhttpparam type="FORMFIELD" name="ccy2" value="#To#"> <cfhttpparam type="FORMFIELD" name="ccy1" value="#From#"> </cfhttp> <!---Parse the info---> <cfset Start=Find('RESULTS',CFHTTP.FileContent,1) + 7> <cfset End=Find('<small>',CFHTTP.FileContent,Start)> <cfset Length=end-start> <cfset TranslatedText=Mid(CFHTTP.FileContent,Start,Length)> <cfset TranslatedText ="#replace(variables.TranslatedText, "<br>", "" , "ALL" )#"> <cfset TranslatedText ="#replace(variables.TranslatedText, "Arial", "#font#" , "ALL" )#"> <!---Display the info---> <cfoutput> #TranslatedText# </cfoutput> Thanks, Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. First thoughts are that you could use the CFHTTP command to post a postcode entered onto your site to the BTOpenWorld site and then parse the returned information for the yes or no that would be returned... HTH [mailto:info@evolutioninternet.co.uk] Sent: Tuesday, July 23, 2002 14:05 To: CF_OpenSource Subject: RE: BT ECHANGE CHECKER Dear ALL, I am based in the UK so propably there are only brits know what I am going on about... If you are not a brit and can help anyway PLEASE do so!!! btopenworld.com have an online tool for visitors to enter their postcode and see if their local exchange has been enabled for ADSL. I am wanting to have the ability to do this from my site.... Any ideas if there is a tool out there or any ideas if there is a way to use cf to grab the YES or NO. Kind Regards, Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Yes, I would like to be part of the group, shares information as well. I am a CF user for about 2 years. Can I jsut reply to the email sent from cf_opensource for collaborations? :) Thanks. Fong, My mail was with reference to a mail sent with the subject "CFMAIL: html vs. text mime type failover", which i supplied code for (originated by Bryant P. Fields). The idea of the mailing list is to use it and its members as a resource and if necessary help with opensource collaborations. To mail to every one on the list just email cf_opensource@houseoffusion.com . You must have joined the list at some point? Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Dear Sir, Mind if I ask what is this reagarding? How can I benefit/respond to this CF_Opensource thingy? Thanks. Fong [mailto:info@evolutioninternet.co.uk] Sent: Tuesday, July 23, 2002 6:25 PM To: CF_OpenSource Subject: RE: CFMAIL: html vs. text mime type failover Did this work for you??? Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Does anyone know how to send a CFMAIL message that distinguishes between HTML and Text only email clients? Thanks. __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com Archives: http://www.mail-archive.com/cf_opensource@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists Hello, I don't know if this email will circulate like I am hoping, but I am trying to figure out how to pass javascript variables to cold fusion. Particularly, I am trying to detect resolution in CF, and so far I don't know of any tags to perform that function. This is the code I have thus far, but it does not work because I am trying to pass the variables to Flash. Here it is: ======================================================================== ==== <!--- Resolution Detection ---> <script language="JavaScript1.2"> document.write("&ResolutionWidth="+screen.width+"&ResolutionHeight="+scr een.height+"&") </script> <!--- Client System Detection ---> <cfset ClientSystem = #HTTP_USER_AGENT#> <cfoutput>&ClientSystem=#ClientSystem#& </cfoutput> <!--- Determine Browser ---> <cfset Netscape = findnocase("Netscape",ClientSystem, 1)> <cfoutput>&Netscape=#Netscape#& </cfoutput> <cfset Opera = findnocase("Opera",ClientSystem, 1)> <cfoutput>&Opera=#Opera#& </cfoutput> <cfset MSIE = findnocase("MSIE",ClientSystem, 1)> <cfoutput>&MSIE=#MSIE#& </cfoutput> <cfoutput></cfoutput> <cfoutput> &EOF=1& </cfoutput> ======================================================================== == Flash takes variables in the form of &VARIABLENAME=VALUE&. I put extra "&" signs for redundancy. Anyways, the file returns the literal javascript code without the variables. I need to pass the variables to CF somehow and then cfoutput it in the variable form indicated above. Either that or find another way to export the variables. I have also tried to do a screen detection to redirect to a CF page already with set variable values, however the javascript fails to execute because Flash takes the output of The page itself and uses any values it finds as variables. If anyone has any idea, please send them to me. I am using Flash MX and know that there is a ScreenDetection function, but it doesn't want to work. Thanks in advance. Khoi Le khoi@goeyelevel.com try this!!!! Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Hello, I don't know if this email will circulate like I am hoping, but I am trying to figure out how to pass javascript variables to cold fusion. Particularly, I am trying to detect resolution in CF, and so far I don't know of any tags to perform that function. This is the code I have thus far, but it does not work because I am trying to pass the variables to Flash. Here it is: ======================================================================== ==== <!--- Resolution Detection ---> <script language="JavaScript1.2"> document.write("&ResolutionWidth="+screen.width+"&ResolutionHeight="+scr een.height+"&") </script> <!--- Client System Detection ---> <cfset ClientSystem = #HTTP_USER_AGENT#> <cfoutput>&ClientSystem=#ClientSystem#& </cfoutput> <!--- Determine Browser ---> <cfset Netscape = findnocase("Netscape",ClientSystem, 1)> <cfoutput>&Netscape=#Netscape#& </cfoutput> <cfset Opera = findnocase("Opera",ClientSystem, 1)> <cfoutput>&Opera=#Opera#& </cfoutput> <cfset MSIE = findnocase("MSIE",ClientSystem, 1)> <cfoutput>&MSIE=#MSIE#& </cfoutput> <cfoutput></cfoutput> <cfoutput> &EOF=1& </cfoutput> ======================================================================== == Flash takes variables in the form of &VARIABLENAME=VALUE&. I put extra "&" signs for redundancy. Anyways, the file returns the literal javascript code without the variables. I need to pass the variables to CF somehow and then cfoutput it in the variable form indicated above. Either that or find another way to export the variables. I have also tried to do a screen detection to redirect to a CF page already with set variable values, however the javascript fails to execute because Flash takes the output of The page itself and uses any values it finds as variables. If anyone has any idea, please send them to me. I am using Flash MX and know that there is a ScreenDetection function, but it doesn't want to work. Thanks in advance. Khoi Le khoi@goeyelevel.com bugger.... wont allow me to attatch a file!!!! I will un encode it then send it... Late now.... Will do it tommorow Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. [mailto:info@evolutioninternet.co.uk] Sent: 11 August 2002 01:13 To: CF_OpenSource Subject: RE: More CFHTTP fun try this!!!! Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Hello, I don't know if this email will circulate like I am hoping, but I am trying to figure out how to pass javascript variables to cold fusion. Particularly, I am trying to detect resolution in CF, and so far I don't know of any tags to perform that function. This is the code I have thus far, but it does not work because I am trying to pass the variables to Flash. Here it is: ======================================================================== ==== <!--- Resolution Detection ---> <script language="JavaScript1.2"> document.write("&ResolutionWidth="+screen.width+"&ResolutionHeight="+scr een.height+"&") </script> <!--- Client System Detection ---> <cfset ClientSystem = #HTTP_USER_AGENT#> <cfoutput>&ClientSystem=#ClientSystem#& </cfoutput> <!--- Determine Browser ---> <cfset Netscape = findnocase("Netscape",ClientSystem, 1)> <cfoutput>&Netscape=#Netscape#& </cfoutput> <cfset Opera = findnocase("Opera",ClientSystem, 1)> <cfoutput>&Opera=#Opera#& </cfoutput> <cfset MSIE = findnocase("MSIE",ClientSystem, 1)> <cfoutput>&MSIE=#MSIE#& </cfoutput> <cfoutput></cfoutput> <cfoutput> &EOF=1& </cfoutput> ======================================================================== == Flash takes variables in the form of &VARIABLENAME=VALUE&. I put extra "&" signs for redundancy. Anyways, the file returns the literal javascript code without the variables. I need to pass the variables to CF somehow and then cfoutput it in the variable form indicated above. Either that or find another way to export the variables. I have also tried to do a screen detection to redirect to a CF page already with set variable values, however the javascript fails to execute because Flash takes the output of The page itself and uses any values it finds as variables. If anyone has any idea, please send them to me. I am using Flash MX and know that there is a ScreenDetection function, but it doesn't want to work. Thanks in advance. Khoi Le khoi@goeyelevel.com what version is your coldfusion? > Like i say... I had this thing working fine... Changed the params to > attribute.var's put it in the custom tag folder and invoked it!!! Didnt > work... So i changed it back... Think i must have just missed something... ----- Excess quoted text cut - see Original Post for more ----- strictly ----- Excess quoted text cut - see Original Post for more ----- it ----- Excess quoted text cut - see Original Post for more ----- strictly ----- Excess quoted text cut - see Original Post for more ----- postcode ----- Excess quoted text cut - see Original Post for more ----- and ----- Excess quoted text cut - see Original Post for more ----- strictly ----- Excess quoted text cut - see Original Post for more ----- am > a CF user for about 2 years. > > Can I jsut reply to the email sent from cf_opensource for collaborations? :) > > Thanks. > > > Fong, > > My mail was with reference to a mail sent with the subject "CFMAIL: html vs. > text mime type failover", which i supplied code for (originated by Bryant P. > Fields). > > The idea of the mailing list is to use it and its members as a resource and > if necessary help with opensource collaborations. To mail to every one on ----- Excess quoted text cut - see Original Post for more ----- strictly ----- Excess quoted text cut - see Original Post for more ----- strictly ----- Excess quoted text cut - see Original Post for more ----- Mark, Looks lilke you're missing a double-quote after the url. It should not have compiled or run without that quote. I put it in and ran it, it works for me. If your original code has the quote, then your server cannot connect to that server. You may want to go to the server and attempt to browse the page. A second pair of eyes is what you needed. Matt Matthew Stevanus Dynamic Web Advisors, Inc. 586-530-2860 matt@dynamicwebadvisors.com -=-=-=-=- Original Message: Had this working then changed it to a custom tag.... Changed it back and it stopped working..... Any ideas <!--- Set Default Values ---> <cfparam name="Amount" default="1000"> <cfparam name="from" default="GBP"> <cfparam name="to" default="USD"> <cfparam name="font" default="Verdana"> <!--- Grab Conversion ---> <cfhttp url="http://www.forexe.com/cgi-bin/currencyconvertor.asp" method="post" resolveurl="false"> <cfhttpparam type="FORMFIELD" name="Amount" value="#Amount#"> <cfhttpparam type="FORMFIELD" name="ccy2" value="#To#"> <cfhttpparam type="FORMFIELD" name="ccy1" value="#From#"> </cfhttp> <!---Parse the info---> <cfset Start=Find('RESULTS',CFHTTP.FileContent,1) + 7> <cfset End=Find('<small>',CFHTTP.FileContent,Start)> <cfset Length=end-start> <cfset TranslatedText=Mid(CFHTTP.FileContent,Start,Length)> <cfset TranslatedText ="#replace(variables.TranslatedText, "<br>", "" , "ALL" )#"> <cfset TranslatedText ="#replace(variables.TranslatedText, "Arial", "#font#" , "ALL" )#"> <!---Display the info---> <cfoutput> #TranslatedText# </cfoutput> Thanks, Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. First thoughts are that you could use the CFHTTP command to post a postcode entered onto your site to the BTOpenWorld site and then parse the returned information for the yes or no that would be returned... HTH [mailto:info@evolutioninternet.co.uk] Sent: Tuesday, July 23, 2002 14:05 To: CF_OpenSource Subject: RE: BT ECHANGE CHECKER Dear ALL, I am based in the UK so propably there are only brits know what I am going on about... If you are not a brit and can help anyway PLEASE do so!!! btopenworld.com have an online tool for visitors to enter their postcode and see if their local exchange has been enabled for ADSL. I am wanting to have the ability to do this from my site.... Any ideas if there is a tool out there or any ideas if there is a way to use cf to grab the YES or NO. Kind Regards, Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Yes, I would like to be part of the group, shares information as well. I am a CF user for about 2 years. Can I jsut reply to the email sent from cf_opensource for collaborations? :) Thanks. Fong, My mail was with reference to a mail sent with the subject "CFMAIL: html vs. text mime type failover", which i supplied code for (originated by Bryant P. Fields). The idea of the mailing list is to use it and its members as a resource and if necessary help with opensource collaborations. To mail to every one on the list just email cf_opensource@houseoffusion.com . You must have joined the list at some point? Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Dear Sir, Mind if I ask what is this reagarding? How can I benefit/respond to this CF_Opensource thingy? Thanks. Fong [mailto:info@evolutioninternet.co.uk] Sent: Tuesday, July 23, 2002 6:25 PM To: CF_OpenSource Subject: RE: CFMAIL: html vs. text mime type failover Did this work for you??? Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Does anyone know how to send a CFMAIL message that distinguishes between HTML and Text only email clients? Thanks. __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com Archives: http://www.mail-archive.com/cf_opensource@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists Mark, There's a double-quote missing from the url in the cfhttp. I tried it on my server (ColdFusion 4.5.2) and it would not even compile. After adding the double-quote in, it worked fine. You may want to go to the server that is running CF, login as the ColdFusion user, and try connecting with a browser from there. It may be an issue at your server, not with your code. Matt Matthew Stevanus Dynamic Web Advisors, Inc. 586-530-2860 matt@dynamicwebadvisors.com -=-=-=-=-=-=- Original Message: Like i say... I had this thing working fine... Changed the params to attribute.var's put it in the custom tag folder and invoked it!!! Didnt work... So i changed it back... Think i must have just missed something... Looks like it is just not connecting... Yet if i pull up the post page it is still active.... Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Mark, Have you tried using "FindNoCase" instead of just "Find"? >>> Rob Baker <<< Webcentric Applications Developer [mailto:info@evolutioninternet.co.uk] Sent: Friday, August 09, 2002 7:42 AM To: CF_OpenSource Subject: RE: More CFHTTP fun Had this working then changed it to a custom tag.... Changed it back and it stopped working..... Any ideas <!--- Set Default Values ---> <cfparam name="Amount" default="1000"> <cfparam name="from" default="GBP"> <cfparam name="to" default="USD"> <cfparam name="font" default="Verdana"> <!--- Grab Conversion ---> <cfhttp url="http://www.forexe.com/cgi-bin/currencyconvertor.asp" method="post" resolveurl="false"> <cfhttpparam type="FORMFIELD" name="Amount" value="#Amount#"> <cfhttpparam type="FORMFIELD" name="ccy2" value="#To#"> <cfhttpparam type="FORMFIELD" name="ccy1" value="#From#"> </cfhttp> <!---Parse the info---> <cfset Start=Find('RESULTS',CFHTTP.FileContent,1) + 7> <cfset End=Find('<small>',CFHTTP.FileContent,Start)> <cfset Length=end-start> <cfset TranslatedText=Mid(CFHTTP.FileContent,Start,Length)> <cfset TranslatedText ="#replace(variables.TranslatedText, "<br>", "" , "ALL" )#"> <cfset TranslatedText ="#replace(variables.TranslatedText, "Arial", "#font#" , "ALL" )#"> <!---Display the info---> <cfoutput> #TranslatedText# </cfoutput> Thanks, Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. First thoughts are that you could use the CFHTTP command to post a postcode entered onto your site to the BTOpenWorld site and then parse the returned information for the yes or no that would be returned... HTH [mailto:info@evolutioninternet.co.uk] Sent: Tuesday, July 23, 2002 14:05 To: CF_OpenSource Subject: RE: BT ECHANGE CHECKER Dear ALL, I am based in the UK so propably there are only brits know what I am going on about... If you are not a brit and can help anyway PLEASE do so!!! btopenworld.com have an online tool for visitors to enter their postcode and see if their local exchange has been enabled for ADSL. I am wanting to have the ability to do this from my site.... Any ideas if there is a tool out there or any ideas if there is a way to use cf to grab the YES or NO. Kind Regards, Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Yes, I would like to be part of the group, shares information as well. I am a CF user for about 2 years. Can I jsut reply to the email sent from cf_opensource for collaborations? :) Thanks. Fong, My mail was with reference to a mail sent with the subject "CFMAIL: html vs. text mime type failover", which i supplied code for (originated by Bryant P. Fields). The idea of the mailing list is to use it and its members as a resource and if necessary help with opensource collaborations. To mail to every one on the list just email cf_opensource@houseoffusion.com . You must have joined the list at some point? Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Dear Sir, Mind if I ask what is this reagarding? How can I benefit/respond to this CF_Opensource thingy? Thanks. Fong [mailto:info@evolutioninternet.co.uk] Sent: Tuesday, July 23, 2002 6:25 PM To: CF_OpenSource Subject: RE: CFMAIL: html vs. text mime type failover Did this work for you??? Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: info@evolutioninternet.co.uk This email, together with any attachments, is for the exclusive and confidential use of the addressee(s). Any other distribution, use or reproduction without the sender's prior consent is unauthorised and strictly prohibited. If you have received this message in error, please notify the sender by email immediately and delete the message from your computer without making any copies. Does anyone know how to send a CFMAIL message that distinguishes between HTML and Text only email clients? Thanks. __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com Archives: http://www.mail-archive.com/cf_opensource@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists Got this working fine as a custom tag with only FindNoCase added instead of find. Also coded it into a page as is and works fine don't know what your problem is. Custom tag doesn't even need to be in the calling page directory like some to work. Richard > Had this working then changed it to a custom tag.... Changed it back and it ----- Excess quoted text cut - see Original Post for more ----- "#font#" ----- Excess quoted text cut - see Original Post for more ----- strictly ----- Excess quoted text cut - see Original Post for more -----
|
May 23, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||