Error message
Has anyone encountered this before... Error Occurred While Processing Request 10 = 10 Please try the following: Enable Robust Exception Information to provide greater detail about the source of errors. In the Administrator, click Debugging Logging Debugging Settings, and select the Robust Exception Information option. Check the ColdFusion documentation to verify that you are using the correct syntax. Search the Knowledge Base to find a solution to your problem. Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Remote Address 60.234.180.194 Referrer http://www.eggmaternity.co.nz/headoffice/index.cfm?action=newsletter Date/Time 27-Jun-06 06:52 PM All my page is doing is querying an SQL Server DB to show a list of elements. If I log out and login again, the page displays as per normal?? 10 = 10? There are no equations even on the page? mike ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244842 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Web services / parameter / headache
I think that error means there isn't a dummy wsdl service. Try: cfscript ws = CreateObject(webservice, http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php?wsdl;); NDFDgenResponse = ws.NDFDgenByDay(latitude=38.99,longitude=-77.99 ,format='24+hourly',startdate='2006-06-27',numDays=7); /cfscript cfdump var=#NDFDgenResponse# And see what that does. :D On 6/26/06, Matthew Chambers [EMAIL PROTECTED] wrote: This is crazy! Someone must have come across this problem before. I've simplified my question and used a much simplier method from the web service, here goes! ::: Here's my code ::: cfscript webservice = CreateObject(webservice,dummy?wsdl); webservice.doBuildQuoteForItinerary(123456,en_US,,1113); /cfscript ::: Here's the error ::: Could not perform web service invocation doBuildQuoteForItinerary. Here is the fault returned when invoking the web service operation:br preAxisFault faultCode: { http://schemas.xmlsoap.org/soap/envelope/}Server.userExceptionfaultSubcode: faultString: com.raileurope.web.ngserver.InternalErrorException: java.lang.NullPointerException faultActor: faultNode: faultDetail: { http://xml.apache.org/axis/}hostname:dummy /pre There must be something wrong with how I'm passing in the parameters. Is it the null string??!?!? Any help would be great! Hi Paul, Thanks for the tips. Unfortunately still no luck. I have investigated and messed around some more and I just can't figure this one out. If there are any web services experts out there please show yourself!!! Just to prove that the problem doesn't lie with the producer of the web service I've tried consuming a simple web service here's the code: --- cfscript ws = CreateObject(webservice,http://www.weather. gov/forecasts/xml/SOAP_server/ndfdXMLserver.php?wsdl); NDFDgenResponse = ws.NDFDgen(JavaCast('double',38.99), JavaCast('double',-77.99),JavaCast('string','time-series'), DateFormat('2004-01-01','mm/dd/ hh:ss'),DateFormat('2010-06-26', 'mm/dd/ hh:ss')); /cfscript cfdump var=#NDFDgenResponse# --- ANd here's the error: --- Web service operation NDFDgen with parameters {38.99,-77.99, time-series,01/01/2004 12:00,06/26/2010 12:00} could not be found. --- I'm certain that the problem here is how I'm passing in parameters. Weather it be a complex type or a date or whatever, I'm doing something wrong! Any ideas... anyone??!?!?!? Matthew Matthew Chambers wrote: String[] countriesCovered = null; Attribute[] attributes = null; it wants arrays of string Attribute. countriesCovered.France = JavaCast(string,FR); try making countriesCovered an array. countriesCovered=listToArray(FR); and maybe for good measure a java array: countriesCovered=countriesCovered. toArray(); ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244843 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Error message
On Tuesday 27 June 2006 08:02, Mike | NZSolutions Ltd wrote: Has anyone encountered this before... You'll kick yourself... Error Occurred While Processing Request 10 = 10 gte :-) -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244844 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
iTunes integration
Has anyone done any iTunes integration? I have the administrator's guide here and wondered what all it might involve. Thanks, Will ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244845 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Major cities around the world
On Monday 26 June 2006 22:24, Carlos A wrote: I'm looking for a service that will provide a database containing 200-300 countries Which planets that then ? There are only just under two hundred countries (http://www.un.org/Overview/unmember.html) :-) -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244846 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
getLocale() is always English
Is there a way of getting a localised version of the string returned by GetLocale()? i.e. kinda like LSGetLocale() which would return the Spanish for Spanish (Standard) if the locale had first been set to that. Thanks -- Aidan Whitehall ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244847 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: getLocale() is always English
cfdump var=#GetLocale()# cfset locale = SetLocale(Spanish (Standard)) cfdump var=#GetLocale()# -Original Message- From: Aidan Whitehall [mailto:[EMAIL PROTECTED] Sent: 27 June 2006 10:12 To: CF-Talk Subject: getLocale() is always English Is there a way of getting a localised version of the string returned by GetLocale()? i.e. kinda like LSGetLocale() which would return the Spanish for Spanish (Standard) if the locale had first been set to that. Thanks -- Aidan Whitehall ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244848 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Major cities around the world
I'm looking for a service that will provide a database containing 200-300 countries Which planets that then ? There are only just under two hundred countries (http://www.un.org/Overview/unmember.html) :-) That is a list of the 191 UN Member States, there are loads of countries on this planet who are not members of the UN. http://en.wikipedia.org/wiki/List_of_countries lists 243 countries and I am sure even they have missed a few. -- Jay -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.5/376 - Release Date: 26/06/2006 ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244849 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: getLocale() is always English
I think he wants GetLocale() to return Español (Estándar) Ade -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: 27 June 2006 10:16 To: CF-Talk Subject: RE: getLocale() is always English cfdump var=#GetLocale()# cfset locale = SetLocale(Spanish (Standard)) cfdump var=#GetLocale()# -Original Message- From: Aidan Whitehall [mailto:[EMAIL PROTECTED] Sent: 27 June 2006 10:12 To: CF-Talk Subject: getLocale() is always English Is there a way of getting a localised version of the string returned by GetLocale()? i.e. kinda like LSGetLocale() which would return the Spanish for Spanish (Standard) if the locale had first been set to that. Thanks -- Aidan Whitehall houseoffusion.com/tiny.cfm/54 ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244850 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: getLocale() is always English
Ah, then he is out of luck I believe http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functa80.htm -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: 27 June 2006 10:50 To: CF-Talk Subject: RE: getLocale() is always English I think he wants GetLocale() to return Español (Estándar) Ade -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: 27 June 2006 10:16 To: CF-Talk Subject: RE: getLocale() is always English cfdump var=#GetLocale()# cfset locale = SetLocale(Spanish (Standard)) cfdump var=#GetLocale()# -Original Message- From: Aidan Whitehall [mailto:[EMAIL PROTECTED] Sent: 27 June 2006 10:12 To: CF-Talk Subject: getLocale() is always English Is there a way of getting a localised version of the string returned by GetLocale()? i.e. kinda like LSGetLocale() which would return the Spanish for Spanish (Standard) if the locale had first been set to that. Thanks -- Aidan Whitehall houseoffusion.com/tiny.cfm/54 ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244851 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: cfthrow from onRequestStart / flashagteway
Thanks for that. I had hoped I could throw the exception back to Flash like it can be done from methods in other components :( I'm trying to make use of onError but I'm not sure it fits. How does this sound: I implemented onError, which now fires when I cfthrow from inside onRequestStart. In onError I can't detect anything about the error I threw because the error caught is the same Event Handler Exception. I can cfthrow from onError which will return an error to the Flash client, but I want to be able to throw specific errors like 'not logged in' (which is enforced in onRequestStart). -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED] Sent: Tuesday, 27 June 2006 2:22 AM To: CF-Talk Subject: Re: cfthrow from onRequestStart / flashagteway A CFThrow tosses an error up to the parent of a template. An application.cfc in some ways acts as the parent of the template but if you do a CFThrow inside of it when using a gateway, there's nowhere for the error to go other than the global error handler. Better to call the onError method within the application.cfc than use a CFThrow. Hi would anyone know why I cant use CFTHROW from within Application CFC onRequestStart()? I am calling a CFC from Flash via the flashgateway. If I cfthrow I get 06/26 23:07:37 Error [jrpp-3] - Event Handler Exception. in Coldfusion. Im stumped. Thanks. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.4/375 - Release Date: 25/06/2006 ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244852 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: getLocale() is always English
Ah, then he is out of luck I believe On our current version, yeah. However, I've just installed CFMX 7... and looks like they've introduced getLocaleDisplayName() to solve exactly that. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244853 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: getLocale() is always English
Nice... -Original Message- From: Aidan Whitehall [mailto:[EMAIL PROTECTED] Sent: 27 June 2006 12:03 To: CF-Talk Subject: Re: getLocale() is always English Ah, then he is out of luck I believe On our current version, yeah. However, I've just installed CFMX 7... and looks like they've introduced getLocaleDisplayName() to solve exactly that. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244854 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
3 select date rendering
Below is how i currently do date Selections, is there a cleaner way to do this? I've read that loops tend to slow things down, but this seemed the easiest thing to do at the time. cfif not isdefined(BIRTHDAY) cfset BIRTHDAY = now() /cfif labelDOB: /label !--- Month --- select name=DOBMonth id=DOBMonth option- -/option cfloop index = LoopCount from = 1 to = 12 cfoutput option value=#LoopCount# cfif isdefined(BIRTHDAY) AND LoopCount EQ DateFormat(BIRTHDAY, mm)selected=selected/cfif#LoopCount#/option /cfoutput /cfloop /select - !--- Day --- select name=DOBDay id=DOBDay option- -/option cfloop index = LoopCount from = 1 to = 31 cfoutput option value=#LoopCount# cfif isdefined(BIRTHDAY) AND LoopCount EQ DateFormat(BIRTHDAY, dd)selected=selected/cfif#LoopCount#/option /cfoutput /cfloop /select - !--- Year --- cfset oldyear = Year(now())-100 select name=DOByear id=DOByear option value=- - - -/option cfloop index = LoopCount from = #Year(now())# to = #oldyear# step=-1 cfoutput option value=#LoopCount# cfif isdefined(BIRTHDAY) AND LoopCount EQ DateFormat(BIRTHDAY, )selected=selected/cfif#LoopCount#/option /cfoutput /cfloop /select -- -- Richard Dillman [EMAIL PROTECTED] (317) 916-8341 IF-THEN-ELSE its a way of life! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244855 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: 3 select date rendering
On Tuesday 27 June 2006 12:51, Richard Dillman wrote: Below is how i currently do date Selections, is there a cleaner way to do this? I've read that loops tend to slow things down, but this seemed the easiest thing to do at the time. You could 'unroll' the loops if you wanted to, but it's only going to save milliseconds. Maybe you could look at one of the many date entry GUI components out there, and concentrate on making it look better instead. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244856 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: iTunes integration
Why would you want to integrate Itunes into ColdFusion? Bob ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244857 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: getLocale() is always English
Aidan Whitehall wrote: Is there a way of getting a localised version of the string returned by GetLocale()? it's showing that because you haven't changed the locale for that request. i.e. kinda like LSGetLocale() which would return the Spanish for Spanish (Standard) if the locale had first been set to that. pre cf7: cfscript locale=createObject(java,java.util.Locale).init(es,ES); localizedName=locale.getDisplayName(locale); writeoutput(#localizedName#); /cfscript pre-cf7, using core java buys you a LOT more locales. post-cf7 you get all the core java locales AND the nice java style locale id: es_ES instead of the goofy verbose Spanish (Standard) (bluedragon still uses that style) in cf. that said, icu4j gets you even more locales i18n functionality. further, a locale by locale comparison of core java (and hence cf) with the common locale data repository (CLDR) used by icu4j shows gobs gobs of bad locale data (mostly formatting) in core java. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244858 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Image processing
ImageCR3 has no limit and it has never crashed our server. I am in the printing industry and I use ImageCR exclusively for our web based image re-purposing needs. I have a web based image approval system for our photography studio that currently has more then 5000 2500px X 2500px master images in it (1.5gigs of images). For this application ImageCR has been used to generate all of the different resolutions off of these master images that I needed for the web app (stuff like thumbnail images, preview images etc.). The output folder for this web app that ImageCR3 uses to store the generated images contains more then 12000 images. It just works. A tool that I set and forget. -Original Message- From: Justin Hansen [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 2:35 PM To: CF-Talk Subject: RE: Image processing Luis, why you will going to change to the Alagad Image Component I'd like to switch to Alagad mostly due it's CFC'ness and the fact that it's all native java within cf. Also, the 500 image limitation we ran into w/ imagecr3. Other than that, I have no real reasons. I plan to do the prudent testing and research against both options the next time this topic comes up. Right now, I just don't have the time. ImageCR3 is very good. Pros: fast, flexible, reliable. Cons: 500 batch limit, if you give it the wrong combo of attributes you can take down cf :( but that's stuff you work out in the development phases of your projects. If you are still trying to decide, download the eval editions of both and run some tests on the exact functions you need to perform. I'd be interested in the results. Justin Hansen Project Manager Uhlig LLC -Original Message- From: Luis Rueda [mailto:[EMAIL PROTECTED] Sent: Sunday, June 25, 2006 3:56 PM To: CF-Talk Subject: Re: Image processing Hello Justin, i am interested in your experience, why you will going to change to the Alagad Image Component, at the time we will have the necessity to do some image manipulation and want to start with a good solution principally in terms of CPU usage and image manipulation speed, thanks for your comments. Luis Rueda Bizglo.com [EMAIL PROTECTED] ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244859 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: how to retrieve objectguid (LDAP) in a legible format
You are probably right, I should perhaps just live with the assumption tht samaccoutname is unique and user will be deleted adn addedback again as a new one. Thank you all for your time.. I really appreciate that. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244860 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Image Swap with JS/CF
Simplest way would be to load all of the images onto the page at once, then show the large version with javascript. No CF involved, other than to load the specific information about this product. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Rick King [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 8:36 PM To: CF-Talk Subject: Image Swap with JS/CF Anyone know of any methods to create an image swap feature similar to the following: http://www.designerexposure.com/product/19990/# I could probably figure something out with static images, but I'd like to do something similar with dynamic images (uploaded from a user for their particular product posting) Thanks Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244861 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Image processing
Amen, brother. CFX_ImageCR3 rocks, and it's rock-solid. Been using it for years on image processing-heavy sites with no problems. And the image quality at higher compressions beats anything else on the market. Highly recommend it. Respectfully, Adam Phillip Churvis Certified Advanced ColdFusion MX 7 Developer BlueDragon Alliance Founding Committee Get advanced intensive Master-level training in C# ASP.NET 2.0 for ColdFusion Developers at ProductivityEnhancement.com - Original Message - From: Chad Gray To: CF-Talk Sent: Tuesday, June 27, 2006 8:39 AM Subject: RE: Image processing ImageCR3 has no limit and it has never crashed our server. I am in the printing industry and I use ImageCR exclusively for our web based image re-purposing needs. I have a web based image approval system for our photography studio that currently has more then 5000 2500px X 2500px master images in it (1.5gigs of images). For this application ImageCR has been used to generate all of the different resolutions off of these master images that I needed for the web app (stuff like thumbnail images, preview images etc.). The output folder for this web app that ImageCR3 uses to store the generated images contains more then 12000 images. It just works. A tool that I set and forget. -Original Message- From: Justin Hansen [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 2:35 PM To: CF-Talk Subject: RE: Image processing Luis, why you will going to change to the Alagad Image Component I'd like to switch to Alagad mostly due it's CFC'ness and the fact that it's all native java within cf. Also, the 500 image limitation we ran into w/ imagecr3. Other than that, I have no real reasons. I plan to do the prudent testing and research against both options the next time this topic comes up. Right now, I just don't have the time. ImageCR3 is very good. Pros: fast, flexible, reliable. Cons: 500 batch limit, if you give it the wrong combo of attributes you can take down cf :( but that's stuff you work out in the development phases of your projects. If you are still trying to decide, download the eval editions of both and run some tests on the exact functions you need to perform. I'd be interested in the results. Justin Hansen Project Manager Uhlig LLC -Original Message- From: Luis Rueda [mailto:[EMAIL PROTECTED] Sent: Sunday, June 25, 2006 3:56 PM To: CF-Talk Subject: Re: Image processing Hello Justin, i am interested in your experience, why you will going to change to the Alagad Image Component, at the time we will have the necessity to do some image manipulation and want to start with a good solution principally in terms of CPU usage and image manipulation speed, thanks for your comments. Luis Rueda Bizglo.com [EMAIL PROTECTED] ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244862 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Missing Icons
All HTML documents do not show the IE flag in the wwwroot. When I check properties the IE flag is assigned, but will not reflect. Steve LaBadie, Web Manager East Stroudsburg University 200 Prospect St. East Stroudsburg, Pa 18301 570-422-3999 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.esu.edu http://www3.esu.edu ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244863 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Error message
Don't use SELECT * in your queries. This usually happens if you use SELECT * then change the structure of a data table. SQL caches the query structure and then the fields don't match up when the query is run again (post table altering). If you want a quick fix (other than changing your query), in the CF Admin, uncheck the box for the datasource to maintain connections... Refresh the query page a few times, then check that box again (for performance reasons). ... Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 x 14 212.691.3477 fax www.nylontechnology.com Some people call me the space cowboy. Some people call me the gangster of love. -Original Message- From: Mike | NZSolutions Ltd [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 3:03 AM To: CF-Talk Subject: Error message Has anyone encountered this before... Error Occurred While Processing Request 10 = 10 Please try the following: Enable Robust Exception Information to provide greater detail about the source of errors. In the Administrator, click Debugging Logging Debugging Settings, and select the Robust Exception Information option. Check the ColdFusion documentation to verify that you are using the correct syntax. Search the Knowledge Base to find a solution to your problem. Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Remote Address 60.234.180.194 Referrer http://www.eggmaternity.co.nz/headoffice/index.cfm?action=newsletter Date/Time 27-Jun-06 06:52 PM All my page is doing is querying an SQL Server DB to show a list of elements. If I log out and login again, the page displays as per normal?? 10 = 10? There are no equations even on the page? mike ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244864 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Major cities around the world
There are 191 UN member countries and the US State Department formally recognizes 192 countries. Of course, some people will add in a couple of extras like Taiwan and E. Timor and Palestine, claiming that these are sovereign nations. So when you get right down to it, you've got a maximum of about 194 possibilities and a minimum of 188 depending upon whom you ask. * Ken Ferguson 214.636.6126 * Tom Chiverton wrote: On Monday 26 June 2006 22:24, Carlos A wrote: I'm looking for a service that will provide a database containing 200-300 countries Which planets that then ? There are only just under two hundred countries (http://www.un.org/Overview/unmember.html) :-) ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244865 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
CF Report Builder RDS Problems
Has anyone had problems getting RDS to work in CFRB? Depending on how we set it up, we get a can't use SSL or webserver unreachable error. Any advice? CF 7.0.1 CFRB Build 121050 IIS 5.0 and IIS 6.0 ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244866 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Form Spam
Ok Are you referring to the actual mapping of the CFIDE directory or should I have a mapping set up for blog.cfc? Scott Stewart ColdFusion Developer/Administrator GlobalNet Services, Inc. www.gnsi.com 301-770-9610 x358 (Voice) 301-770-9611 (Fax) The information contained in this message may be privileged, confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or any 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. -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 4:47 PM To: CF-Talk Subject: Re: Form Spam That means your CFIDE mapping isn't set up correctly. On 6/26/06, Scott Stewart [EMAIL PROTECTED] wrote: Mike, Did you get any kind of weird errors, with flash forms and blog.cfc. I'm attempting to do something similar (albeit with a cheesy guestbook app that I built) I'm getting a javascript error lc_id is undefined. This works locally but when I upload to hostmysite I get the javascript error. Thanks sas Scott Stewart ColdFusion Developer/Administrator GlobalNet Services, Inc. www.gnsi.com 301-770-9610 x358 (Voice) 301-770-9611 (Fax) The information contained in this message may be privileged, confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or any 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. -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 12:25 PM To: CF-Talk Subject: Re: Form Spam I'm modifying blogCFC to replace it's forms with flash forms. I'm also adding in a security stamp to make sure that the form post is from the site page. The concept here is that a flash form is a flash movie where the user has no clue what form fields are being used, what data is hidden in the form or just about anything else. Yes, it may be slightly slower (flash player 9 will greatly help that) but to skip the annoyance of form spam is worth it. You can see an example of it on www.blogoffusion.com when you try to post a trackback. Works like a charm. I'm adding the same to comments and subscribe asap. Bottom line is that flash forms beats form spam. Several of my forms are being filled out with spam from levitra cialis. What can I do to stop this. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244867 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: getLocale() is always English
it's showing that because you haven't changed the locale for that request. Erm... I thought that's what I was doing with CFs SetLocale() and passing in the locale name... ? pre-cf7, using core java buys you a LOT more locales. post-cf7 you get all the core java locales AND the nice java style locale id: es_ES instead of the [snipped nuggets of info] Cule... thanks for all that, Paul. Am using Java to output localised timezone names... will have another look at Java and icu4j for the locale names. I'm currently trawling thru Ch 20 of Adv CFMX App Dev (3rd ed)... may well have a few more (dumbass) i18n questions before the week's out :-) Thanks for the pointers... really appreciated. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244868 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Major cities around the world
Carlos A said the following on 6/26/2006 4:24 PM: I'm looking for a service that will provide a database containing 200-300 countries with a related table containing the major states (I know other countries do not necessarily refer to them as states) for each country. I've purchased the Globixdata product but it has just under 3 million states! United States has over 180,000 state entries alone. I have a country select list that will dynamically populate a state select list based on the country selected. I plan on using ajaxCFC to accomplish this. Any info the list can provide will be greatly appreciated. This isn't exactly what you want, but the CIA World Factbook might be useful: http://www.cia.gov/cia/publications/factbook/index.html -- Chris Montgomery Airtight Web Services http://www.airtightweb.com Web Development, Web Project Management 210-490-2415 (office), 210-232-2790 (mobile) ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244869 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Image processing
Claude Schneegans wrote: Can someone suggest a tried, tested custom tag or a cfc that I could use to have users upload images to the server. Until recently I used CFX_image from JManner, it is free, but the algorithm used for resizing is just not good enough. We're using cfx_openimage also by Juka Manner, better quality resizing and has a gazillion IML options. We use it for both 'thumbnailing' uploaded images of a variety of formats as well as drawing basic geometric shapes. Up until now now issues with it, it's being used on a website that gets on average about 12.000 hits a day (the images are cached of course, only recreated when the thumbnail version is missing) Mingo. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244870 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: getLocale() is always English
Aidan Whitehall wrote: it's showing that because you haven't changed the locale for that request. Erm... I thought that's what I was doing with CFs SetLocale() and passing in the locale name... ? if you're still getting the server default locale, then something's probably wrong. or you're asking for the locale the wrong way? Cule... thanks for all that, Paul. Am using Java to output localised timezone names... will have another look at Java and icu4j for the locale names. that doesn't work for all locales. you'll usually get back en_US names. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244871 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: getLocale() is always English
if you're still getting the server default locale, then something's probably wrong. or you're asking for the locale the wrong way? I was just doing: cffset setLocale(Spanish (Standard)) and getLocale() was returning: Spanish (Standard) whereas I was after the Spanish for that, really just so I could output it for the Spanish users. If there are enough i18n improvements and features in CFMX7 (such as getLocaleDisplayName() ), I'll try and use them to make the case for an upgrade from CFMX 6.1. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244872 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
k2admin command
On my Linux server (CF MX7) I've got a whole bunch of k2admin processes showing up in top. They aren't taking much resources, but there is over 30 of them, and there is usually only one. I assume this is part of Cold Fusion. Can anyone tell me what k2admin does and why there are so many? Thanks. ~Brad ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244873 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: k2admin command
http://search.newcastle.edu.au/verity_docs/relnotes/K2Admin_relnotes/wwhelp/wwhimpl/common/html/wwhelp.htm?context=administrationfile=admin_rnotes5.html I think this may help ?? On 6/27/06, Brad Wood [EMAIL PROTECTED] wrote: On my Linux server (CF MX7) I've got a whole bunch of k2admin processes showing up in top. They aren't taking much resources, but there is over 30 of them, and there is usually only one. I assume this is part of Cold Fusion. Can anyone tell me what k2admin does and why there are so many? Thanks. ~Brad ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244874 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: getLocale() is always English
Aidan Whitehall wrote: and getLocale() was returning: Spanish (Standard) sorry, yes that's expected behavior. If there are enough i18n improvements and features in CFMX7 (such as getLocaleDisplayName() ), I'll try and use them to make the case for an upgrade from CFMX 6.1. there are more than 100+ locales from 6 to 7, cfreport, cfdocument, gateways/events, the up coming flex goodies, flash forms, etc. yeah, plenty of reasons. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244875 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: SOT: Getting data into a web site
Cheap copy and paste (note: you still need to find someone who writes excel macros): First, get your data into a spreadsheet. Next, separate your columns by adding new columns, with supposedly unique letter combinations (such as aaabbb, bbbccc, cccddd) of characters. Next, in your last column, concatenate everything - then copy and paste that column into a textarea box. In a perfect world, a basic VB macro does it. In my world, I just put it in a few times, manually. In the actual code: Basically, I just loop over the data, and use the unique column values to measure the start and end of my record. Not perfect, IF the column values aren't unique. But, it is a HELL of a lot better than individual entry. Optionally, put the data into a temporary table in your DB, and then manipulate it. RESULTS OF CONCATENATING COLUMNS: aaabbbSmithbbbcccJohncccddeee2006-07-01eeefff aaabbbJohnsonbbbcccMichaelcccddd1234432dddeee2004-07-01eeefff aaabbbBushbbbcccGeorgecccddd16732dddeee2004-07-01eeefff COLDFUSION: Basically, I just loop over the data, and use the unique column values to measure the start and end of my record. Not perfect, IF the column values aren't unique. But, it is a HELL of a lot better than individual entry. Optionally, put the data into a temporary table in your DB, and then manipulate it. Actual CODE for COLDFUSION: cfset vyn_End = NO cfloop condition=#vyn_End# EQ 'NO' cfset vnu_RecordStart = find(aaabbb,vtx_BulkInsert, vnu_RecordStart) cfset vnu_RecordEnd = find(fffggg,vtx_BulkInsert,vnu_RecordStart + 1) cfif vnu_RecordStart EQ 0 AND vyn_End EQ NO cfset vyn_End = YES /cfif cfif vyn_End EQ NO !--- Get variables that measure each record length --- cfset vnu_Length = vnu_RecordEnd - vnu_RecordStart cfset vtx_Record = mid(vtx_BulkInsert,vnu_RecordStart + 6,vnu_Length) !--- Get temporary variables that contain the individual record elements. --- cfset vnu_SelectLength = find(bbbccc,vtx_BulkInsert, vnu_RecordStart) - find(aaabbb,vtx_BulkInsert, vnu_RecordStart) -6 cfset vCurtx_LastName = #mid(vtx_BulkInsert,6 + find(aaabbb,vtx_BulkInsert, vnu_RecordStart) ,vnu_SelectLength)# cfset vnu_SelectLength = find(cccddd,vtx_BulkInsert, vnu_RecordStart) - find(bbbccc,vtx_BulkInsert, vnu_RecordStart) -6 cfset vCurtx_FirstName = #mid(vtx_BulkInsert,6 + find(bbbccc,vtx_BulkInsert, vnu_RecordStart),vnu_SelectLength)# cfset vnu_SelectLength = find(dddeee,vtx_BulkInsert, vnu_RecordStart) - find(cccddd,vtx_BulkInsert, vnu_RecordStart) -6 cfset vCurtx_EmpNo = #mid(vtx_BulkInsert,6 + find(cccddd,vtx_BulkInsert, vnu_RecordStart) ,vnu_SelectLength)# !--- Dates can be funky - in my format, the data comes in -mm-dd --- cfset vnu_SelectLength = find(eeefff,vtx_BulkInsert, vnu_RecordStart) - find(dddeee,vtx_BulkInsert, vnu_RecordStart) -6 cfset vCurtx_Start = #mid(vtx_BulkInsert,6 + find(dddeee,vtx_BulkInsert, vnu_RecordStart) ,vnu_SelectLength)# cfset vCurdt_Start = createdate(mid(vCurtx_Start,1,4),mid(vCurtx_Start,6,2),mid(vCurtx_Start,9,2)) cfset vODBC_Curtx_Start = createodbcdate(vCurdt_Start) cfset vnu_RecordStart = vnu_RecordEnd CFQUERY DATASOURCE=#DS# NAME=q_Insert INSERT into t_Data (tx_EmployeeNumber,tx_LastName,tx_FirstName,dt_DateStart) VALUES ('#vCurtx_EmpNo#', '#vCurtx_LastName#','#vCurtx_FirstName#',#vODBC_Curtx_Start#) /CFQUERY li#vCurtx_LastName#/#vCurtx_FirstName#/#vCurtx_EmpNo#/#vODBC_Curtx_Start#/#vODBC_Curtx_End#/li /cfif /cfloop ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244876 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
vspider
Someone asked me about vspider and verity today, but I have never used it. This obviously is not installed by default with CFMX7, so is it a free download or? I have read up a bit on it, Can vspider collections be setup and managed totally via CFML as with normal verity collections, or doe sanything manual need to be done by the cfadmin? Russ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244877 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Web services / parameter / headache
Can you put the dummy?wsdl URL in a browser and get the wsdl file? Is it not dummy.cfc?wsdl? Are you using any kind of web server security on the website dummy.cfc is in? Such as IIS - window integrated security? -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244878 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: vspider
On 6/27/06, Snake [EMAIL PROTECTED] wrote: Someone asked me about vspider and verity today, but I have never used it. This obviously is not installed by default with CFMX7, so is it a free download or? I have read up a bit on it, Can vspider collections be setup and managed totally via CFML as with normal verity collections, or doe sanything manual need to be done by the cfadmin? You might have already read this, but I think it answers some of your questions... http://www.adobe.com/devnet/coldfusion/articles/vspider.html on my local MX7 install it is in C:\CFusionMX7\verity\k2\_nti40\bin -- Jim Wright Wright Business Solutions [EMAIL PROTECTED] 919-417-2257 ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244879 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: vspider
Someone asked me about vspider and verity today, but I have never used it. This obviously is not installed by default with CFMX7, so is it a free download or? Actually, it is installed by default with CFMX 7. I have read up a bit on it, Can vspider collections be setup and managed totally via CFML as with normal verity collections, or doe sanything manual need to be done by the cfadmin? You can use vspider with existing Verity collections, I think, but you will have to run vspider from the command line (or through CFEXECUTE). Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244880 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF Report Builder RDS Problems
I've seen the same problem. Anyone else seen this? Has anyone had problems getting RDS to work in CFRB? Depending on how we set it up, we get a can't use SSL or webserver unreachable error. Any advice? CF 7.0.1 CFRB Build 121050 IIS 5.0 and IIS 6.0 ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244881 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Array/Structure and Amazon API
I'm running a specific query against the Amazon API/AWS. The problem is, certain of my attributes seem to be overwritten by the last result of the query set, and I don't understand why. Here's my script (with some variables removed for brevity): cfscript AmazonXML = XmlParse(cfhttp.filecontent); BookList = ArrayNew(1); Book = StructNew(); i=1; while (i LTE 10) { Book.ASIN = AmazonXML.ItemSearchResponse.Items.Item[i].ASIN.XmlText; Book.SalesRank = AmazonXML.ItemSearchResponse.Items.Item[i].SalesRank.XmlText; Book.Title = AmazonXML.ItemSearchResponse.Items.Item[i].ItemAttributes.Title.XmlText; AddBook = ArrayAppend(BookList,Book); i=i+1; } /cfscript Here's the output: cfloop index=BookOutput from=1 to=#ArrayLen(BookList)# cfoutput Title: #BookList[BookOutput].Title#br Sales Rank: #BookList[BookOutput].SalesRank#br ASIN: #BookList[BookOutput].ASIN#br br br /cfoutput /cfloop Title comes out as unique for all 10 results, but SalesRank and ASIN display the values of the last items in the results set. I don't see why that would be. H. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244882 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Array/Structure and Amazon API
Did you cut and paste or type your code example in? I had a similar problem once until I finally noticed that some of my i strings where actually one 1 strings. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244883 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Array/Structure and Amazon API
The titles are outputed unique though? I'd thought with the way that is written you would get 10 records with the same title, rank, and asin displayed but I am going on next to no sleep today. Try replacing: AddBook = ArrayAppend(BookList,Book); With BookList[i] = Duplicate(Book); On 6/27/06, Howard Owens [EMAIL PROTECTED] wrote: I'm running a specific query against the Amazon API/AWS. The problem is, certain of my attributes seem to be overwritten by the last result of the query set, and I don't understand why. Here's my script (with some variables removed for brevity): cfscript AmazonXML = XmlParse(cfhttp.filecontent); BookList = ArrayNew(1); Book = StructNew(); i=1; while (i LTE 10) { Book.ASIN = AmazonXML.ItemSearchResponse.Items.Item [i].ASIN.XmlText; Book.SalesRank = AmazonXML.ItemSearchResponse.Items.Item [i].SalesRank.XmlText; Book.Title = AmazonXML.ItemSearchResponse.Items.Item [i].ItemAttributes.Title.XmlText; AddBook = ArrayAppend(BookList,Book); i=i+1; } /cfscript Here's the output: cfloop index=BookOutput from=1 to=#ArrayLen(BookList)# cfoutput Title: #BookList[BookOutput].Title#br Sales Rank: #BookList[BookOutput].SalesRank#br ASIN: #BookList[BookOutput].ASIN#br br br /cfoutput /cfloop Title comes out as unique for all 10 results, but SalesRank and ASIN display the values of the last items in the results set. I don't see why that would be. H. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244884 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Charting a Baseline in Coldfusion
Say I've got a normal bar chart, but I want to call out a flat baseline behind the bars. For instance, maybe I've got bars indicating Joe, Sally, and Mary's GPA, and want to show a horizontal baseline (say class average) *behind* the bars. I seem to need this sort of chart fairly often, and was wondering if it's possible in CF charting. It doesn't *seem* to be, but I'm looking for confirmation. Thanks, Jamie ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244885 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: vspider
Someone asked me about vspider and verity today, but I have never used it. This obviously is not installed by default with CFMX7, so is it a free download or? Actually, it is installed by default with CFMX 7. I have read up a bit on it, Can vspider collections be setup and managed totally via CFML as with normal verity collections, or doe sanything manual need to be done by the cfadmin? You can use vspider with existing Verity collections, I think, but you will have to run vspider from the command line (or through CFEXECUTE). I have had had big problems in the past with indexing via CFEXECUTE (hung, corrupt indexes), but anyway, my real question is... Does vspider work with Linux on CFMX 7.x? [It didn't work in CFMX 6.x, though some (conflicting) MM documentation would have led one to believe otherwise.] Thanks, Jamie ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244886 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Getting the user's IP address
I'm supposed to be storing the user's IP address in a table. I looked up the docs and chose CGI.REMOTE_ADDR as the right variable. Now the client emails me and says that all of the form submissions are coming from 127.0.0.1. I check in the database and indeed, every one of the submissions is shown as coming from that address. So I thought I'd try remote_host, but that one does the same thing. So then I dumped the entire CGI scope and every instance of IP address is lsited as 127.0.0.1. You can see here I'm dumping remote_addr and remote_host. http://bigcomfycouch.com/NEWask.cfm But when I output them via our Perl test script: http://bigcomfycouch.com/cgi-bin/env.pl I get the correct IP addy. What's going on? !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244887 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Changes to files not taking effect
So after a lot of googling and testing on my computer, I figured out the problem. It was my copy of ZoneAlarm which was updated and had a bug: http://download.zonelabs.com/bin/free/information/zap/releaseHistory.html#6.5.722.000 Apparently, it was preventing the Date Modified from being updated properly, which was exactly my issue. If anyone is using ZoneAlarm, I really recommend updating to the latest version so you don't get caught by this bug like I did. Not only does it affect the files I update, but also all AV programs won't work well, since they rely on files changing to know when to scan them. Cedric I tried using the mapped drive and the path. Same thing. It isn't a novell network, just a good ol' Windows 2000 server. I'm using Windows XP as my local machine. I do use versioning, but I end up checking out the code into a web accessible path on the server, which is where I then edit the files. Still no luck :( Any other ideas? Cedric Arg. Have you tried switching the way you map the drive? Using a path vs. the mapped drive? It should work anywayze though, so that's kinda a weenie workaround, if it works. The mapped drive isn't on novell by any chance? Bleh. Can't think of a scenario where it would work from one app and not two others... anyone else working with the same tools on the same mapped drive? It doesn't solve the problem, but I'd recommend using some sort of version control instead of working on a mapped drive, as an aside. Welp, if anything springs to mind, I'll holler, nutt'n so far really though. Force be with you, :DeN ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244888 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Getting the user's IP address
Do you have some kind of local proxy server that's passing requests to CF and rewriting the IP address? I could imagine that scenario for circumventing the CF licensing restrictions to use developer edition in production. cheers, barneyb On 6/27/06, Andy Matthews [EMAIL PROTECTED] wrote: I'm supposed to be storing the user's IP address in a table. I looked up the docs and chose CGI.REMOTE_ADDR as the right variable. Now the client emails me and says that all of the form submissions are coming from 127.0.0.1. I check in the database and indeed, every one of the submissions is shown as coming from that address. So I thought I'd try remote_host, but that one does the same thing. So then I dumped the entire CGI scope and every instance of IP address is lsited as 127.0.0.1. You can see here I'm dumping remote_addr and remote_host. http://bigcomfycouch.com/NEWask.cfm But when I output them via our Perl test script: http://bigcomfycouch.com/cgi-bin/env.pl I get the correct IP addy. What's going on? !//-- andy matthews -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 100 invites. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244889 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Getting the user's IP address
Are you doing any kind of internal redirects in the CFM code, so that the server is talking to itself? -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244890 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF Report Builder RDS Problems
Duh.I figured out the problemthe port is not the IIS port, but (in multi-server config) the cfusion Jrun server HTTP port. -Original Message- From: Mansen Robert E Civ WRALC/ITMS Sent: Tuesday, June 27, 2006 1:10 PM To: CF-Talk Subject: RE: CF Report Builder RDS Problems I've seen the same problem. Anyone else seen this? Has anyone had problems getting RDS to work in CFRB? Depending on how we set it up, we get a can't use SSL or webserver unreachable error. Any advice? CF 7.0.1 CFRB Build 121050 IIS 5.0 and IIS 6.0 ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244891 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Getting the user's IP address
CGI.HTTP_X_Forwarded_For Might help. - Original Message - From: Andy Matthews [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, June 27, 2006 7:40 PM Subject: Getting the user's IP address I'm supposed to be storing the user's IP address in a table. I looked up the docs and chose CGI.REMOTE_ADDR as the right variable. Now the client emails me and says that all of the form submissions are coming from 127.0.0.1. I check in the database and indeed, every one of the submissions is shown as coming from that address. So I thought I'd try remote_host, but that one does the same thing. So then I dumped the entire CGI scope and every instance of IP address is lsited as 127.0.0.1. You can see here I'm dumping remote_addr and remote_host. http://bigcomfycouch.com/NEWask.cfm But when I output them via our Perl test script: http://bigcomfycouch.com/cgi-bin/env.pl I get the correct IP addy. What's going on? !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244892 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Getting the user's IP address
That's exactly what we're doing. We're proxying through Apache to another version of Apache which runs Coldfusion. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 1:46 PM To: CF-Talk Subject: RE: Getting the user's IP address Are you doing any kind of internal redirects in the CFM code, so that the server is talking to itself? -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244893 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Getting the user's IP address
Hmmm... That looks to have done it. http://bigcomfycouch.com/NEWask.cfm You rock Gareth. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Gareth [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 2:02 PM To: CF-Talk Subject: Re: Getting the user's IP address CGI.HTTP_X_Forwarded_For Might help. - Original Message - From: Andy Matthews [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, June 27, 2006 7:40 PM Subject: Getting the user's IP address I'm supposed to be storing the user's IP address in a table. I looked up the docs and chose CGI.REMOTE_ADDR as the right variable. Now the client emails me and says that all of the form submissions are coming from 127.0.0.1. I check in the database and indeed, every one of the submissions is shown as coming from that address. So I thought I'd try remote_host, but that one does the same thing. So then I dumped the entire CGI scope and every instance of IP address is lsited as 127.0.0.1. You can see here I'm dumping remote_addr and remote_host. http://bigcomfycouch.com/NEWask.cfm But when I output them via our Perl test script: http://bigcomfycouch.com/cgi-bin/env.pl I get the correct IP addy. What's going on? !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244894 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Getting the user's IP address
:) I have a similar setup: Apache proxy to IIS box. Took me ages to find the x_forwarded_for cgi thing. Glad it helped. - Original Message - From: Andy Matthews [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, June 27, 2006 8:13 PM Subject: RE: Getting the user's IP address Hmmm... That looks to have done it. http://bigcomfycouch.com/NEWask.cfm You rock Gareth. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Gareth [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 2:02 PM To: CF-Talk Subject: Re: Getting the user's IP address CGI.HTTP_X_Forwarded_For Might help. - Original Message - From: Andy Matthews [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, June 27, 2006 7:40 PM Subject: Getting the user's IP address I'm supposed to be storing the user's IP address in a table. I looked up the docs and chose CGI.REMOTE_ADDR as the right variable. Now the client emails me and says that all of the form submissions are coming from 127.0.0.1. I check in the database and indeed, every one of the submissions is shown as coming from that address. So I thought I'd try remote_host, but that one does the same thing. So then I dumped the entire CGI scope and every instance of IP address is lsited as 127.0.0.1. You can see here I'm dumping remote_addr and remote_host. http://bigcomfycouch.com/NEWask.cfm But when I output them via our Perl test script: http://bigcomfycouch.com/cgi-bin/env.pl I get the correct IP addy. What's going on? !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244895 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Array/Structure and Amazon API
The titles are outputed unique though? I'd thought with the way that is written you would get 10 records with the same title, rank, and asin displayed but I am going on next to no sleep today. Try replacing: AddBook = ArrayAppend(BookList,Book); With BookList[i] = Duplicate(Book); Brain fart -- titles were duplicated. Your solution worked. Thank you. H. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244896 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Getting the user's IP address
There are for of them to check i think: HTTP_X_FORWARDED_FOR HTTP_X_FORWARDED HTTP_FORWARDED_FOR HTTP_FORWARDED On 27/06/06, Gareth [EMAIL PROTECTED] wrote: :) I have a similar setup: Apache proxy to IIS box. Took me ages to find the x_forwarded_for cgi thing. Glad it helped. - Original Message - From: Andy Matthews [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, June 27, 2006 8:13 PM Subject: RE: Getting the user's IP address Hmmm... That looks to have done it. http://bigcomfycouch.com/NEWask.cfm You rock Gareth. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Gareth [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 2:02 PM To: CF-Talk Subject: Re: Getting the user's IP address CGI.HTTP_X_Forwarded_For Might help. - Original Message - From: Andy Matthews [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, June 27, 2006 7:40 PM Subject: Getting the user's IP address I'm supposed to be storing the user's IP address in a table. I looked up the docs and chose CGI.REMOTE_ADDR as the right variable. Now the client emails me and says that all of the form submissions are coming from 127.0.0.1. I check in the database and indeed, every one of the submissions is shown as coming from that address. So I thought I'd try remote_host, but that one does the same thing. So then I dumped the entire CGI scope and every instance of IP address is lsited as 127.0.0.1. You can see here I'm dumping remote_addr and remote_host. http://bigcomfycouch.com/NEWask.cfm But when I output them via our Perl test script: http://bigcomfycouch.com/cgi-bin/env.pl I get the correct IP addy. What's going on? !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244897 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Getting the user's IP address
A word of caution on CGI.HTTP_X_Forwarded_For It only exists if the IP has gone through a proxy etc.so make sure you check for it's existence ;-) Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244898 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Getting the user's IP address
Well, for our setup it will always be going through a proxy. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 2:47 PM To: CF-Talk Subject: Re: Getting the user's IP address A word of caution on CGI.HTTP_X_Forwarded_For It only exists if the IP has gone through a proxy etc.so make sure you check for it's existence ;-) Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244899 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Getting the user's IP address
A word of caution on CGI.HTTP_X_Forwarded_For It only exists if the IP has gone through a proxy etc.so make sure you check for it's existence ;-) A word of caution on CGI variables in general - they will always appear to exist if you use IsDefined, whether they actually exist or not. So, to check the existence of a CGI variable, you might instead check the length of that variable. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244900 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Getting the user's IP address
I thought somebody posted once and said that due to the nature of the different cgi vars available from all the different web servers, any variable was always defined in the cgi scope. It was a feature of the cgi scope. Personally I am still trying to figure out what is defined in the minty fresh scope. :) ~Brad -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 2:50 PM To: CF-Talk Subject: RE: Getting the user's IP address Well, for our setup it will always be going through a proxy. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 2:47 PM To: CF-Talk Subject: Re: Getting the user's IP address A word of caution on CGI.HTTP_X_Forwarded_For It only exists if the IP has gone through a proxy etc.so make sure you check for it's existence ;-) Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244901 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
is URL a structure, or not?
Hope the answer isn't already here, but I have looked at all the attempted to dereference a scalar variable messages and haven't found a solution. Moved from CF 4.5 to CF MX7. All of our code is written using the same methodology, using cfif isdefined(url.testvalue) to use values passed in the URL. This code doesn't work on CF MX7 now. Quick sample code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head /head body a href=?testvalue=27testvalue/abr / cfquery datasource=General_Info name=ModUsers Select top 5 * from GeneralPosting where ag_num = '303' /cfquery cfoutput cfif isdefined(url.testvalue) isdefined(url.testvalue)=#url.testvalue#br / cfelse isdefined returned false for (url.testvalue)br / /cfif cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput Begin cfoutput loop (cfoutput query=modusers):br / cfoutput query=modusers cfif isdefined(url.testvalue) testvalue=#url.testvalue#br / cfelse isdefined returned false for (url.testvalue)br / /cfif /cfoutput outside the loop:br / cfoutput cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput Begin cfoutput loop (cfoutput query=modusers):br / cfoutput query=modusers cfif isdefined(url.testvalue) testvalue=#url.testvalue#br / cfelse isdefined returned false for (url.testvalue)br / /cfif cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput outside the loop:br / cfoutput cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput /body /html Output with ?testvalue=27 : testvalue isdefined(url.testvalue)=27 StructKeyExists(url,testvalue)=27 Begin cfoutput loop (cfoutput query=modusers): isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) outside the loop: StructKeyExists(url,testvalue)=27 Begin cfoutput loop (cfoutput query=modusers): isdefined returned false for (url.testvalue) You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members. Error occurred in line 57: 55 :isdefined returned false for (url.testvalue)br / 56 :/cfif 57 :cfif StructKeyExists(url,testvalue) 58 :StructKeyExists(url,testvalue)=#url.testvalue#br / 59 :cfelse The docs for isdefined say: When working with scopes that ColdFusion exposes as structures, the StructKeyExists function can sometimes replace this function. The following lines are equivalent: if(isDefined(form.myVariable)) if(structKeyExists(form,myVariable)) so I added the structKeyExists test in addition to the isdefined, and get the dreaded You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members. error. At the top of the script, URL is obviously a structure, but within the cfoutput query=modusers loop something happens to turn it into a string. What the heck is going on here? We really need a solution for this, as we need to deploy a new server with CF MX7 on it and this appMUST work. Bill Woodland, Programmer V Texas Building and Procurement Commission Phone: 512-936-2901 Fax: 512-236-6166 Email: [EMAIL PROTECTED] ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244902 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: is URL a structure, or not?
Any chance that the query modusers has a field called URL? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 4:11 PM To: CF-Talk Subject: is URL a structure, or not? Hope the answer isn't already here, but I have looked at all the attempted to dereference a scalar variable messages and haven't found a solution. Moved from CF 4.5 to CF MX7. All of our code is written using the same methodology, using cfif isdefined(url.testvalue) to use values passed in the URL. This code doesn't work on CF MX7 now. Quick sample code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head /head body a href=?testvalue=27testvalue/abr / cfquery datasource=General_Info name=ModUsers Select top 5 * from GeneralPosting where ag_num = '303' /cfquery cfoutput cfif isdefined(url.testvalue) isdefined(url.testvalue)=#url.testvalue#br / cfelse isdefined returned false for (url.testvalue)br / /cfif cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput Begin cfoutput loop (cfoutput query=modusers):br / cfoutput query=modusers cfif isdefined(url.testvalue) testvalue=#url.testvalue#br / cfelse isdefined returned false for (url.testvalue)br / /cfif /cfoutput outside the loop:br / cfoutput cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput Begin cfoutput loop (cfoutput query=modusers):br / cfoutput query=modusers cfif isdefined(url.testvalue) testvalue=#url.testvalue#br / cfelse isdefined returned false for (url.testvalue)br / /cfif cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput outside the loop:br / cfoutput cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput /body /html Output with ?testvalue=27 : testvalue isdefined(url.testvalue)=27 StructKeyExists(url,testvalue)=27 Begin cfoutput loop (cfoutput query=modusers): isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) outside the loop: StructKeyExists(url,testvalue)=27 Begin cfoutput loop (cfoutput query=modusers): isdefined returned false for (url.testvalue) You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members. Error occurred in line 57: 55 :isdefined returned false for (url.testvalue)br / 56 :/cfif 57 :cfif StructKeyExists(url,testvalue) 58 :StructKeyExists(url,testvalue)=#url.testvalue#br / 59 :cfelse The docs for isdefined say: When working with scopes that ColdFusion exposes as structures, the StructKeyExists function can sometimes replace this function. The following lines are equivalent: if(isDefined(form.myVariable)) if(structKeyExists(form,myVariable)) so I added the structKeyExists test in addition to the isdefined, and get the dreaded You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members. error. At the top of the script, URL is obviously a structure, but within the cfoutput query=modusers loop something happens to turn it into a string. What the heck is going on here? We really need a solution for this, as we need to deploy a new server with CF MX7 on it and this appMUST work. Bill Woodland, Programmer V Texas Building and Procurement Commission Phone: 512-936-2901 Fax: 512-236-6166 Email: [EMAIL PROTECTED] ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244903 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: is URL a structure, or not?
Should this sample code be returning an error? The reason I ask is it runs just fine for me both on 6.1 and 7. To answer the question in the subject yes URL is a structure and typically the cause of an error like you are describing is something like cfoutput#URL#/cfoutput since that was allowed in 4.5 but in 6.1 and up you would need to prefix it with the scope it is in so something like: cfset URL = blah / cfoutput#Variables.URL#/cfoutput On 6/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hope the answer isn't already here, but I have looked at all the attempted to dereference a scalar variable messages and haven't found a solution. Moved from CF 4.5 to CF MX7. All of our code is written using the same methodology, using cfif isdefined(url.testvalue) to use values passed in the URL. This code doesn't work on CF MX7 now. Quick sample code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head /head body a href=?testvalue=27testvalue/abr / cfquery datasource=General_Info name=ModUsers Select top 5 * from GeneralPosting where ag_num = '303' /cfquery cfoutput cfif isdefined(url.testvalue) isdefined(url.testvalue)=#url.testvalue#br / cfelse isdefined returned false for (url.testvalue)br / /cfif cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput Begin cfoutput loop (cfoutput query=modusers):br / cfoutput query=modusers cfif isdefined(url.testvalue) testvalue=#url.testvalue#br / cfelse isdefined returned false for (url.testvalue)br / /cfif /cfoutput outside the loop:br / cfoutput cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput Begin cfoutput loop (cfoutput query=modusers):br / cfoutput query=modusers cfif isdefined(url.testvalue) testvalue=#url.testvalue#br / cfelse isdefined returned false for (url.testvalue)br / /cfif cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput outside the loop:br / cfoutput cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput /body /html Output with ?testvalue=27 : testvalue isdefined(url.testvalue)=27 StructKeyExists(url,testvalue)=27 Begin cfoutput loop (cfoutput query=modusers): isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) outside the loop: StructKeyExists(url,testvalue)=27 Begin cfoutput loop (cfoutput query=modusers): isdefined returned false for (url.testvalue) You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members. Error occurred in line 57: 55 :isdefined returned false for (url.testvalue)br / 56 :/cfif 57 :cfif StructKeyExists(url,testvalue) 58 :StructKeyExists(url,testvalue)=#url.testvalue#br / 59 :cfelse The docs for isdefined say: When working with scopes that ColdFusion exposes as structures, the StructKeyExists function can sometimes replace this function. The following lines are equivalent: if(isDefined(form.myVariable)) if(structKeyExists(form,myVariable)) so I added the structKeyExists test in addition to the isdefined, and get the dreaded You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members. error. At the top of the script, URL is obviously a structure, but within the cfoutput query=modusers loop something happens to turn it into a string. What the heck is going on here? We really need a solution for this, as we need to deploy a new server with CF MX7 on it and this appMUST work. Bill Woodland, Programmer V Texas Building and Procurement Commission Phone: 512-936-2901 Fax: 512-236-6166 Email: [EMAIL PROTECTED] ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244904 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe:
Re: is URL a structure, or not?
Preferred way to do this is cfif StructKeyExists(URL, 'TestValue') On 6/27/06, Russ [EMAIL PROTECTED] wrote: Any chance that the query modusers has a field called URL? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 4:11 PM To: CF-Talk Subject: is URL a structure, or not? Hope the answer isn't already here, but I have looked at all the attempted to dereference a scalar variable messages and haven't found a solution. Moved from CF 4.5 to CF MX7. All of our code is written using the same methodology, using cfif isdefined(url.testvalue) to use values passed in the URL. This code doesn't work on CF MX7 now. Quick sample code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head /head body a href=?testvalue=27testvalue/abr / cfquery datasource=General_Info name=ModUsers Select top 5 * from GeneralPosting where ag_num = '303' /cfquery cfoutput cfif isdefined(url.testvalue) isdefined(url.testvalue)=#url.testvalue#br / cfelse isdefined returned false for (url.testvalue)br / /cfif cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput Begin cfoutput loop (cfoutput query=modusers):br / cfoutput query=modusers cfif isdefined(url.testvalue) testvalue=#url.testvalue#br / cfelse isdefined returned false for (url.testvalue)br / /cfif /cfoutput outside the loop:br / cfoutput cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput Begin cfoutput loop (cfoutput query=modusers):br / cfoutput query=modusers cfif isdefined(url.testvalue) testvalue=#url.testvalue#br / cfelse isdefined returned false for (url.testvalue)br / /cfif cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput outside the loop:br / cfoutput cfif StructKeyExists(url,testvalue) StructKeyExists(url,testvalue)=#url.testvalue#br / cfelse StructKeyExists(url,testvalue) is falsebr / /cfif /cfoutput /body /html Output with ?testvalue=27 : testvalue isdefined(url.testvalue)=27 StructKeyExists(url,testvalue)=27 Begin cfoutput loop (cfoutput query=modusers): isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) isdefined returned false for (url.testvalue) outside the loop: StructKeyExists(url,testvalue)=27 Begin cfoutput loop (cfoutput query=modusers): isdefined returned false for (url.testvalue) You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members. Error occurred in line 57: 55 :isdefined returned false for (url.testvalue)br / 56 :/cfif 57 :cfif StructKeyExists(url,testvalue) 58 :StructKeyExists(url,testvalue)=#url.testvalue#br / 59 :cfelse The docs for isdefined say: When working with scopes that ColdFusion exposes as structures, the StructKeyExists function can sometimes replace this function. The following lines are equivalent: if(isDefined(form.myVariable)) if(structKeyExists(form,myVariable)) so I added the structKeyExists test in addition to the isdefined, and get the dreaded You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members. error. At the top of the script, URL is obviously a structure, but within the cfoutput query=modusers loop something happens to turn it into a string. What the heck is going on here? We really need a solution for this, as we need to deploy a new server with CF MX7 on it and this appMUST work. Bill Woodland, Programmer V Texas Building and Procurement Commission Phone: 512-936-2901 Fax: 512-236-6166 Email: [EMAIL PROTECTED] ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244905 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe:
Strip dots out of ip address
All, I'm trying to strip the dots out of ip addresses. I'm trying to use it as part of a unique numeric value for e-mail confirmation. 69.124.49.27 Thanks. D ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244906 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Strip dots out of ip address
replace(yoyoma, '.', '', 'all') - Original Message - From: [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, June 27, 2006 4:33 PM Subject: Strip dots out of ip address All, I'm trying to strip the dots out of ip addresses. I'm trying to use it as part of a unique numeric value for e-mail confirmation. 69.124.49.27 Thanks. D ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244907 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Strip dots out of ip address
Replace( 69.124.49.27, ., , ALL ) Also, Michael Dinowitz had a good piece of code that actually converted the IP into an integer. I can't remember what it was but I think it basically converts from base 2 to base 10 or something... Maybe he can post it (please). ... Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 x 14 212.691.3477 fax www.nylontechnology.com Some people call me the space cowboy. Some people call me the gangster of love. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 4:33 PM To: CF-Talk Subject: Strip dots out of ip address All, I'm trying to strip the dots out of ip addresses. I'm trying to use it as part of a unique numeric value for e-mail confirmation. 69.124.49.27 Thanks. D ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244908 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Strip dots out of ip address
cfset newip = replace(ipAddress,.,,all) / ? On 27/06/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: All, I'm trying to strip the dots out of ip addresses. I'm trying to use it as part of a unique numeric value for e-mail confirmation. 69.124.49.27 Thanks. D ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244909 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Strip dots out of ip address
No need for anything fancy there: cfscript strIP = '69.124.49.27'; strOut = replace(strIP,'.','','ALL'); writeOutput(strOut); /cfscript Best, Phillip Holmes Quoting [EMAIL PROTECTED]: All, I'm trying to strip the dots out of ip addresses. I'm trying to use it as part of a unique numeric value for e-mail confirmation. 69.124.49.27 Than ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244910 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: is URL a structure, or not?
True, which he does in some of his tests but code migrating from CF 4.5 more than likely would not be doing that on the URL scope :) Regardless his sample code works for me in two different versions of MX and only change I did was the query I changed the datasource name and made a temp table to reference. On 6/27/06, Matt Williams [EMAIL PROTECTED] wrote: Preferred way to do this is cfif StructKeyExists(URL, 'TestValue') On 6/27/06, Russ [EMAIL PROTECTED] wrote: Any chance that the query modusers has a field called URL? ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244911 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Dreamweaver
Steve LaBadie wrote of installing some version of Dreamweaver atop a reinstalled operating system of some sort, and not being able to use File Transfer Protocol. Here's an efficient path to troubleshooting FTP problems in Dreamweaver: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14834 jd ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244912 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Exception handling with Alagad Image Component
Hi. This question is for people who have successfully used the Alagad Image Component. Can anyone tell me how to handle ReadImage and WriteImage Errors, especially if you installed the JAI libraries, and are now trying to process a non-conventional image format, like a tif file? I tried using cftry and cfcatch, but it somehow escapes the error catching, and displays the error in the debug in info as such: Exceptions 16:46:25.025 - javax.imageio.IIOException - in D:\web\wiw2u\CFC\Images\Image.cfc : line 869 Sample size must be = 8 Can someone help please. Thanks. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244913 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Strip dots out of ip address
I'm trying to strip the dots out of ip addresses. I'm trying to use it as part of a unique numeric value for e-mail confirmation. 69.124.49.27 IP address dotted-quad values can be converted directly into integers: http://www.cflib.org/udf.cfm?ID=946 I wouldn't recommend just removing the dots, because you could conceivably encounter some wackiness when comparing addresses from networks of different classes. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244914 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: is URL a structure, or not?
As I've said, is it possible that his query is returning a column named URL. And since he's inside a cfoutput block, cf looks to the query first when dereferencing variables (I believe). What's the order again? So a reference to url becomes a reference to queryname.url, which is a string. Although if this type of thing was the case, I would imaging that this would've came up before on this list... Russ -Original Message- From: Aaron Rouse [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 4:44 PM To: CF-Talk Subject: Re: is URL a structure, or not? True, which he does in some of his tests but code migrating from CF 4.5 more than likely would not be doing that on the URL scope :) Regardless his sample code works for me in two different versions of MX and only change I did was the query I changed the datasource name and made a temp table to reference. On 6/27/06, Matt Williams [EMAIL PROTECTED] wrote: Preferred way to do this is cfif StructKeyExists(URL, 'TestValue') On 6/27/06, Russ [EMAIL PROTECTED] wrote: Any chance that the query modusers has a field called URL? ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244915 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Getting the user's IP address
Good save Dave...forgot about that one ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244916 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Strip dots out of ip address
In order to be more-careful with this, you should make sure that you have three digits for each part. For example: 069.124.049.027 Would give you: 069124049027 Without padding the numbers, you could have: 691244927 Many IP addresses, with low values, could cause duplication. M!ke -Original Message- From: Phillip B. Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 3:42 PM To: CF-Talk Subject: Re: Strip dots out of ip address No need for anything fancy there: cfscript strIP = '69.124.49.27'; strOut = replace(strIP,'.','','ALL'); writeOutput(strOut); /cfscript Best, Phillip Holmes ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244917 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
form.fieldnames does not bring all values.
Here is a weird one unless I am missing something. I have a form with lots and lots of checkboxes, three of them are sh_buy_c_date,sh_sel_c_date,sh_mkt_time all three are checkboxes. I check ALL checkboxes on the form, submit it, loop over form.fieldnames list, the above three are not in the list. However, when I do a isdefined() on each of them they exist. now, I changed the names to end as ...date1,...time1. Then they showup in form.fieldnames list. Is this a bug? What's so special about the names ending in date,time? Do the above names qualify as coldfusion reserved words? Why is coldfusion doing this? Cananyone throw some light on this? Thanks for your time ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244918 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Strip dots out of ip address
On 6/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm trying to use it as part of a unique numeric value for e-mail confirmation. Be careful though. IP addresses can change all the time. I rebooted today and got a different one. Cheers, Sam ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244919 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: form.fieldnames does not bring all values.
Form fields ending in _date are reserved words for CF form validation. Been part of CF since at least CF5.0. http://livedocs.macromedia.com/coldfusion/6/Developing_ColdFusion_MX_App lications_with_CFML/Elements15.htm http://livedocs.macromedia.com/coldfusion/7/htmldocs/0188.htm -Original Message- From: Brian Dumbledore [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 5:20 PM To: CF-Talk Subject: form.fieldnames does not bring all values. Here is a weird one unless I am missing something. I have a form with lots and lots of checkboxes, three of them are sh_buy_c_date,sh_sel_c_date,sh_mkt_time all three are checkboxes. I check ALL checkboxes on the form, submit it, loop over form.fieldnames list, the above three are not in the list. However, when I do a isdefined() on each of them they exist. now, I changed the names to end as ...date1,...time1. Then they showup in form.fieldnames list. Is this a bug? What's so special about the names ending in date,time? Do the above names qualify as coldfusion reserved words? Why is coldfusion doing this? Cananyone throw some light on this? Thanks for your time ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244920 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: form.fieldnames does not bring all values.
Any form variable ending in _date or _time is reserved. http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentationfile=0188.htm Cheers, Sam On 6/27/06, Brian Dumbledore [EMAIL PROTECTED] wrote: Here is a weird one unless I am missing something. I have a form with lots and lots of checkboxes, three of them are sh_buy_c_date,sh_sel_c_date,sh_mkt_time all three are checkboxes. I check ALL checkboxes on the form, submit it, loop over form.fieldnames list, the above three are not in the list. However, when I do a isdefined() on each of them they exist. now, I changed the names to end as ...date1,...time1. Then they showup in form.fieldnames list. Is this a bug? What's so special about the names ending in date,time? Do the above names qualify as coldfusion reserved words? Why is coldfusion doing this? Cananyone throw some light on this? Thanks for your time ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244921 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: is URL a structure, or not?
As I've said, is it possible that his query is returning a column named URL. And since he's inside a cfoutput block, cf looks to the query first when dereferencing variables (I believe). What's the order again? So a reference to url becomes a reference to queryname.url, which is a string. Although if this type of thing was the case, I would imaging that this would've came up before on this list... Russ Thanks, Russ. You got it...I hadn't noticed that. I'm working on a site which I didn't write, nor am I familiar with the table structures. I changed my test script to use a different table, and it worked fine. OK, so now I changed the code in my real script (not the test script) to use structkeyexists, and it seems to want to use URL from the query instead of the URL structure (which does exist). I would think that structkeyexists would search for the named structure, not string variables, and form, session, url, and even my query modusers would be structures. Is there any way to make structkeyexists IGNORE the fields in the query? If not, then we have a lot of recoding to do to deploy this app on the new server. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244922 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
cfif inside cfx calls?
I'm trying to do a cfx call with a cfif statement inside of it like this (parameters removed for brevity) CFX_PAYFLOWPRO QUERY = result CERTPATH = #this.certPath# TRXTYPE = #arguments.TRXTYPE# cfif arguments.trxType eq R TERM = #arguments.term# /cfif Is something like this even possible? If it was a cfinvoke, I would've used cfinvokeargument, but what do I use for cfx tags? Russ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244923 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Error message
thanks heaps ben, this is exactly what was occurring. i had changed the db structure and it was showing old results when cfdumping. cheers mike Don't use SELECT * in your queries. This usually happens if you use SELECT * then change the structure of a data table. SQL caches the query structure and then the fields don't match up when the query is run again (post table altering). If you want a quick fix (other than changing your query), in the CF Admin, uncheck the box for the datasource to maintain connections... Refresh the query page a few times, then check that box again (for performance reasons). .. Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 x 14 212.691.3477 fax www.nylontechnology.com Some people call me the space cowboy. Some people call me the gangster of love. -Original Message- From: Mike | NZSolutions Ltd [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 3:03 AM To: CF-Talk Subject: Error message Has anyone encountered this before... Error Occurred While Processing Request 10 = 10 Please try the following: Enable Robust Exception Information to provide greater detail about the source of errors. In the Administrator, click Debugging Logging Debugging Settings, and select the Robust Exception Information option. Check the ColdFusion documentation to verify that you are using the correct syntax. Search the Knowledge Base to find a solution to your problem. Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Remote Address 60.234.180.194 Referrer http://www.eggmaternity.co.nz/headoffice/index.cfm?action=newsletter Date/Time 27-Jun-06 06:52 PM All my page is doing is querying an SQL Server DB to show a list of elements. If I log out and login again, the page displays as per normal?? 10 = 10? There are no equations even on the page? mike ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244924 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: form.fieldnames does not bring all values.
It has to do with ColdFusion trying to validate those fields automatically. I am not sure what the list of types is, but CF tries to validate any form field ending in certain types, ex. date. ... Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 x 14 212.691.3477 fax www.nylontechnology.com Some people call me the space cowboy. Some people call me the gangster of love. -Original Message- From: Brian Dumbledore [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 5:20 PM To: CF-Talk Subject: form.fieldnames does not bring all values. Here is a weird one unless I am missing something. I have a form with lots and lots of checkboxes, three of them are sh_buy_c_date,sh_sel_c_date,sh_mkt_time all three are checkboxes. I check ALL checkboxes on the form, submit it, loop over form.fieldnames list, the above three are not in the list. However, when I do a isdefined() on each of them they exist. now, I changed the names to end as ...date1,...time1. Then they showup in form.fieldnames list. Is this a bug? What's so special about the names ending in date,time? Do the above names qualify as coldfusion reserved words? Why is coldfusion doing this? Cananyone throw some light on this? Thanks for your time ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244925 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: cfif inside cfx calls?
Is something like this even possible? If it was a cfinvoke, I would've used cfinvokeargument, but what do I use for cfx tags? The if syntax of the language your are writing the cfx tag in, usually java or c/c++ isn't it. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244926 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Error message
thank you for that most useful advice - yes i would have kicked myself alright!! ;o) On Tuesday 27 June 2006 08:02, Mike | NZSolutions Ltd wrote: Has anyone encountered this before... You'll kick yourself... Error Occurred While Processing Request 10 = 10 gte :-) -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244927 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: is URL a structure, or not?
You can say select url as myurl in the query, but yea, that's going to require code changes... -Original Message- From: Bill Woodland [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 5:30 PM To: CF-Talk Subject: Re: is URL a structure, or not? As I've said, is it possible that his query is returning a column named URL. And since he's inside a cfoutput block, cf looks to the query first when dereferencing variables (I believe). What's the order again? So a reference to url becomes a reference to queryname.url, which is a string. Although if this type of thing was the case, I would imaging that this would've came up before on this list... Russ Thanks, Russ. You got it...I hadn't noticed that. I'm working on a site which I didn't write, nor am I familiar with the table structures. I changed my test script to use a different table, and it worked fine. OK, so now I changed the code in my real script (not the test script) to use structkeyexists, and it seems to want to use URL from the query instead of the URL structure (which does exist). I would think that structkeyexists would search for the named structure, not string variables, and form, session, url, and even my query modusers would be structures. Is there any way to make structkeyexists IGNORE the fields in the query? If not, then we have a lot of recoding to do to deploy this app on the new server. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244928 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Accessing structure dynamically
Hi, I know that you can access a key in a CF structure dynamically, using bracket notation, as in: cfset structName[keyname] = 0 / so that the keyname could be a variable, allowing you to access the value with the keyname stored in the variable. But I need to go one level deeper. I have a struct of structs, where I need to access a key in the second-level struct dynamically. Let's say I have: myStruct = structNew() myStruct.subStruct1 = structNew() myStruct.subStruct1.key1 = foo myStruct.subStruct1.key2 = bar myStruct.subStruct2.key1 = something myStruct.subStruct2.key2 = nothing I know that I can do: myVariable = subStruct1 and then reference: myStruct[myVariable].key1 and get the value foo But what if the keyname in the lower struct needs to be determined dynamically? That is, what if I don't know that I want key1, but rather a key referenced by a variable. Out of curiosity, I tried nesting the brackets, to see if you could access the inner struct that way: myStruct[myVariable[myVariable]] but that just caused the familiar dereferencing a scalar message. Does anyone know how to do this? Do I have to fall back on Evaluate? Any help is greatly appreciated. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 530 Means St NW, Suite 110 Atlanta, GA 30318 404.589.0560 ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244929 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Accessing structure dynamically
I am not clear exactly what you mean and I have never used StructFind(), but this might be a good case??? ... Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 x 14 212.691.3477 fax www.nylontechnology.com Some people call me the space cowboy. Some people call me the gangster of love. -Original Message- From: Tom McNeer [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 5:50 PM To: CF-Talk Subject: Accessing structure dynamically Hi, I know that you can access a key in a CF structure dynamically, using bracket notation, as in: cfset structName[keyname] = 0 / . so that the keyname could be a variable, allowing you to access the value with the keyname stored in the variable. But I need to go one level deeper. I have a struct of structs, where I need to access a key in the second-level struct dynamically. Let's say I have: myStruct = structNew() myStruct.subStruct1 = structNew() myStruct.subStruct1.key1 = foo myStruct.subStruct1.key2 = bar myStruct.subStruct2.key1 = something myStruct.subStruct2.key2 = nothing I know that I can do: myVariable = subStruct1 and then reference: myStruct[myVariable].key1 . and get the value foo But what if the keyname in the lower struct needs to be determined dynamically? That is, what if I don't know that I want key1, but rather a key referenced by a variable. Out of curiosity, I tried nesting the brackets, to see if you could access the inner struct that way: myStruct[myVariable[myVariable]] . but that just caused the familiar dereferencing a scalar message. Does anyone know how to do this? Do I have to fall back on Evaluate? Any help is greatly appreciated. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 530 Means St NW, Suite 110 Atlanta, GA 30318 404.589.0560 ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244930 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Accessing structure dynamically
Wouldn't it be: myStruct[myVariable].myVariable? !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Tom McNeer [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 4:50 PM To: CF-Talk Subject: Accessing structure dynamically Hi, I know that you can access a key in a CF structure dynamically, using bracket notation, as in: cfset structName[keyname] = 0 / . so that the keyname could be a variable, allowing you to access the value with the keyname stored in the variable. But I need to go one level deeper. I have a struct of structs, where I need to access a key in the second-level struct dynamically. Let's say I have: myStruct = structNew() myStruct.subStruct1 = structNew() myStruct.subStruct1.key1 = foo myStruct.subStruct1.key2 = bar myStruct.subStruct2.key1 = something myStruct.subStruct2.key2 = nothing I know that I can do: myVariable = subStruct1 and then reference: myStruct[myVariable].key1 . and get the value foo But what if the keyname in the lower struct needs to be determined dynamically? That is, what if I don't know that I want key1, but rather a key referenced by a variable. Out of curiosity, I tried nesting the brackets, to see if you could access the inner struct that way: myStruct[myVariable[myVariable]] . but that just caused the familiar dereferencing a scalar message. Does anyone know how to do this? Do I have to fall back on Evaluate? Any help is greatly appreciated. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 530 Means St NW, Suite 110 Atlanta, GA 30318 404.589.0560 ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244932 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Accessing structure dynamically
I know that you can access a key in a CF structure dynamically, using bracket notation, as in: cfset structName[keyname] = 0 / so that the keyname could be a variable, allowing you to access the value with the keyname stored in the variable. But I need to go one level deeper. I have a struct of structs, where I need to access a key in the second-level struct dynamically. Let's say I have: myStruct = structNew() myStruct.subStruct1 = structNew() myStruct.subStruct1.key1 = foo myStruct.subStruct1.key2 = bar myStruct.subStruct2.key1 = something myStruct.subStruct2.key2 = nothing I know that I can do: myVariable = subStruct1 and then reference: myStruct[myVariable].key1 and get the value foo But what if the keyname in the lower struct needs to be determined dynamically? That is, what if I don't know that I want key1, but rather a key referenced by a variable. Out of curiosity, I tried nesting the brackets, to see if you could access the inner struct that way: myStruct[myVariable[myVariable]] but that just caused the familiar dereferencing a scalar message. Does anyone know how to do this? Do I have to fall back on Evaluate? myStruct[someKeyToMyStruct][someKeyToTheStructWithinSomeKeyToMyStruct] Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244931 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: cfif inside cfx calls?
I'm just calling a CFX tag, not writing one. I would like to dynamically set up the parameters that I pass, based on certain variables. The original code is in CF. Russ -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 5:39 PM To: CF-Talk Subject: RE: cfif inside cfx calls? Is something like this even possible? If it was a cfinvoke, I would've used cfinvokeargument, but what do I use for cfx tags? The if syntax of the language your are writing the cfx tag in, usually java or c/c++ isn't it. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244933 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfif inside cfx calls?
I'm trying to do a cfx call with a cfif statement inside of it like this You can't do it this way. CFIF can be used inside HTML tags but not CFML tags. However you can do what you want using the attributecollection structure, to pass optional attributes to the tag, ie: CFSET additionalAttribute = structNew() CFIF arguments.trxType eq R CFSET additionalAttribute.term = arguments.term /CFIF CFX_PAYFLOWPRO QUERY = result CERTPATH = #this.certPath# TRXTYPE = #arguments.TRXTYPE# attributeCollection = #additionalAttribute# -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244934 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Accessing structure dynamically
You just keep adding brackets to the struct. aStruct[key][key2][key3][key4][key5][keyDidYouReallyWantAStructThisDeep] -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244935 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: is URL a structure, or not?
You can say select url as myurl in the query, but yea, that's going to require code changes... Yep, that would work for select, but any updates/inserts would probably be a real pain. I don't know what idiot named the field URL, but I'm guilty of being the exact same kind of idiot myself in the past. Fortunately, that field is a VERY minor one; one that isn't refered to very often, so it seems to me the easiest fix would be to change the field name, and any references to the actual field itself. Thanks for the kick in the pants, Russ. If you're ever in Austin, I'll buy you a beer :) ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244936 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Form Spam
We also had several forms being spammed and took two approaches to stop it. 1) We recorded the IP address of every message sent and identified the IP addresses of the spam robots. We then placed them in a database and if the visiting IP address matched one from the database we didn't show the form. Since it is a central database this approach works across all the domains we host. 2) We added a CAPTCHA written by Bobby Hartsfield from http://acoderslife.com called cfbhcaptcha. It was a pure CF implementation (we still run CF5) and was easy to install and worked quite well. On a more public site that send to users we also added a timed function to only allow an IP to send one email every two minutes. Best Regards, Dennis Powers UXB Internet- A Website Design and Hosting Company 690 Wolcott Road - P.O. Box 6028 Wolcott, CT 06716 Tel: 203-879-2844 http://www.uxbinternet.com http://dennis.uxb.net -Original Message- From: Steve LaBadie [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 12:18 PM To: CF-Talk Subject: Form Spam Several of my forms are being filled out with spam from levitra cialis. What can I do to stop this. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244937 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
I know it's not defined ... that's the problem
I'm still working on my Amazon AWS application. Got one query working, now I want to reuse some code. But the new query doesn't return quite the same results set XML. So for SalesRank, I run into an undefined error, so I thought I'd try the following, but it returns the same error ... how do I test for whether an element is there, and skip it if it isn't? if(IsDefined(AmazonXML.ItemSearchResponse.Items.Item[i].SalesRank.XmlText)) { Book.SalesRank = AmazonXML.ItemSearchResponse.Items.Item[i].SalesRank.XmlText; } else { Book.SalesRank = ''; } ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244938 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: I know it's not defined ... that's the problem
You need to put quotes in isDefined... and you probably want to use StructKeyExists (although isDefined will probably let you skip some levels of checking, since you need to know that the parent struct exists if you use StructKeyExists -Original Message- From: Howard Owens [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 7:36 PM To: CF-Talk Subject: I know it's not defined ... that's the problem I'm still working on my Amazon AWS application. Got one query working, now I want to reuse some code. But the new query doesn't return quite the same results set XML. So for SalesRank, I run into an undefined error, so I thought I'd try the following, but it returns the same error ... how do I test for whether an element is there, and skip it if it isn't? if(IsDefined(AmazonXML.ItemSearchResponse.Items.Item[i].SalesRank.XmlText) ) { Book.SalesRank = AmazonXML.ItemSearchResponse.Items.Item[i].SalesRank.XmlText; } else { Book.SalesRank = ''; } ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244939 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: I know it's not defined ... that's the problem
structKeyExists(AmazonXML.ItemSearchResponse.Items.Item[i],SalesRank) maybe. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244940 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: I know it's not defined ... that's the problem
You need to put quotes in isDefined... and you probably want to use StructKeyExists (although isDefined will probably let you skip some levels of checking, since you need to know that the parent struct exists if you use StructKeyExists I'd tried the single quotes ... got this error: Parameter 1 of function IsDefined, which is now quot;AmazonXML.ItemSearchResponse.Items.Item[i].SalesRank.XmlTextquot;, must be a syntactically valid variable name. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244941 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54