Re: Fusebox Web Site Design Contest Announced
I've read this thread over, start to finish... Andy, I don't know how to tell you this, but you're a massive hypocrite. Entering contests that you declare to be a bad idea and then rationalizing it? Where are you standards, man? Where are your ethics? I choose to believe that you're well-meaning here... but you're holding Ray a different standard than everyone else in one post, in another you're lumping him into the rest of it, and in yet another you're admitting that you've participated in his contests!!! Make up your mind! Also, nobody from Team Fusebox makes any money off Fusebox, so if you do something for the framework, don't expect to make anything off any of it... if you HAPPEN to score a ticket, be a happy camper, say thanks, and join the rest of us in working for somethingn big to support the community. For. Free. The contest is an INCENTIVE, not profit. You MIGHT get something, so do something or not, but help? And if you need a ticket to a conference and can't afford one/don't have an employer to pay for one, then try it... see if it works out for you. Anway, while I choose to believe you're well-meaning here, you're also blatantly fully of crap and slinging garbage around the community. This is a subject fully covered by free will, free markets and free minds... if you don't like it, don't do it. Granted, you're fully entitled by the laws of your country to whine as you have. Your freedom to espouse bulls***t is the same freedom enjoyed by those of us that are involved with Fusebox and able to put on a contest. A community contest. One that allows people to be creative and helpful at the same time. And, possibly, get some free tickets out of it. Can you afford to pay for these 3 tickets on your own? Do you think you might benefit from attending? Well, if the answer is no and yes, you might enter. You MIGHT win. You might NOT. That's the risk and the reward of *contest* and, frankly, your repeated assertion that you have to do work with no guarantee of winning is something you accept when you participate in a CONTEST. You might run a race. You might win. You might not. Better to stay sitting down. Your whole rationale is circular, capricious, selective and, really... Stupid. Sorry. It's the only word I can come up with. The thing you lack is community spirit. The thing you have is overriding self-interest. You have them backwards... get with the groove, relax, have some fun. Or dont. Up to you. Give the rest of us, though, a break. Thanks. With respect to the organizers of this contest, to Fusebox, and to you Sandra...this is a poor idea. ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269373 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFC caching?
Hey George... Trust me, you ain't the only one. ;) A CFC is executable CF so when you create an instance in a shared scope, that instance is created with the codebase in existance at the time it was instantiated. When you update the text in the code base, that does not update the contents of the CFC that's in a shared scope. In order to do that you have to use code like below, or restart the server. I assume you have this CFC in the application or session scope, yes? Try this: cfif structKeyExtists(url,reinit) cfset session.myLogger = createObject(component,my.logger.path.to.the ).init() /cfif (be sure to add locking. and be sure to use the right scope left of the equal sign.) ;) Then go to your page and add ?reinit=1 to the URL. Voila... As far as which scope to use... don't feel restricted. There's no reason you couldn't call application.logger.logUserAction(), for one thing. For another, if you have a logger class that's portable, why not use it in the app AND session scopes -- if, that is, they're doing different things. Just be sure that the primary methods in your application scope are thread safe ( i.e. use locking where required and accept parameters, use the var keyword, draw constants from the logger's instance data but don't affect that instance data). In general, anyway. Laterz, J On 9/15/05, George Abraham [EMAIL PROTECTED] wrote: Isaac, SQL Server 2K. I renamed the stored procedure name in the cffunction, not in the db. It is in the application scope, but how does one recreate it - simply set it to null? I did have to restart the CF server service to get rid of this finally. I guess I am really curious why there is no info on this anywhere. At least I can't find any. Seems to me that no one else has run into this while developing CFCs. I change my stored procs so many times, that using CFCs this way would have me restart the CF service every so often. I must be doing something fundamentally wrong somewhere. A related question: would you instantiate an object that does auditing in the application scope or in the session scope? Initially I thought that since auditing is individual for every user, it should be in the session scope, but then some examples seem to suggest that instantiating it in the application scope is fine. Thanks, George -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218450 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: Including App.cfc in App.cfc
Will... In your first application.cfc you're going to create application.dsn, right? Along with this.name http://this.name, yes? So your second application.cfc is going to have this.name http://this.nameas well, yes? And if it's the same string as the name in the first application.cfc, it's going to be looking at the same application space as the first one. So, in your first application.cfc you create application.dsn = mydsn... so long as they're running on the same server it's going to see the same values under the same names in the application scope. In other words you join the data in memory by the name specified in the space inside the cfcomponent tag and outside any of the cffunction tags... by giving them the same name you join them logically in the server's memory. It's effectively the exact same thing as cfincluding an Application.cfmfile, but different in implementation. HTH, J On 7/7/05, Will Tomlinson [EMAIL PROTECTED] wrote: If I have an Application.cfc in the site root, and it contains an APPLICATION.DSN variable, and there's an admin folder with its own App.cfc, how would I include the root's APP.DSN inside the admin folder's app.cfc? When I used App.cfm I just included the root App.cfm. Thanks, Will ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211409 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: XML xmlText or Attributes
When it comes to using things like XSLT, XPath, and other things, using attributes becomes important. Really, in general you want attributes to describe the data that the xmlText contains, and you want to use your attributes to help you sort, filter, and extract your data. For instance, in an XSL transform, you can use xsl:sort select=[EMAIL PROTECTED] / as a valid expression... in other words, it'll sort by an attribute of an element, but it won't sort by xmlText (at least that I know of... I could be way wrong.) So you describe the data with your attributes and you deliver the data with xmlText. Laterz, J On 7/7/05, Andy [EMAIL PROTECTED] wrote: When would I use an attribute to hold a value versus xmlText? ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211410 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: Including App.cfc in App.cfc
I read that he wanted a way to insure that app-scope vars would exist at the right names across several separate folders. Or, you could do what Sean Corfield blogged about a while ago: /appProxy.cfc /Application.cfc extends=appProxy /admin/Application.cfc extends=appProxy That would, from a CFC development standpoint be EXACTLY the same as cfincluding Application.cfm, except for the fact that with CFCs and the extends attribute you can do things like calling super.onSessionEnd() in your onSessionEnd() method (which means your calling the parent's version from the child version...)(that was for others, Isaac, not you *g*) So you code appProxy.cfc as you normally would your Applicaiton.cfc and use it for the base class for your other Application.cfcs. And for that matter, if you REALLY wanted, you could write an application.cfc that looks like this: cfinclude template=/application.cfc / But that's pretty darned messy. HTH, J On 7/8/05, S. Isaac Dealey [EMAIL PROTECTED] wrote: The Application.cfc in the nested directory will omit the Application.cfc code in the parent directory... this means that much of the code to set these variables would need to be duplicated in both cfc's. What I read (and I could be misinterpreting) is that he wanted a way to eliminate the need to duplicate that code. Will... In your first application.cfc you're going to create application.dsn, right? Along with this.name http://this.name http://this.name, yes? So your second application.cfc is going to have this.namehttp://this.name http://this.nameas well, yes? And if it's the same string as the name in the first application.cfc, it's going to be looking at the same application space as the first one. So, in your first application.cfc you create application.dsn = mydsn... so long as they're running on the same server it's going to see the same values under the same names in the application scope. In other words you join the data in memory by the name specified in the space inside the cfcomponent tag and outside any of the cffunction tags... by giving them the same name you join them logically in the server's memory. It's effectively the exact same thing as cfincluding an Application.cfmfile, but different in implementation. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211443 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: Remote forms
Rob Rohan's Neuromancer is a great AJAX implementation that pre-existed the AJAX terminology (other than the cleaning product, anyway). He's got tutorials and examples here: http://www.robrohan.com/projects/neuromancer/ Hope that helps... J On 7/8/05, Doug Bedient [EMAIL PROTECTED] wrote: Okay. I've heard of it. Any good tutorials around? AJAX. -Adam On 7/8/05, Doug Bedient [EMAIL PROTECTED] wrote: I have a client who wants to provide their clients access to a parts finder using data from their site but not hosting it. So I guess it would need to be platform independent. Any recommendations? It's nothing too complicated, just a series of drill down menus of about 5 items (multiple-select: select first displays matching in second, select second and so on) My first thought was flash. Any other ideas? Thanks for any help. Doug ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211479 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: Including App.cfc in App.cfc
I suppose, depending on the needs of the specific application you could go either way. If your Application.cfc's all inherited from a specific ApplicationProxy.cfcthen you could make global changes easily without being forced to change the Application.cfc in your root. But, if you have one Application.cfc that needs to be the parent of all of them, having your proxy inherit from it would also make sense. But since I was working from memory I'm glad I got close... and thanks for the correction. Laterz, J On 7/8/05, Sean Corfield [EMAIL PROTECTED] wrote: On 7/8/05, Jared Rypka-Hauer - CMG, LLC [EMAIL PROTECTED] wrote: Or, you could do what Sean Corfield blogged about a while ago: /appProxy.cfc /Application.cfc extends=appProxy /admin/Application.cfc extends=appProxy Almost... Check my blog: http://corfield.org/blog/index.cfm?do=blog.entryentry=C8AF0DA4-0E78-FC9E-6975A16624A1E3C1 /Application.cfc /AppProxy.cfc extends=Application /admin/Application.cfc extends=AppProxy And don't forget to call super() as appropriate in any methods you override (in admin.Application). -- Sean A Corfield -- http://corfield.org/ Team Fusebox -- http://fusebox.org/ Got Gmail? -- I have 50, yes 50, invites to give away! If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211480 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: URL String and cfsavecontent
Michael... To be honest, your code makes no sense at all... try this: http://www.test.com?myurlvar=testing cfsavecontent variable=testing cfset myvar = url.myUrlVar /cfsavecontent cfoutput#testing#/cfoutput First off, you only have a string inside the savecontent... which means that you're not going to execute the code. CFSAVECONTENT actually executes the code inside it and puts the output buffer into the variable named in the variable attribute. Also, I've got no idea where _root. comes from, but you have no connection to the URL scope in the code example. You can only use the var keyword inside a CFFUNCTION tag, and if that's the case you should be passing the URL scope (or any struct for that matter) into the function instead of accessing it directly. If you want your code to work as written, you'll have to wrap your set operation in a CFSCRIPT tag. Hope that helps, J On 7/7/05, Michael Hohnecker [EMAIL PROTECTED] wrote: How can i pull a url string into a cfsavecontent. below is an example: Sample URL String: http://www.test.com?myurlvar=testing Sample CFML Code: cfsavecontent variable=testing var myvar = _root.MyUrlVar; /cfsavecontent I receive no errors when testing. MyVar comes back to me as undefined. The code is simplified to match my real problem. Thanks, mike ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211397 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: URL String and cfsavecontent
Hold the phone... bah. cfsavecontent varible=testing cfoutput#url.myUrlVariable#/cfoutput /cfsavecontent Much better... it will only save the text stored in the output buffer once the savecontent tag is done executing. So if you haven't output anything, you won't have anything inside the variable. Sorry for the confusion... J On 7/7/05, Jared Rypka-Hauer - CMG, LLC [EMAIL PROTECTED] wrote: Michael... To be honest, your code makes no sense at all... try this: http://www.test.com?myurlvar=testing cfsavecontent variable=testing cfset myvar = url.myUrlVar /cfsavecontent cfoutput#testing#/cfoutput First off, you only have a string inside the savecontent... which means that you're not going to execute the code. CFSAVECONTENT actually executes the code inside it and puts the output buffer into the variable named in the variable attribute. Also, I've got no idea where _root. comes from, but you have no connection to the URL scope in the code example. You can only use the var keyword inside a CFFUNCTION tag, and if that's the case you should be passing the URL scope (or any struct for that matter) into the function instead of accessing it directly. If you want your code to work as written, you'll have to wrap your set operation in a CFSCRIPT tag. Hope that helps, J On 7/7/05, Michael Hohnecker [EMAIL PROTECTED] wrote: How can i pull a url string into a cfsavecontent. below is an example: Sample URL String: http://www.test.com?myurlvar=testing Sample CFML Code: cfsavecontent variable=testing var myvar = _root.MyUrlVar; /cfsavecontent I receive no errors when testing. MyVar comes back to me as undefined. The code is simplified to match my real problem. Thanks, mike ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211399 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: Don't wait for webservice?
Hey Ben, Don't be put off by the reference to 6.0... there's more similarity between 6.1 and 7 than 6 and 6.1. 6.0 was a freaky little animal that was deprecated almost as soon as it was released. So to say you're worried about 6.0 when you're running 6.1 isn't really comparing apples to apples. Even green ones. ;) Laterz, J On 6/20/05, Ben Mueller [EMAIL PROTECTED] wrote: Thanks for the tip, but the following line has scared me off, given that we're running 6.1: Note for CFMX 6.0 users. The tag may or may not work under CFMX 6.0. The tag itself is CF version independent. However, due to unexplainable reasons some users have reported problems when using CFX_HTTP5 with CFMX 6.0. but maybe I'll have a look anyway. -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210175 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: cffile vs. cfsavecontent
Johnny, Once cffile has read the literal text of the file, leaving the raw code of the template in the variable, you can't render it without saving it to a file and then cfincluding the file. :) Circular, no? But... cfsavecontent can be used for many, many different things... for instance: cffunction name=dump access=public cfsavecontent variable=resultcfdump var=#variables# //cfsavecontent /cffunction from within a CFC, this can be handy as a troubleshooting tool. There isn't anything else that works the way cfsavecontent does, with the possible exception of a cfhttp call to a purpose-built template and setting cfhttp.filecontent to a var... and that won't work in many cases. It's a handy tag. Laterz, J On 6/21/05, Johnny Le [EMAIL PROTECTED] wrote: Hi, I noticed lately that a lot of people are using cfsavecontent instead of cffile, like this: cfsavecontent variable=content cfinclude template=pageToRead.cfm /cfsavecontent vs. cffile action=read file=c:\web\pageToRead.cfm variable=content/ I would think cffile is more intuitive than cfsavecontent, and it is only one line to type. So are there real benefits to use cfsavecontent over cffile? I heard that cffile is slower than cfsavecontent. Is that the only reason? Johnny -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210176 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: best way to invoke a cfc
Hey Dave, Just a quick note to clarify... the end result of any call to a CFC is an instance of an object. Whether you're using cfinvoke, cfobject, or createObject(), you're still creating an instance of an object that can be used to store data and execute methods. The difference is how that object works. Some objects are stateless (i.e. they don't store data and they generally have a minimal lifespan), and others are stateful (i.e. they do store data and they're the kind of object you'd keep in the application or session scope). If you have something like math.cfc, and it has a method called addition(), it might work like this: cfset num1 = 10 cfset num2 = 11 cfinvoke component=math method=addition number1=#num1# number2=#num2 returnvariable=added / Internally, addition has this to say: cffunction name=addition cfargument name=number1 type=numeric / cfargument name=number2 type=numeric / cfreturn arguments.number1+arguments.number2 / /cffunction That's a method where CFMX would create the object, do the calculation, return the data, and then destroy the object... but internally CFMX still has an instance of math.cfc. That process is less efficient under load because of the need to read the file and operate on it before executing the method in question, so often we put instances of things in the application scope and session scope... but, functionally, it's still doing the same thing. Even if it's in the application scope on a shared server, unless there's confidential data (bad, bad idea) or a danger that just reading the info might cause, it's not a bad thing really. The CFINVOKE tag above is functionally exactly the same as this: cfset added=createObject{component,math).addition(num1,num2) For any practical purpose, that is identical to cfinvoke (except it's shorter hehe). Because the variable named added ends up containing whatever addition() returns, it's a numeric value. You don't end up with a live instance of an object unless your cfreturn / returns an object... like this: cfreturn this / or cfreturn createObject(component,someOtherObject).init(num1,num2) You just need to be careful what you expose by caching... and do everything you can to get a dedicated server. ;) Laterz, J On 6/11/05, dave [EMAIL PROTECTED] wrote: well I was thinking that on a shared server it probably wouldn't be a real good idea to create an object out of it (just in case they take that way for security) and the dreamweaver one doesn't add it correctly, was just curious what ppl are using, since I see quite a lot of diff techniques. ~Dave the disruptor~ A criminal is a person with predatory instincts who has not sufficient capital to form a corporation. From: James Holmes [EMAIL PROTECTED] Sent: Saturday, June 11, 2005 10:55 PM To: CF-Talk cf-talk@houseoffusion.com Subject: RE: best way to invoke a cfc On a shared server, it's important to ensure that a unique name is used. If you have a mapping or a custom tag path, putting a unique directory name in the calling path and then using the dotted notation (e.g. myuniquename.somecfc) helps. If not, you have to rely on the default searching mechanism and hope it gets the right one, so prefacing the CFC filename with your account name may help (e.g. myaccountname_somecfc.cfc). As for DreamWeaver, you could cache the cfc in the application scope, if that's appropriate, so that it is only instantiated once when you change it (but then when you do change it you have to manually delete it from the application scope again). Of course this has implications on a shared server when the code goes live, in that anyone on that server has access to your application scope if they want it. -Original Message- From: dave [mailto:[EMAIL PROTECTED] Sent: Sunday, 12 June 2005 8:19 To: CF-Talk Subject: best way to invoke a cfc is see a lot of ppl on here using different ways to invoke a cfc, any best practices? (on a shared server) the one thing i am really tired of is having the files on a local dev puter and having the cfc's to be called with the live settings and dw choking for a few minutes while it looks for component (while in code view), anyway around that that's practical? ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209247 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: SPAM-LOW: Re: cfchart not working on new server
Actually this is starting to make sense... If you add /CFIDE as a virtual dir and add GraphData.cfm to it, then IIS won't balk as per the other message in this thread (can't recall who posted it), but will allow the URL to be executed. Then, since the URL is actually a Jrun servlet mapping, Jrun itself never tries to execute the physical file because the servlet mapping fires. So by adding a virtual directory of CFIDE and adding that cfm template, you're satisfying IIS to let it pass the URL along to Jrun... which then handles the call without ever even looking at the physical files. If I were you, I'd fix the issue outlined in the message posted about the IIS issue not executing missing files rather than adding a CFIDE virtual directory to all your sites... Just my 2 cents. Laterz! J On 6/11/05, Allan Cliff [EMAIL PROTECTED] wrote: Yes, when i said mappings i meant virtual directories in IIS. We had exactly the same problem as Matthew did and creating that file and those virtual directories solved the problem. Allan -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209221 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: chr(10) AND CFSCRIPT
That will work in most browsers, Windows or otherwise, because they all seem to interpret chr(10) as enough for a newline even if the OS demands a cr-lf combination for a valid line break. But if you're creating PDFs, you'll probably want writeOutput('some text here' chr(10) chr(13)) just to make sure that you're feeing it valid linefeeds. You may check the PDF documentation (what there is of it, anyway) to see exactly what character combo it wants for a newline. Generally, the character sets are as follows: Mac: cr Win: cr-lf *NIX: lf It's kinda twitchy, and a PITA, to get the characters just right... experiment and see what you come up with. Laterz! J On 6/10/05, Barney Boisvert [EMAIL PROTECTED] wrote: cfscript writeOutput('text with newline' chr(10)); /cfscript that should do ya. cheers, barneyb On 6/10/05, James Taavon [EMAIL PROTECTED] wrote: i want to be able to force a carriage return while getting output back within a cfscript block. i have tried several combos, but nothing seems to work. also using PDFLib if anyone is familiar with that as well. -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209213 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: mx 6 licenses?
I kinda hope you're not suggesting you buy licenses for 6.0? Gads, man... don't be rediculous! It's not available at MM anymore at all, so you're looking at second-hand (Ebay?) or some other vendor that may still have a copy or two. The thing is, 6.1 came out almost immediately on the heels of 6.0 because 6.0 was particularly troublesome. Good luck... J On 6/10/05, Jeff Congdon [EMAIL PROTECTED] wrote: Hey gang, I assume somebody in here knows the right place to go to buy MX 6? I can't find it as a listed product on MM's website, and we'd like to buy a few licenses. TIA, -Jeff -- Jeff Congdon ColdFusion Developer, Data Mining Specialist Headsprout www.headsprout.com http://www.headsprout.com -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209214 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: cfchart not working on new server
Allan: Regarding #2 below, I assume you mean create a virtual directory of /CFIDE that points to CFIDE in the system? CF mappings on Standard are server-wide, and they're server-wide on Enterprise unless you're using Sandboxing to lock them down. If you create a virtual directory, all your servers will be able to hit http://my.url.com/cfide/administrator/index.cfm, whereas using a mapping enables just directory access without exposing CFIDE in the webroot of the application. Having the files accessible from the cfchart tag should only need the mapping because it relies on the accessibility of the files, not on being able to use them in a browser. And if you're using mappings, you only need 1 per CF instance, barring any sandboxing. Also, anything you need universally can go in {cfhome}\wwwroot because that's basically a universal mapping. If you put CFIDE in it, beware, though...by default it will be available to the browser from all sites, all URLs connected to that CF instance via a webserver connector. Now JrunScripts is a different matter, because for some reason that's always a virtual directory... when you create it (in each site that will be accessing CF), you're going to need to edit the properties and add the Jrun Server Filter in the ISAPI filters tab and in the Virtual Directory properties tab for the directory click Remove against the application attributes and uncheck Read. If you check your wwwroot/web-inf/web.xml file, you'll see that GraphData.cfm is a servlet mapping, so adding a CF template to /cfide wouldn't do much. It's the same as IDE.cfm, which is the servlet mapping for RDS... these can be executed from a browser via the URL specified, but they're trapped by Jrun and mapped out to specific servlets for special handling. It's basically Jrun spoofing a CFM template to the CF server. Matthew, you said these image files were being created correctly, right? Do they look like they should even if they're not being sent back to the browser? Have you checked (or had the host check) windows and CF error logs? There should be something. If the issue was the result of a headless Win install, chances are that the graphing subsystem would fail during CFMX bootstrap... that's how it works on Linux, and also the primary cause of CFCHART issues on linux. People fail to understand that CFMX needs the basic X libraries to get cfchart to work. If you do a view source after hitting a page that's got a CFChart in it, you should see some URL information that's used to transfer the images/movies from the Chart servlet to the browser... trying hitting that URL alone and seeing what error message you get. Go from there, paying particular attention to paths, virtual or otherwise, that are missing or incorrect. Good luck! J On 6/10/05, Allan Cliff [EMAIL PROTECTED] wrote: If I remember correctly. What you have to do is. 1. Create the file CFIDE/GraphData.cfm (Put a comment only in it) 2. Create a mapping for EACH site to CFIDE (C:\Inetpub\wwwroot\CFIDE) and JRunScripts (C:\CFusionMX7\runtime\lib\wsconfig\1) 3. Restart CFMX server and Bob should be your Uncle. Allan -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209216 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: mx 6 licenses?
And, just to complicate matters... :) CFMX 7 is the same price as 6.1, so if you go with 7 you'll get an extra upgrade cycle and a lot of benefits in terms of functionality and power. Unless you're looking to pick up 6.0 licenses on the cheap just because it's a deprecated product, I'd highly recommend 7 just because of the deprecation likelihood of 6.1 in future upgrade cycles. If you need licensed versions of a CF engine, look at BlueDragon Standard... which happens to be quite speedy and powerful, but also happens to be free. Laterz, J On 6/10/05, James Holmes [EMAIL PROTECTED] wrote: Agreed - I stongly recommend against running CF 6.0. 6.1 is the way to go. -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209217 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: Dealing with users
Instead of working with mad statistics, which gives even math majors headaches... Is this something where there's an HR manager who is permitted to see all the data... i.e. someone who could be labeled a Program Administrator? If so (and I actually did this once... successfully) I'd lobby to force the person filling out the survey to supply an employee number and name. Make a big deal out of it, with a great big red Flash checkbox at the end that says something ominous like I hereby solemnly swear that these answers were truthful and if not I may be legitimately being feed to the Ravenous Bugblatter Beast of Omicron V... if even he can stomach my putrescent self. Then, when someone cheats, let loose the Corporate Hounds to chew their asses. I mean, frankly, if management isn't taking this seriously enough to have a talk with those doing the cheating, then the project is pretty well defeated before it starts. This would also be a good way to judge management's commitment to and understanding of the importance of the project as a whole. Laterz, J On 6/1/05, Thane Sherrington [EMAIL PROTECTED] wrote: Here's a a problem I'm wrestling with. I have a company doing on-line performance reviews. Each employee rates a set of other employees on a survey which has six categories with between 3 and 7 questions in each category. The problem is that there are a couple bad apples who blow through the surveys rating someone either all 1s or all 5s, throwing off that person's ratings and effectively ruining the value of the performance review. My first attempt to stop this was to time the surveys. People who finished them in less than five minutes (the cheaters generally take two minutes) got a message telling them to go back and think about their answers and try again. That didn't work because it turned out that several non-cheaters print out the review and do it on paper, and then login to enter the answers - since they were working from paper, they finished the review in under five minutes. Then I tried checking each category - if all the answers in a specific category were the same, I rejected the review and told them to do it again. No soap - occasionally there are legitimate reviews where one category has all the same answers. So then I switched to checking the entire survey. If all the answers are same, the survey gets rejected. It took the cheaters slightly under a quarter of a second to figure that one out, as you can imagine. The surveys are all anonymous, so I can't simply go to the person entering the survey and tell him/her to stop cheating. Can anyone think of a way to monitor and block the cheaters? T -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208330 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: Dealing with users
Great idea unless someone does really well on the one real review filed and everyone else cheats below 3. Then you've got someone who's really getting screwed because the math just doesn't work. I kind of like reporting all the data and several views of it. But I still favor a personalized report... I have to create an account. My name and employee number are linked to the data, but the application keeps the data private. Each survey I fill out is registered under me and my averages are shown... average scores given per category, high/low scores given per category... I KNOW that this data can be seen and after cheating on 4 of them I see that my average, high, and low are all 4... and I start to worry. I'm given one chance by the system to fix each survey, and as the system watches me fill them out it can email me to say It's obvious you're not taking this seriously. A copy of this email has been sent to your supervisor, and you have 24 hours to redo these surveys: link, link, link. Non-compliance is grounds for severance (our choice of limbs), termination (and no, you won't be back), firing (would you like a last cigarrette?), and a good, old-fashioned ass-kicking in front of (or, more likely... BY...) the senior management staff. Each survey filled out about me is viewable by me (except the names of those filling them out).. along with all my averages, highs, lows, blah blah blah. This screams THIS IS IMPORTANT, TAKE IT SERIOUSLY. Otherwise... it's pointless... statistical analysis notwithstanding. Laterz, J NOTE: This is free advice. It is important to remember that often one gets what one pays for. On 6/1/05, Eric Dawson [EMAIL PROTECTED] wrote: drop the top 25% and bottom 25% or report ALL the data and few ways to look at it. is it tied to remuneration? or just for discussion? Maybe a little more discussion on the apps intent will help. block cheaters? are they cheating really? What's the nature of the work? Is there a reason why their managers are disconnected from their performance? Are there other performance metrics available? Are they being used? Is this a learning organization? ie steady flow of learning? Eric -Original Message- From: Dave Francis [mailto:[EMAIL PROTECTED] Sent: June 1, 2005 10:32 PM To: CF-Talk Subject: RE: Dealing with users It's been a while, but I seem to remember something about using median (or maybe its mode?) rather than mean to reduce the impact of very low/high entries? -Original Message- From: Thane Sherrington [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 01, 2005 9:03 PM To: CF-Talk Subject: Dealing with users Here's a a problem I'm wrestling with. I have a company doing on-line performance reviews. Each employee rates a set of other employees on a survey which has six categories with between 3 and 7 questions in each category. The problem is that there are a couple bad apples who blow through the surveys rating someone either all 1s or all 5s, throwing off that person's ratings and effectively ruining the value of the performance review. My first attempt to stop this was to time the surveys. People who finished them in less than five minutes (the cheaters generally take two minutes) got a message telling them to go back and think about their answers and try again. That didn't work because it turned out that several non-cheaters print out the review and do it on paper, and then login to enter the answers - since they were working from paper, they finished the review in under five minutes. Then I tried checking each category - if all the answers in a specific category were the same, I rejected the review and told them to do it again. No soap - occasionally there are legitimate reviews where one category has all the same answers. So then I switched to checking the entire survey. If all the answers are same, the survey gets rejected. It took the cheaters slightly under a quarter of a second to figure that one out, as you can imagine. The surveys are all anonymous, so I can't simply go to the person entering the survey and tell him/her to stop cheating. Can anyone think of a way to monitor and block the cheaters? T -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208331 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: CFMX 6.1, WSDL, and JSessionID's
Jordan, For ever session, CF creates cfid and cftoken, url_token, and Jrun (if using J2EE sessions) adds a jsessionid as well. Those are going to always be the same IDs across that single session provided that you have setclientcookies=true in your Application.cfm/.cfc or you're correctly passing url_token around in your links and relocates. So you could use #cfid#_#cftoken# or #jsessionid# (just cfdump the session scope to see its exact contents) to accomplish this. If it's not maintaining your sessions, then you have a different problem and I'd study up on the particulars of the cfapplication tag or application.cfc to make this work. Laterz, J On 5/23/05, Jordan Michaels [EMAIL PROTECTED] wrote: Hello! I'm currently attempting to make use of a web service that supports paging. For example, I can pass on a search to a web service, and then (presumably) hit the next page button to get the next page of results from the web service. The problem I'm running into (I think) is that CF is not passing on the same session id that it used to make the previous request, so the nextPage method fails. Is there any way that I can have cold fusion use the same session ID for every invocation of this web service? I have a workaround, but I'd prefer not to use it as it requires that I grab ALL the results in one call and then page through them manually. If I was able to use the NextPage method calls to this web service would require much less bandwidth. Thanks in advance! -- Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ [EMAIL PROTECTED] -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207450 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: Migrate Settings from 6.1 to 7
You'd be better off to copy the CFusionMX folder to the new server and install 7 to let it handle its own upgrade process than to try migrating settings after the fact. If you do that, 7 will self-integrate all the settings from 6.1 the first time you run CFAdmin. Laterz, J On 5/23/05, jonese [EMAIL PROTECTED] wrote: Is there any easy way to migrate mappings and datasources from CF6.1 to CF 7 when they are on two differant servers? Can i just copy the .xml files from one to the other? jonese -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207452 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: Migrate Settings from 6.1 to 7
Jonese, Hmmm... that being the case, how would you get access to the server's config files at all? I don't think you can just copy the XML files across because CFMX 7 has enough differences that it probably won't work. You could save the XML files, create a developer edition of 6.1, upgrade that to 7, and then deploy with the resulting XML files, except they contain pathing information and so on that would make this a very touchy issue. You might be better off to just take notes and deploy by hand. Hopefully, one of the Macromedia CFMX product people (Tim? Oh, Tim?) will stop in and see this question. Sorry to be unhelpful, you're in a sticky spot... I don't think there's an easy answer. Laterz, J On 5/23/05, jonese [EMAIL PROTECTED] wrote: J, We are moving hosting companies so we don't have this ability. jonese -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207475 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: cfc caching?
I don't suppose it would be possible to see some code? This sort of thing is hard to troubleshoot without some specifics... the one thing that comes to mind is this: Is it possible that you're editing a different copy of the file that's actually executing? I've had this happen when I'm editing /site/test/my.cfc and trying to run /site/cfc/my.cfc... just a thought. You might try CFDUMPing the page context's getBuiltinScopes() results (cfdump var=#getPageContext().getBuiltinScopes()# /) to see what's going on in the page. I'd also recommend something like a test.cfm that calls the CFC in question. Do something to provoke an error, maybe... like temporarily change the name of the CFC file, just to see what happens. It's entirely possible that an error message like that would give you enough information to figure out what's going on. Laterz, J On 5/23/05, Tim McGovern [EMAIL PROTECTED] wrote: I am inheriting a project that uses CFC's and have essentially no experience with them. I am trying to make some edits to a particular method (a new optional argument) with some new functionality if the argument exists. The next time I invoke the CFC with the new argument the new functionality does not execute. I've looked around to see if the CFC is being cached or if it has something to do with class reloading but I've rebooted the CF service and nothing seemed to change. I've also added: reloadtrue/reload compiletrue/compile to jrun-web.xml but did not seem to solve my problem either. Any direction would be much appreciated. Thanks in advance. - Tim -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207477 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: New to CFMX - session problem
Actually CF's sessioning has always been via cookies which have a 20-minute lifespan (or as configured via sessiontimeout or the CFAdmin). Since 3.1.1, anyway, sessions have outlasted the browser being closed by the value of the timeout... that is, the session will die 20 minutes or sooner after shutting the browser down, depending on how long it's been since the last activity on the site. Afaik, when using J2EE sessions they should expire when the browser closes because J2EE sessions are in-memory cookies. You could also try using cfapplication's setclientcookies=false attribute to prevent them being set at all, but that'll mean you need to append url_token to your links and includes to keep the sessions intact as the user navigates your site. Hitting a link with no ID/Token will kill the session and cause a new one to be created. Hth, J On 5/23/05, Mike Klostermeyer [EMAIL PROTECTED] wrote: I upgraded a server from CF 4.5 to MX 6.1. Previously, when a user closed their browser (without 'logging off'), the session expired. This is no longer happening. From what I can find, MX uses session variables differently, but I can't find anything that tells me what I need to do to get sessions to expire when the browser closes. I have tried to enable/disable J2EE Session variables from within the administrator, which did not solve this problem. Anything further I need to do? Thanks for your help. Mike ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207486 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: CFMX 6.1, WSDL, and JSessionID's
No, session variables are not passed along autmatically as part of a webservice call. If you want to do that, you're going to need to make sure that session.jsessionid is passed to the webservice as part of an argument structure. We just had this discussion at our CFUG a while back... you have to manually pass the session info to the webservice. Laterz, J On 5/23/05, Jordan Michaels [EMAIL PROTECTED] wrote: I guess the part that I'm trying to verify here is that CFMX passes on this jsessionid along with the web service request? I've got jsessionID's enabled via the CFMX administrator, so is there any way to verify that the jsessionid is passed along with the WSDL request? Thanks for the help! -JM -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207487 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: CFMX 6.1, WSDL, and JSessionID's
Jordan... That's kinda strange. My first thought would be that the webservice would be setting that cookie to a namespace in CFMX, not at the browser where it needs to be to stay connected to that user... if that's even possible. Um... you could try CFDUMPing the results of the first webservice call to see if you see a jsessionid, and then set it to a cookie yourself. I'm just not sure how you'd pass that back into the webservice. Is this a CF webservice or some other technology? It would probably work like a cookie being set as a result of a cfhttp call... it would exist in the headers immediately after the call, but would be discarded once that cfhttp struct was destroyed (like... on the next request). You might want to try cfdumping getHttpRequestData(). You might be able to get by with trapping that jsessionid into a different variable and then setting it into a header for the webservice call. I'd have to mess with it to tell you exactly how. Laterz, J On 5/23/05, Jordan Michaels [EMAIL PROTECTED] wrote: Hmm... after attempting to manually send the jsessionid I took a closer look at the web service specs, and it appears as though it's the web service itself attempts to set the jsessionid. It does this by attempting to set a jsessionid cookie on the first search request, then, if the web service is invoked again using the NextPage method it tries to access that jsessionid cookie. I guess it boils down to how CFMX processes its invokes. If a web service attempts to set a cookie like that, does CFMX retain the cookie? Or is cookie data ignored? Thanks again! -JM -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207490 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: why use coldfusion 7?
If you don't buy CFMX7, your hair will all fall out, your wife will run away with your secretary, your car's tires will all go flat, and your dog will decide to use the floor of the Mercedes for an emesis dish. This message was not endorsed by Macromedia. J On 5/18/05, mike hanson [EMAIL PROTECTED] wrote: Thanks to everyone for their contributions. I still haven't found a 'must have MX7' reason but there are alot of good arguements I can use. Mike -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206990 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: improper 404 on MX 6
Must be demons. You HAD to expect that, didn't you? If you put an index.html in there, can you get that by name: http://www.satanstool.com/index.html Is it using virtual sites? I'd check permissions, too... Is this a problem from inside the network, or only from the web? Laterz, J On 5/18/05, Michael Dinowitz [EMAIL PROTECTED] wrote: I just installed Raymond's blogCFC onto http://www.satanstool.com. I've decided to make the site into a media review blog for the time being. Everything went in ok except for one strange issue. If I go to the url as mentioned above, I get the blog page. If I go to any template on the site by name, I get a 404 error. It looks like a ColdFusion issue but for the life of me I can't see what it is. The machine is on CFMX 6.1 and IIS 5. Any suggestions? Thanks -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206991 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: improper 404 on MX 6
On a fluke, I tried /index.html and behold! fdfdfd... Had you tried that already, or did you get the email that fast? Laterz, J On 5/18/05, Jared Rypka-Hauer - CMG, LLC [EMAIL PROTECTED] wrote: Must be demons. You HAD to expect that, didn't you? If you put an index.html in there, can you get that by name: http://www.satanstool.com/index.html Is it using virtual sites? I'd check permissions, too... Is this a problem from inside the network, or only from the web? Laterz, J On 5/18/05, Michael Dinowitz [EMAIL PROTECTED] wrote: I just installed Raymond's blogCFC onto http://www.satanstool.com. I've decided to make the site into a media review blog for the time being. Everything went in ok except for one strange issue. If I go to the url as mentioned above, I get the blog page. If I go to any template on the site by name, I get a 404 error. It looks like a ColdFusion issue but for the life of me I can't see what it is. The machine is on CFMX 6.1 and IIS 5. Any suggestions? Thanks -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206993 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 end to end
Try something like this: cfset noHtml = reReplaceNoCase(htmlString, /*t[rhd]\s*\w*=**\w**, , all) Worked in my tests... Laterz! J On 5/18/05, Parker, Kevin [EMAIL PROTECTED] wrote: How do I identify TR and TD tags end to end for the purposes of replacing them with alternative content. I am using CFSAVECONTENT to grab a section of a page and re-process it. For example in my variable how do I identify tr height=18 irrespective of its length and content and replace it with or something or how do I identify td colspan=2 again irrespective of length and content, and replace it with or something. /TR and /TD tags aren't a problem of course. TIA ++ Kevin Parker Web Services Consultant WorkCover Corporation -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207002 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 end to end
Sorry, forgot to account for multiple attributes... do this instead: cfset noTblTags = reReplaceNoCase(htmlString, /*t[rhd](\s*\w*=**\w**)*, |, all) Laterz! J On 5/18/05, Parker, Kevin [EMAIL PROTECTED] wrote: How do I identify TR and TD tags end to end for the purposes of replacing them with alternative content. I am using CFSAVECONTENT to grab a section of a page and re-process it. For example in my variable how do I identify tr height=18 irrespective of its length and content and replace it with or something or how do I identify td colspan=2 again irrespective of length and content, and replace it with or something. /TR and /TD tags aren't a problem of course. TIA ++ Kevin Parker Web Services Consultant WorkCover Corporation -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207003 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 end to end
This is so much fun I've gone and written a UDF just for Kevin :). Pascal, thanks for the \b.*? because I don't use regexes that often and was having a bit of an issue getting my .* to stop at if you know what I mean. I knew it was there, just couldn't remember it. Here's the UDF (submitted to cflib already, too!): cffunction name=detableize cfargument name=string type=string required=true / cfset var outputString = arguments[string] cfset outputString = reReplaceNoCase(outputString , /*table, , all) cfset outputString = reReplaceNoCase(outputString , /*t[rhd]\b.*?, , all) cfset outputString = reReplaceNoCase(outputString , (?m)^\s*, , all) cfset outputString = reReplaceNoCase(outputString , \n{2,}, #chr(10)#, all) cfreturn outputString / /cffunction Hth... Laterz! J On 5/18/05, Pascal Peters [EMAIL PROTECTED] wrote: If you just want to replace them, you can simplify. This will replace all opening and closing tr, td or th tags with an empty string (CFMX+ only). cfset noHtml = reReplaceNoCase(htmlString, /*t[rhd]\b.*?, , all) Pascal -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207007 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: why use coldfusion 7?
Are you guys going Enterprise, or Standard? Because Ent includes Gateways and the instance manager in 7. Big big big difference. There's some enhancements to charting between the 6.1 and 7 products, too, if charting's important. There's the font manager in 7, to connect fonts to things like CFForm and CFDocument. I'll keep'em coming as I think of them :) Laterz, J On 5/17/05, Mike Hanson [EMAIL PROTECTED] wrote: I have a meeting with my boss on Friday to try and persuade him to go from cf5 to cf7. He wants to go for cf6 as it is a 'stable' release. This will mean alot of extra work for the developers (who would obviously go for cf7). We have looked at cf7 over the past few weeks and found it to be very stable but that is not enough to convince our management. Does anyone have a list of features that explain why 7 is better than 6 that I can use? I have looked through the macromedia site but it concentrates on the new features. Is there anything else like, what bugs in 6 are fixed in 7 and/or when will updates to cf6 cease? Any help will be appreciated. -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207013 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: dw popup ?
Easy one, Dave, On the Mac, go to the Apple menu. Choose the second-to-last option Shut Down Computer... Follow the prompts to the affirmative and you should be fine. In Windows, go to the Start Menu and choose the option Shut Down Computer and, again, follow the prompts to the affirmative... and again, you should be fine. In fact, if you do that... we'll ALL be fine. ;) Laterz, J PS - I have no clue how to get rid of that message other than switching to HS+ or CFE. Sorry. On 5/15/05, dave [EMAIL PROTECTED] wrote: I have this error message that pops up everytime i open a page with a cfc thats set to run live and it says something like, cfc can't be found at this location, anyone know how to turn that off? its really annoying me :) ~Dave the disruptor~ -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206837 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: cfcontent vs cflocation
Yep... I'd have never thought to try that. Interesting suggestion. That said, it will only work with images within the purview of a webserver... and I've been messing around with this a bit. Maybe this has worked this way forever, but this saves a LOT of typing: cfcontent type=image/png file=d:\images\#imagename# / I've used this sort of method in several places and always but a cffile followed by a cfcontent and a cfoutput. This seems to destroy the need for any of the above. Most cool. Laterz, J On 5/17/05, Burns, John D [EMAIL PROTECTED] wrote: Yeah, I think that's what he's getting at. I don't think he's thinking as much about hiding the source of the image as much as he's talking about processing some info before displaying the image. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206932 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: default IIS SMTP Mail server good enough?
so we were wondering if anybody had some thoughts or suggestions on which SMTP server to use with our CF Spam engine? ;) Hey, you left the end of the email entirely open to speculation. Sorry, really couldn't resist that opportunity. I know Ray Camden has postings of his favorite micro-MTA software on his blog. I can't recall the name, but it seems like it was able to handle a TON of traffic. The SMTP engine built-in to Win2k and so on really seems to SUCK! I use Postfix on SuSE for my in-house MTA and it's been chugging along without missing a beat for 3 years, headlessly. It's kind of a marvel to behold, really. Laterz! J On 5/17/05, Protoculture [EMAIL PROTECTED] wrote: We are currently sending out large batches of emails using the default iis smtp server. We are finding that many users are not getting emails and the queue folder has many items in it. They seem to be getting sent ( as the queue folder gets smaller )...but the problem remains that there are users who never get their emails. The daily volume would be around 20,000. On the Database / CF end things seem fine as users who dont get emails can be seen in the queue -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206933 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: CFHTTP and forms
It's possible they're using the image field to verify the validity of the form post, but unless that IS the case that image field is just a colorful submit button. If you really want to try messing with the form name, you're going to have to figure out what sort of header value it is and use a different type in a cfhttpparm tag. I don't know which one it is, but that'd be about the only way to do it. Still... I haven't ever seen that be an issue. I'd start with adding the image tag... just for the sake of protocol, but I doubt that's going to be your fix. You might see better success if you were to carefully examine what's happening on the target page. There may be user agent checking on the other end and you'll have to use the useragent= attribute of the cfhttp tag. There could also be IP-based restrictions, cgi-scope checking, and/or a few other things they used to insure against cross-site scripting. Your process is going to be: cfsilent cfhttp...{extra params if need be} cfhttpparams... /cfhttp /cfsilentcfoutput#cfhttp.filecontent#/cfoutput Good luck, J On 5/17/05, Mosh Teitelbaum [EMAIL PROTECTED] wrote: Wayne: I can't say that this is the problem, but your CFHTTP code is not passing any values from the Image form field. Image form elements act as pseudo Submit buttons except that, instead of just passing back a single value (the value of the Submit button), they pass back the (x,y) coordinates of the location on the image that the user clicked. Try adding the following 2 lines of code between your CFHTTP tags: cfhttpparam name=1234.x type=FormField value=0 cfhttpparam name=1234.y type=FormField value=0 These will let the product.php page know that the user clicked on the image at coordinates (0,0). Note that the name for each is 1234.x and 1234.y . The 1234 part is because that is the name assigned to the Image in the form. the .x and .y indicate the associated value's axis. -- Mosh Teitelbaum evoch, LLC Tel: (301) 942-5378 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206940 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: CFHTTP and forms
Ahh, thanks Dave. I was guessing, and I guessed wrong. See what you learn from the lists? So CFFORM mandates the name attribute to link the validation JS with the correct form elements... nothing to do with server-side at all. Good to know. Laterz, J On 5/17/05, Dave Watts [EMAIL PROTECTED] wrote: If you really want to try messing with the form name, you're going to have to figure out what sort of header value it is and use a different type in a cfhttpparm tag. I don't know which one it is, but that'd be about the only way to do it. The form name is a client-side HTML attribute, and is not returned to the server when a form is submitted. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206948 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: text formatting
I'll second FCKEditor, and add that HTMLArea and {the other one} are all great for that sorta thing... platform loyalist pissing contests aside. They all have a place and they all fill that niche well. FCKEditor is rather like StudioMX... the Total Package. HTMLArea is a much lighter and more limite product, which makes it great when you just need WordPad instead of Microsoft Office 2016. The nice thing about FCKEditor, though, is that it DOES accept copy/paste and will render anything you paste into it. It'll even take copy/paste from Word (though I haven't messed with that functionality). Laterz, J On 5/17/05, Ewok [EMAIL PROTECTED] wrote: Fckeditor would probably get you closest to the original formatting. But if you don't want to use that, this should get 90% of your line breaks. As for line breaks, I usually just use #replace(str, #chr(13)##chr(10)#, br, ALL)# You could do the same thing for tabs (just replace them with spaces or whatever) -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206950 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: why use coldfusion 7?
Mike... I just checked and the licenses for 6.1 and 7 are both $1299 USD... and Application.cfc, query metadata, the exstensively enhanced list of built-in functions, the ability to override a system function by name (i.e. I can write my own getAuthUser() method and CFMX will let me), CFDOCUMENT, the report generator, and the extensive performance increases aren't baubles. Hell, the addition of XML as a datatype to CFARGUMENT and CFFUNCTION types is more useful than Flash forms. MX7 has an enhanced AXIS engine that permits wider use of web services (like PayPal's webservice API... breaks on 6.1, works on 7). XML validation as part of the XML functions... the upgrade touches almost every aspect of being a CF developer. While you CAN continue to build fantastic web applications in 6.1 (and I continue to), working with 7 is a dream. It's 6.1in terms of stability and 100% more in terms of the fixes, updates, enhancements, and new things they included. You only gain moving directly to MX7... speed, performance, and not having to upgrade twice. If all else fails, give your boss my phone number... or just these URLs: http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentationfile=0212.htm#wp2462082 http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentationfile=0374.htm#wp3532531 And always remind him... MX 7 is built on the same stable release as 6.1. Laterz! J On 5/17/05, Mike Hanson [EMAIL PROTECTED] wrote: I have a meeting with my boss on Friday to try and persuade him to go from cf5 to cf7. He wants to go for cf6 as it is a 'stable' release. This will mean alot of extra work for the developers (who would obviously go for cf7). We have looked at cf7 over the past few weeks and found it to be very stable but that is not enough to convince our management. Does anyone have a list of features that explain why 7 is better than 6 that I can use? I have looked through the macromedia site but it concentrates on the new features. Is there anything else like, what bugs in 6 are fixed in 7 and/or when will updates to cf6 cease? Any help will be appreciated. -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206979 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: transparent png for ie hack
Dave, If you had a cfm template that had the following code: cffile action=read file=#url.filename# variable=image / cfcontent type=image/jpeg /cfoutput#image#/cfoutput And then you had another CFM template in the same directory that had the following code: img src=img.cfm?filename=D:\LocalFiles\My%20Pictures\DSC7.JPG / You'd see the image (this happens to be a picture of my friends 26-pound housecat... big, big, big cat) in your browser exactly as you'd see it if you called the image directly. Your browser uses an HTTP GET to nab the image, so call to the template img.cfm is an HTTP GET and the CF engine processes it and sends the image back to the calling template (the one with the img tag in it). The PHP script would do the same thing... so you could use img src=img.php?image=some path / to get the image file directly from PHP. If you wanted to use cfhttp to get the image, then your code in img.cfm would look like this: cfhttp url=http://whatever.url.com/someFile.php?image=imagepath; / cfcontent type=image/jpeg /cfoutput#cfhttp.filecontent#/cfoutput In this case, since PHP and CF are running on the same box, you could only use img.php directly if you used a relative path in your image tag: img src=/phpstuff/img.php just remember that src can be a URL... http://yadda.server.whatever/someImage.jpg (or cfm or php) and your browser will fetch the content for the image from that URL... so it even resolves URL variables and so on. Or you could use cfhttp and url=http:127.0.0.1/yadda/img.phphttp://127.0.0.1/yadda/img.php to get to the same file... it's up to you how you implement it. Laterz, J On 5/14/05, dave [EMAIL PROTECTED] wrote: cant you call a php page through cfhttp? I seam to recall being able to run a php page but this script calls for it once at beginning and again at end. None of the others are working probably because I am using 32 bit pngs and not 24. Leave it up to m$ to continue to screw simple things up so damn bad. ~Dave the disruptor~ -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206749 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: cfcontent vs cflocation
puzzled Hugo... ummm... CFLOCATION to where? CFLOCATION does a client-side redirect via headers (similar to a meta redirect). CFCONTENT sets the mime type of the content stream that gets returned to the browser (hence making a CFM template look like a JPG or a PDF). Perhaps I'm missing something obvious, but I don't see how their functionality could be analagous. Maybe a bit more explanation? Laterz, J /puzzled On 5/16/05, Hugo Ahlenius [EMAIL PROTECTED] wrote: Related to the IE hack thread: When you do the little trick and refer to a cfm template in an img tag (for instance) to enable some logic processing (or rendering of a dynamic image) -- wouldn't it make much more sense to do a cflocation after the dynamic rendering? (as long as you don't need to play with any custom headers) I just realized that this would work for some dynamic image generation (arcims) where the images would be stored on a web-accessible drive anyways -- and that this would enable some very good caching of dynamic images as well... /H. -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206785 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: Server Scope
Till the server reboots... it doesn't have a lifespan setting other than I'll be here till the server reboots. You could use any number of mechanisms to refresh it... As far as whether or not to create a CFC instance in the server scope there's no reason not to. You need to be aware of various conflicts that might occur... so I'd recommend named locks around any code that alters the data if there's a chance that more than one actor will try to alter the data. Basically, all the scopes are there to be used... my philosophy is to use them (except client... outside very specific circumstances.) Laterz, J On 5/10/05, David Brown [EMAIL PROTECTED] wrote: A few questions: Is it good practice or wise to create an object in the server scope? And if so how long does it live? I see in the administrator Memory Variables you can set the application and Session time to live, but not server scope. What I want to do. cfif (not structKeyExists(server, MyPalAuth)) or isdefined(url.Flush ) cflock name=Lock_MyPalAuth timeout=5 type=EXCLUSIVE cfobject name=Server.MyPalAuth component=mycoms.MyPalAuth /cflock /cfif I read this from Ben's new Advanced Macromedia ColdFusion MX 7 Application Development book. But he used Application scope. I want the object to be created once on our intranet and then invoke it when needed in more then one application. I could place it in the application scope, but then that would mean for each application I would have to recreate the object. -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206317 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: Google Web Accelerator problems
I blogged about it the day this thread started... http://www.web-relevant.com/blogs/cfobjective/index.cfm?mode=entryentry=B506BE87-BDB9-5320-E5D41D3A198CB5AF Let me know what you think of the post? Laterz, J On 5/10/05, Paul Vernon [EMAIL PROTECTED] wrote: Remember that it *does*, it still prefetches pages after you have logged into e.g. a forum, which website spidering tools do not do. If Google ever tie GWA into Googlebot by letting Googlebot have access to Google caching proxies, that will have major copyright issues etc as all that usually non-searchable 'members only' data instantly becomes available via Googles caching proxies... Just think... Googlebot... Reaches websites no other bot can reach... To paraphrase a popular beer sales slogan here in the UK... I know this question probably belongs in community so I'd welcome any replies there but Is anyone else a little worried about some of the directions that Google seems to be heading off in these days? Paul -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206258 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: More than one datasource in cfquery
Simmyana, Well... basically... you can't. :/ Perhaps a more in-depth description of the need would help us resolve the issue? Laterz, J On 5/9/05, simmyana a [EMAIL PROTECTED] wrote: Hi, How to use more than one datasource in cfquery tag? Thanks -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206032 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: Excel sheet datasource in CFMX7
It won't work by going in to CFAdmin, hitting Datasources, setting the New Datasource Type popup to ODBC and configuring it with the DSN of your OS-based ODBC DSN? I guess I hadn't considered that the ODBC connector from within CFAdmin was dependent on the ODBC agent... if you've tried it and it doesn't work, I can't think of a workaround right off the top of my head... I'll give it some more thought, though... J On 5/6/05, Duncan [EMAIL PROTECTED] wrote: Ok I get where you are coming from and I would think that if the CF ODBC agent was installed and running it would probably work. Unfortunately this server doesnt have the CF odbc agent. Any other ways around this without installing the odbc agent? On 5/6/05, Jared Rypka-Hauer - CMG, LLC [EMAIL PROTECTED] wrote: After setting up the OS-based ODBC datasource, you WILL need to go into CF Admin and create a CFMX DSN that points to your ODBC DSN by name, and supply the appropriate (if necessary) credentials. That is, you create an ODBC DSN via the Windows Control Panel and after that a CF Administrator DSN that points to the original ODBC DSN. It's confusing until you do it once. Don't hesitate to ask further questions. :) Laterz, J -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205824 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: CFMX: Dissed by Breeze and FlashLite?
resistance impact=futile post-type=obvious But my doctor gave me that lotion... he said it would be working already!! /resistance Oh well... J On 5/6/05, Ewok [EMAIL PROTECTED] wrote: obvious post I think what you are saying is wrong and is a blatant attempt to demean or upset me! :p /obvious post Hey! Let's play a game... Next person who posts to this thread has cooties!! -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205869 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: How do you get paid?
dave, you're such a slut! Good grief... J On 5/5/05, dave [EMAIL PROTECTED] wrote: money, merchandise, tail, whatever just 4 u jared ;) ~Dave the disruptor~ -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205811 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: CFFILE destination error
Daniel, I don't think CFFILE supports UNC paths... permissions notwithstanding. I think it expects a drive/directory on Windows. I'll test a lil more, but I'm thinking it's not going to work. Laterz, J On 5/5/05, Daniel Kang [EMAIL PROTECTED] wrote: \\swintranet1\d$\Inetpub\wwwroot\RefPosting is the right destination, but I am getting this error. What am I missing? The destination \\swintranet1\d$\Inetpub\wwwroot\RefPosting specified in the CFFILE tag is invalid. The destination either does not exist or is not accessible by this tag. The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line 17 15 : Destination = \\swintranet1\d$\Inetpub\wwwroot\RefPosting 16 : action = upload 17 : nameconflict =overwrite 18 : filefield = fileName tia -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205813 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: CFFILE destination error
I can UNC directly from the Run... command to the text file in question, but CFFILE can't find it. The only thing I can think of to test this is using a privileged account (like a Domain Admin) that might give you higher privs to access remote files... but that's Really Not a Good Idea. Sorry dude... J On 5/5/05, Daniel Kang [EMAIL PROTECTED] wrote: \\swintranet1\d$\Inetpub\wwwroot\RefPosting is the right destination, but I am getting this error. What am I missing? The destination \\swintranet1\d$\Inetpub\wwwroot\RefPosting specified in the CFFILE tag is invalid. The destination either does not exist or is not accessible by this tag. The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line 17 15 : Destination = \\swintranet1\d$\Inetpub\wwwroot\RefPosting 16 : action = upload 17 : nameconflict =overwrite 18 : filefield = fileName tia -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205814 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: CFFILE destination error
OK, one last followup... I just tested it using UNC to hit a file located on the same machine I've got CF Dev edition running on... and it worked. This is MX 7. So we at least know that MX 7 can do it if it has the right privs. So I'm guessing what you're experiencing is privs... what you could do is create a user account for CFMX on the server and have it run under that account intstead of.. oh... duh... Local Service isn't going to have foreign privs anyway. Sorry... you'll definitely have to create a domain account for CFMX to run under, then give that account privileges to access the file you want. Let me know if you need more help. Laterz, J On 5/5/05, Daniel Kang [EMAIL PROTECTED] wrote: \\swintranet1\d$\Inetpub\wwwroot\RefPosting is the right destination, but I am getting this error. What am I missing? The destination \\swintranet1\d$\Inetpub\wwwroot\RefPosting specified in the CFFILE tag is invalid. The destination either does not exist or is not accessible by this tag. The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line 17 15 : Destination = \\swintranet1\d$\Inetpub\wwwroot\RefPosting 16 : action = upload 17 : nameconflict =overwrite 18 : filefield = fileName tia -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205815 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: CFFILE destination error
If you're still running CFMX under the System account (assuming CFMX on Win), then it won't have access to foreign folders at all. \D:\ or \D$\? You need to test this against \\localhost\{drive}$\folder or change the account under which CFMX runs (available via properties for that service in the Services control panel) to access share points on remote boxes. J On 5/5/05, Daniel Kang [EMAIL PROTECTED] wrote: OK, I created a folder (\\swintranet1\D:\IntranetData) with full privs for SYSTEM, Users, etc. If I upload Word, String index out of range: -5 The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line 18 16 : Destination = \\swintranet1\D:\IntranetData 17 : action = upload 18 : nameconflict =overwrite 19 : filefield = fileName If I upload Excel, String index out of range: -1 The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line 18 16 : Destination = \\swintranet1\D:\IntranetData 17 : action = upload 18 : nameconflict =overwrite 19 : filefield = fileName If I upload Access, The destination \\swintranet1\D:\IntranetData specified in the CFFILE tag is invalid. The destination either does not exist or is not accessible by this tag. The error occurred in D:\Inetpub\WWWROOT\RefPosting\InsertData.cfm: line 18 16 : Destination = \\swintranet1\D:\IntranetData 17 : action = upload 18 : nameconflict =overwrite 19 : filefield = fileName Why is that? tia -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205821 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: Excel sheet datasource in CFMX7
After setting up the OS-based ODBC datasource, you WILL need to go into CF Admin and create a CFMX DSN that points to your ODBC DSN by name, and supply the appropriate (if necessary) credentials. That is, you create an ODBC DSN via the Windows Control Panel and after that a CF Administrator DSN that points to the original ODBC DSN. It's confusing until you do it once. Don't hesitate to ask further questions. :) Laterz, J On 5/6/05, Michael Bramwell [EMAIL PROTECTED] wrote: If your using a windows box i reckon you can install the excel datasource as an obdc datasource without using cf admin start - control panel - administrative tools - datasources (obdc) - system dsn - add - choose microsoft excel driver - next steps are pretty obvious. Haven't tried this for excel files but have had success with access databases via this method. -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205822 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: CFMX: Dissed by Breeze and FlashLite?
Maybe that was my problem... ;) I thought the WACK was a code dictionary. Hehe... Really Ben, I don't think you'll ever know the depth of your impact on the CF community. Without the WACK I'm not sure it would have built up the user base in the early days to be what it is today. For me, and for years, your stuff was my only source of information. Now I'm curious... has anyone hand-coded all the samples to create a running copy of Orange Whip Studios? I must admit, I never did... :) Laterz, J On 5/4/05, James Holmes [EMAIL PROTECTED] wrote: ROFL! I think the WACK is actually rather good for best practices etc - as long as people read the entire thing as they are supposed to. -Original Message- From: Ben Forta [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 May 2005 11:26 To: CF-Talk Subject: RE: CFMX: Dissed by Breeze and FlashLite? someone who just picked up a copy of the WACK and went to town Oh nice, so now *I'm* going to get blamed. ;-) -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205541 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: Weird problem with CFLOGIN and Session variables
All you're going to need is something like this: cfif not Len(getAuthUser()) and structKeyExists(session,someSessionVar) cflocation url=mylogoutpage.cfm /cfif In your logout page, run the cflogout tag, which does not error if there is no user logged in... and then something like this: cfloop collection=#session# item=i cfif i IS varToDelete cfset structDelete(session.i) cfelseif i IS loggedin cfset session[i] = false /cfif /cfloop Now that's example code, and not really customized for CFC use... I generally start using page-scope code and then migrate it to CFC wrappers once I know it's doing what I want it to do. HTH, J On 5/4/05, James Holmes [EMAIL PROTECTED] wrote: You might have to post the contents of the cflogin block, as this is very weird. -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205542 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: Weird problem with CFLOGIN and Session variables
Ooops, missed a part of the message from Fabio... yeah, it's a bit odd. Fabio, are you using onSessionStart and onSessionEnd events to control your sessions? Really, what you should be doing is using onSessionEnd to clean up your session when it times out instead of detecting problems later and trying to work around them. Laterz, J On 5/4/05, James Holmes [EMAIL PROTECTED] wrote: You might have to post the contents of the cflogin block, as this is very weird. -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205547 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: Good Miva Merchant Store replacement
John, I've recently released a commercial PayPal integration kit for CFMX applications... Check it out at http://www.web-relevant.com/PayPalMX As far as an Ecommerce store, you really can't go wrong with CartWeaver: http://www.cartweaver.com/ Laterz, J On 5/4/05, Burns, John D [EMAIL PROTECTED] wrote: I'm looking for some recommendations for an Ecommerce store replacement. Currently, we have a customer that uses MivaMerchant, but it pretty much sucks and they're having all kinds of problems. I, personally, would prefer a CF store with the ability for me to modify code and/or build interfaces as needed. However, the server supports .NET and PHP as well. The requirements for the software is that is support multiple stores and interface with Authorize.net http://Authorize.net and Paypal for payments. Any suggestions for or against any products would be appreciated. John Burns -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205550 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: Weird problem with CFLOGIN and Session variables
Fabio, I suggest you give onSessionEnd a try... if for no other reason that to write a few log file entries. Maybe not permanently, but at least while troubleshooting. I think that what's happening is this: while J2EE sessions promise some nice things, they're not quite working correctly. :) What else... cflogin doesn't run if there's a logged in use... Oh, Fabio... use LOTS of CFLOG tags... I first had to use a TON of them to get some quirks out of CFMX 6.1 code for cflogin. Log pass/fail, before/after, anywhere you can trap the difference between one state and another, log it. And you might want to use cfif structKeyExists(form,j_username) and NOT len(getAuthUser()) instead of cfif NOT isDefined(cflogin)... it reverses your logic a bit, but it should still work. I also don't include the form inside cflogin. I use cfif not len(getAuthUser())cflinclude.../cfif to include the login form and cfif structKeyExists(form,j_username) inside my cflogin tag. Maybe later I can send you my cflogin code... Laterz, J On 5/4/05, Fabio Terracini [EMAIL PROTECTED] wrote: Really odd! Jared, I'm not using onSessionStart, neither onSessionEnd. The Application.cfc only contains the application variables (this.namehttp://this.name, etc) and onRequestStart method, which includes the cflogin block. Should I use onSessionEnd? When the browser close, both login and sessions are ended anyway. I did some test, setting output=yes on onRequestStart, and tracing weather block of code is beeing executed or not. When the problem occurs, the user doesn't enter the cflogin block as it should, which is weird, since he isn't logged in. If he was logged, the login form won't display: the user will enter the system directly. Anyway, just a thought: the problem seems to be with cflogin, since when the user tries to login again, he doesn't enter the cflogin block. This is way session variables aren't beeing setted. This is fine. But, why ain't enterting the cflogin block? As I said - and you suggested - in the login form, and also before logging in, I loged out (cflogout), cleaned session (and cookies too) variables to ensure the user isn't logged in in anyway. Didn't worked out. Thanks, -- Fabio Terracini Jared Rypka-Hauer - CMG, LLC wrote: Ooops, missed a part of the message from Fabio... yeah, it's a bit odd. Fabio, are you using onSessionStart and onSessionEnd events to control your sessions? Really, what you should be doing is using onSessionEnd to clean up your session when it times out instead of detecting problems later and trying to work around them. Laterz, J On 5/4/05, James Holmes [EMAIL PROTECTED] wrote: You might have to post the contents of the cflogin block, as this is very weird. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205564 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: CFMX: Dissed by Breeze and FlashLite?
On 5/4/05, Dave Watts [EMAIL PROTECTED] wrote: People seem to be in the habit of comparing Macromedia's stewardship of CF to the good ol' days of Allaire. Well, Allaire had how many products? One, really, unless you count Allaire Forums and Spectra - both of which were handled poorly, in my opinion. Oh, I forgot JRun - but neither Allaire nor Macromedia really push that at all, they just used it to build a bunch of other products. Uh... Jrun? What's that? Heh... really, now, boys and girls... Flash/Flex/Central/FlashLite/Flash Mobile/FlashPaper and friends. Jrun/CFMX/WPS... Dreamweaver, and Studio MX 2k4 (which, btw, still includes, by special request, HS+ for us old-school hacks)... RoboDemo/RoboHelp and friends... Breeze... Breeze now has the footing to compete with WebEx and the like. CFMX now has the technological underpinnings to really give traditional J2EE and .NET a run for the money in the Enterprise. Flex has one competitor, which admittedly r0x0rs, and is free, which means that CF/PHP and Flex/OpenLazlo are decent analogies. These things indicate growth. These things indicate momentum. These things are signs that we're on the right track and really shouldn't be wasting time and resources bickering about front-page real estate at MM.comhttp://MM.com. I know I'm blending a couple threads here, but first of all, free CFMX would mean that those who chose BD over CFMX because of the free edition would have more choice, that I would have been able to do at least a dozen more projects than I have in the last year (duh, why didn't I use BD? Dunno... cuz I'm a nitwit I guess.) and those n00bs who use PHP cuz it's free would have their teeth ripped out. I know of several colleges that offer CFMX classes as electives, not part of a CSci program, and that's a fine idea. I never had a CS class in my life... and I've had to struggle a lot. But, in point of fact, it all comes down to market penetration, leverage, and money. As for the screen real estate issue at MM.com... I seriously think that to proclaim to the world that a lack of front-page real estate is a sign of MM's mindset is overreaching yourself a bit, dude... back up a bit and let them speak for themselves. It's a little pushy to be proclaiming what they think for them. Laterz, J -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205565 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: Weird problem with CFLOGIN and Session variables
Good news on the solving part... sometimes that's all one really wishes to achieve. I'll let you know if I find anything on my end... J On 5/4/05, Fabio Terracini [EMAIL PROTECTED] wrote: I rewrited all the code and I'm not using cflogin structure anymore (with j_username and j_password). Also, I deleted all classes in cfclass directory and have a cfif StructKeyExists(form,'j_username') cflogout /cfif before the cflogin block. We're running some tests, but I believe it's solved by now, although the specific bug wans't discovered. Thanks, Fabio Terracini -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205609 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: Basic web interface question
Either option 1 or a confirmation page... Your updates have been saved with a redirect to the original list page. I generally try to use something that keeps the architecture to a minimum and the user's experience very straightforward. If that means some extra work for me, that's fine because it generally results in a more optimal experience for the user. Something I've been thinking a lot about lately is the fact that too often we try to save work for ourselves... what's the point? It's great to keep development time down (and especially on-budget) but if the net effect reduces the pleasantness of the user's experience, I see myself as having failed miserably. It goes back to the ideas presented in a post on Hal Helms's blog about his frustrations with phone support at a hotel chain. If the user ends up frustrated or confused the time spent on development is a total waste. Laterz, J On 5/4/05, Dave Merrill [EMAIL PROTECTED] wrote: It's not like I haven't done this before, in various ways, but I might as well ask as long as I'm rethinking life... Say you have the very normal situation with search screen leading to a list of records, drill in to edit or create one. Where do you take the user when they save an edited record? - Back to the record list, with their previous search criteria still in place? That seems most intuitive, but it means hanging on to those search criteria while editing, which is potentially a multiple-screen wizard-like thing. Not impossible by any means, but an architectural commitment, if you're thinking generically. -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205631 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: ColdFusion MX 6.1 and 7 on the same server
I don't see how this is going to kee mod_jrun from conflicting with mod_jrun in the same instance of Apache or the others. I've never done it before, but in theory, it would be fairly easy to set up 2 IP addresses on one interface, then bind one instance of apache to each, and then run CFMX 7 on one and 6.1 on the other. I've actually been contemplating setting up scripts to create instances of apache, MySQL, and CFMX on the same physical box, hence each application gets it's own virtual environment in every way. But, this would be easy enough once you had the details on creating multiple apache instances on the same server... just not something I've done before... it may be as simple as just having separate http.conf file for each instance. I'd check the apache docs. Laterz, J On 4/28/05, Thomas Chiverton [EMAIL PROTECTED] wrote: On Wednesday 27 Apr 2005 16:58 pm, wolf2k5 wrote: On 4/27/05, Thomas Chiverton [EMAIL PROTECTED] wrote: Yes, run it on a different port. What about the JRun module name conflict reported by Jared? Use Apache, Squid, Pound or Something Else as the front end web server and map different hostnames to different localhost ports. -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204994 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 loop over this struct and give me a total?
Mostly because it's uber simple at this point and growing toward a deeper OO implementation and because it takes a great deal of explanation to take a strong CF developer to a well-formed OO implementation. For someone who's working with example code from some other source and getting intermittent output, pushing to far too fast only creates confusion. I think sometimes we answer questions that aren't being asked without realizing that they're not being asked because someone just hasn't gotten far enough into the technology to ask it. By answering it too soon we only create confusion for them. In this case, Will's working on a simple, one-off shopping cart for someone... it's good foundation, and like we all have, someday he'll look back at this and wince or at least smile and remember the good old days. The cart in this case is only one cart, and it contains a struct of products... so its getCartTotal method only has to total the subtotal values in each product. In other words there is only one cart to pass to the function, so the function might as well assume that for now and later, refactor refactor refactor. In all, what's most important is to not but The Cart before The Horse and get things even more muddled before it's been made to work the first time round. And just out of curiosity, how is that a best practice? I'm not sure I follow the logic... if I have one cart/session in session.cart, and I want a subtotal of that cart, how is session.cart.getTotal(session.cart) a best practice and who's best practice is it? ;) Laterz, J On 4/28/05, Joe Rinehart [EMAIL PROTECTED] wrote: Will, Why do you reference variables.cart in your function? It'd be more of a best practice to pass GetCartTotal the cart in question, like so: cffunction name=GetCartTotal access=public returntype=numeric output=true hint=Show total of cart in dollars cfargument name=cart required=true type=struct hint=I am the cart to total cfset var cartTotal = 0 !--- Don't forget implicity created variables need declaration too! --- cfset thismerchID = cfloop collection=#arguments.cart# item=thismerchID cfset cartTotal = cartTotal + arguments.cart[thismerchID][subtotal] /cfloop cfreturn cartTotal /cffunction Then, in your calling code, do: GetCartTotal(variables.cart) instead of GetCartTotal() -Joe -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204996 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 loop over this struct and give me a total?
Dave, you're a twit. ;) Will... that's messy. :) cfset variables.cart[ARGUMENTS.merchID] = StructNew() cfset variables.cart[ARGUMENTS.merchID].qty = ARGUMENTS.quantity cfset variables.cart[ARGUMENTS.merchID].price = ARGUMENTS.price cfset variables.cart[ARGUMENTS.merchID].subtotal = ARGUMENTS.price * ARGUMENTS.quantity There... no more extraneous hashes and quotes. cffunction name=GetCartTotal access=public returntype=numeric output=true hint=Show total of cart in dollars cfset var cartTotal = 0 cfloop collection=#VARIABLES.cart# item=thismerchID cfset cartTotal = cartTotal + thismerchID.subtotal /cfloop cfreturn cartTotal / /cffunction There... see how neat that is? Tidy, readable, indented... and much easier to follow for anyone trying to see what it does. It also works, I think... though I haven't tested it. :) Laterz, J On 4/27/05, Will Tomlinson [EMAIL PROTECTED] wrote: I'm having brain lock again. I've built a function that should loop over a struct and give me a total for the cart items. Could someone point me in the right direction? here's what the struct looks like: cfset variables.cart[#ARGUMENTS.merchID#] = StructNew() cfset variables.cart[#ARGUMENTS.merchID#][qty] = #ARGUMENTS.quantity# cfset variables.cart[#ARGUMENTS.merchID#][price] = #ARGUMENTS.price# cfset variables.cart[#ARGUMENTS.merchID#][subtotal] = ARGUMENTS.price# * #ARGUMENTS.quantity# And here's the function I need to build to get a running total. cffunction name=GetCartTotal access=public returntype=numeric output=true hint=Show total of cart in dollars cfloop collection=#VARIABLES.cart# item=thismerchID cfset carttotal = VARIABLES.cart[#thismerch#][subtotal]?? /cfloop /cffunction Thanks, Will -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204878 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: OT: old MM software installs?
Damien, I have copies of both, but I'm out of town at the moment and don't have access to them. If you're still needing them as of next Tues... I'll be more'n happy to oblige. Let me know... J On 4/27/05, Damien McKenna [EMAIL PROTECTED] wrote: Due to what believe is CDs sprouting legs and running off, we're in need of install files for the following: ColdFusion Studio 5.0 evaluation Studio MX Plus evaluation I can't find them on Macromedia's website and my boss is in need of them having just reinstalled his laptop. Any leads would be appreciated. Thanks. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204879 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: nest #
Aye, those are nestings, not peer relationships... so you're not going to end up with productrange1.name, you're going to end up with productrange.1.name Which, unless you're using associative array notation (which the example wouldn't be unless the original was declared as a quoted string literal) will fail because a numerical value is not a valid variable name. I'm thinkin Pascal said it best... variables[productrange id].name Just because I like messing with variables, this could be extended... variables[productrange id].name[column1][1] Or even variables[productrange id].name[column id][variables[productrange id].currentRow] Ya never know when you're going to need a REALLY FREAKY variable to impress the girl next door. Hehe... J On 4/25/05, James Holmes [EMAIL PROTECTED] wrote: That would mean that id is an array or struct, indexed by the value of name, with Productrange in turn indexed by that value of id. -Original Message- From: Phillip B. Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, 26 April 2005 8:11 To: CF-Talk Subject: RE: nest # How about: #Productrange[id[name]]# Phil ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204408 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: Stupid XML question
Matt, for the struct output your page is showing you'd use ww_javagame.ww_cpid.value to get the value 0425070052843 BUT, why not just use xmlParse()? cfhttp url=http://my.xmlsource.com/page.xml; cfhttp.filecontent would then contain: ?xml version=1.0 encoding=UTF-8? ww_javagame ww_cpid 0425070052843 /ww_cpid ww_statuscode 2001 /ww_statuscode ww_statusmsg woo hoo /ww_statusmsg /ww_javagame cfset myXML = xmlParse(cfhttp.filecontent) cfdump var=#myXML # label=myXML This will result in a few things, one of which is slighly more complicated paths in the XML object generated by CFMX, but it will also make it possible for you to use things like XSLT via xmlTransform() and XPath via xmlSearch(). There's tons of info out there, and lots of XML users around (like me) who can help you if you need it. Now, using the method I outlined here (which is really more correct when using XML, because it's standards-compliant), you would use: myXML.ww_javagame.ww_cpid.xmlText to get the value: 0425070052843 If you take your cfdump output very literally, you'll get to just the data you need to, including attributes and elements. In XML: myXMLvalue type=stringthis is some text/myXMLvalue myXMLvalue is an element, type is an attribute and string is the value of the type attribute for the element myXMLvalue. this is some text is the xmlText value associated with the myXMLvalue element with a type attribute of string. Note: type and string are randomly chosen names/values. The don't denote any mandatory aspect of an XML element. It could just as easily have been widget=someWidget as type=string HTH, J On 4/26/05, Matt Robertson [EMAIL PROTECTED] wrote: On 4/25/05, Sean Corfield [EMAIL PROTECTED] wrote: !--- http://66.165.78.2/testoutput.cfm: --- Not authorized to access this page! sorry about that. Missed a digit in the IP: http://66.165.78.26/testoutput.cfm -- --mattRobertson-- Janitor, MSB Web Systems mysecretbase.com -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204409 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: Strange data mangling
Hey Ian... Question... and I think I can guess at the answer but I'd rather know your thoughts for sure... Why are you using ucase() on a numeric value? I'm assuming because it's not always going to be numeric, right? Next question... is the value in this variable being set by a process that insures it's a string, or could something like this be happening: cfset myVar = 02 -- note: no quotes. Numerical, not string literal cfset testVar = ucase(myvar) It doesn't do anything wrong in a test page, but it might be affecting the cfqueryparam tag... so give this a try: value=#ucase(toString(arguments.dataStruct.Tran_Code))# Also, do you have your cfargument tag's type= attribute set explicity to type=struct because that may be affecting things. Give'm a try, let us know... Laterz, J On 4/26/05, Ian Skinner [EMAIL PROTECTED] wrote: Can any one see why the following line of code would mangle a value such as 02 into 3LĂ002? TRAN_CODE = cfqueryparam value=#ucase(arguments.dataStruct.Tran_Code)# cfsqltype=cf_sql_varchar, I've tested the value just before this query and at that point it is correct and intact. But once the query runs a seemingly random 3 char value is pre-pended to the value that is supposed to be inserted. CF 6.1 Oracle 8i Oracle Thin Client If any of those matter. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204571 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: ColdFusion MX 6.1 and 7 on the same server
It's tricky... There's a couple issues that are real gotchas doing things this way. The short answers are: Yes, CFMX 6.1 and 7 will co-exist on the same server, both running at the same time. No, without modification, the Jrun connectors won't load into Apache because the connector name jrun_module is owned by whichever loads first and there's only one internal namespace for Apache connectors. There's a couple things you can do: 1) In CFMX 6.1, unzip the ApacheModuleColdFusion.zip file, edit the source to change any reference to jrun_module to read cmfx_module, and compile the connector. Then use that new name in your apache vhost config. I'm not even sure if this is LEGAL by Macromedia's EULA for the connector, and it's certainly not supported. But, I played with it a while back and it works. Compile instructions are in the associated txt file in the zip or here: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18748 It's nice, because you can load DSOs on a per-vhost basis... and use ifmodule to only load it if needed. Mind you, though, that even separate apache vhosts will share a common application scope because all CFMX variables are managed in CFMX's memory space, NOT apache's. 2) Quit using the connector altogether and use mod_proxy and mod_http_proxy to pass all requests for .cfm files to the CFMX server of your choice (based on your vhost's proxy config). For more info, see this: http://www.macromedia.com/devnet/mx/coldfusion/j2ee/articles/balancing_j2ee03.html The disadvantage is it's tricky to set up and get right. The major advantages are the ability to handle friendly URLs and even the fact that you can use any CFMX server you have access to... i.e. same box, different box, different network, etc. Very cool stuff. HTH, J On 4/26/05, wolf2k5 [EMAIL PROTECTED] wrote: Hi, I am running ColdFusion MX 6.1 Server Configuration on Red Hat Enterprise Linux 3 with Apache HTTP Server 2.0.46. Can I install CFMX 7 Server Configuration on the same Linux server and use it only for a few Apache virtual hosts, while keeping using CFMX 6.1 for the other virtual hosts? If so, how do I do it? Thanks. -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204580 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: Using Java Classes rather than CFC's?
Isaac, You forget... we're ColdFusion Developers and not Programmers of any sort. Remember? How are we to be taken seriously by real programmers on any subject relating to true OO implementations of anything? Hence, even if it works and we *think* it's similar to something we read in a Java book a while back, we're just not educated enough to understand. Really, what would any of us know about real programming or the need for such deep and heavy-duty conecpts as polymorphism i.e. overloaded constructors or multiple inheritance, interfaces, or dependency injection? I'm just completely relieved that we have such tremendous Java knowledge around here to help keep us all in our place... because ColdFusion is the tool of interface designers and really has no place in the Enterprise-class application development arena. Next time I'm tempted to write something like Macromedia.com in pure CFMX, I'll remember that I'm not supposed to do that... because it's too slow, and I don't know enough to make it work. Alas... and here I was starting to think I actually knew something about software development... oh well... Laterz! J On 4/26/05, S. Isaac Dealey [EMAIL PROTECTED] wrote: seems a bit muddled... you're always going to get methods of the current class (overridden or inherited) if you use variables.method(), this.method() or method() to call the method. Super.method() allows you to invoke a method of the parent class. -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204587 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: cfqueryparam and null values
I always forget that comparison operators generate a result Hence things are possible like: cfreturn myVar EQ 9 / or null=#myVar EQ 10# in cfqueryparam tags (null takes a string-literal representation of a boolean, hence that resolves to null=true or null=false). They generate a result as surely as math operators do... duh. I've been using iif(myVar EQ 10,DE(false),DE(true)) in this case... but I can quit that. NOW! I promise to get better, really, really I do! Thanks to Joe Rinehart for pointing this out to me and simplifying my cfreturn tags from cfif myVar EQ 10 cfreturn true / cfelse? cfreturn false / /cfif Laterz, J On 4/26/05, Pete Ruckelshaus [EMAIL PROTECTED] wrote: Are there any best practices for nulling cfqueryparam values? Currently I'm having to write a cfscript before this insert query that checks each value and then sets a specific null variable value that is then called from the cfqueryparam tag, otherwise the query fails. Problem is, it's a ton of code (inserting a bunch of columns), I'm feeling lazy (it's 5:01 and I've been at this page all day), and I think there should be an easier way (why oh why isn't there an autonull attribute for cfqueryparam?). Anyone? Pete -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204591 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: Using Java Classes rather than CFC's?
Bob, After reading thru these code snippets and your summary, I think what you're asking is Why can I implement functionc in sampleb when samplea doesn't implement functionc at all, but does call it? Is that right? Short answers: CFMX's OO features are relatively new. Give it time, maybe it'll improve. Because CFMX is not Java. Because CFMX is not C++. Because CFMX is CFMX, and as such any implementations you do in CFMX must be done as though you were implementing in CFMX. First of all, a good number of folks have, as you say, implemented blind methods that simply throw an error in a base class, which naturally requires an overridden method wherever it's used in the implementation classes. So it can be done, even if it's not handled directly by the CFMX engine. Second, never having written more than about 200 lines of Java, and probably less than 50 altogether in C++, I may be not getting it when it comes to understanding why limiting things, especially when they're not broken but simply different than Java would actually be an improvement. There are rules... you just have to know what they are. It would be kinda handy sometimes to have interfaces, multiple inheritance, and/or real constructors... but, as you said in an earlier post, Java is a beast... so why would we want to take an awesome, loosely-typed implementation of something like the BCEL and turn it back into the beast? Its rules *are* loose, as is datatyping, and they're this way because CFMX isn't Java, it's a J2EE application that runs on a JRE. Why invent what would amount to a new syntax for Java when we could just keep using Java for writing Java and approach CFMX as something entirely different? Something to think about... Laterz, J On 4/26/05, Bob Jacoby [EMAIL PROTECTED] wrote: You're absolutely right. It was my misunderstanding of a book I read describing the functionality in CF. However, rather than test it through a simple test case because it sounded weird to me, I accepted it. I was wrong. I was actually wrong in more ways than one... My interpretation of what the book was saying was wrong. It has nothing to do with calling an overridden method in a child class - it's about calling functions in the child from the parent even if the function isn't defined in the parent. I've since discovered (through testing that this isn't required at all). This new understanding makes me go huh so I'd appreciate input... snipped -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204610 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: CrystalTech Users Beware
I think maybe we need to get Will's cuss_checker CFC and add crystaltech to the banned words list. I'm not often one to say this, but can we please move on? J On 4/26/05, Brian Kotek [EMAIL PROTECTED] wrote: Clowns? Wow...ouch...that hurts. Think about that stinging barb long? Hate CrystalTech? Switch hosts. Think ColdFusion lacks in decent security options? Switch application servers. But stop your unrealisitc and belligerent whining. And I hate to break this to you, but if anyone on this thread has made people's do not hire list, it is you. On 4/25/05, Connie DeCinko [EMAIL PROTECTED] wrote: Remind me never to hire either of you clowns who have no concept of security or reality. -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204617 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 creating datasources locally different under jrun?
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?event=viewid=KC.6ef0253extid=6ef0253dialogID=7193183iterationID=1sessionID=9630d8ddd738754541a1stateID=0%200%207191786mode=simple Beware the wrap... J On 4/25/05, Mike Kear [EMAIL PROTECTED] wrote: I'm tring to set up my new dev machine, and I've got the same SQLServer2000 setup I've used for years. I've set up datasources ok using the control panel ODBC Administrator. But when I try to set up ColdFusion datasources, nothing I've tried in the past is working. I keep getting this error: [quote] The root cause was that: java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]Error establishing socket. Unknown host: [/quote] With my other pcs in the past, if I can't connect one way I'll try another and it's always worked. I've tried (local), 127.0.0.1, Notebook (thats my computer's name) for the server names and none of them works. Always the same result as above. Anyone got any other ideas? -- Cheers Mike Kear -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204227 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 creating datasources locally different under jrun?
OOPS! My bad... Why are you using ODBC?? Go into the Administrator, go to Datasources, and in the dropdown click SQLOLEDB. Then configure your datasource with the same settings you would in the OS Control Panel... IP (generally most reliable), username, password... those are all you should *need*... but if you click Show Advanced Settings it'll give you more options. I recommend against changing any of the advanced settings unless you absolutely need to. However, using the ODBC Administrator is pre-CF5, for one thing... and a whole lot more work, for another... and it puts your CFMX instance (which has a FULL JDBC implementation) at the mercy of the OS. The built-in drivers will be more reliable, faster, and a lOT easier to configure. Go for it! Try something new! J On 4/25/05, Mike Kear [EMAIL PROTECTED] wrote: Thanks Sean and Jared, but that reference is about CFMX7 drivers for MySQL4.1. My question was about MS SQLServer2000, which I've been using since it was released happily with WinXPPro, and now doesnt seem to want to behave the same way it did under the non-JRUN version of CFMX7. I'm not sure how this answer relates. It's about a change in the MySQL authentication mechanism. Does it also apply to MS SQLServer2000? Cheers Mike Kear Windsor, NSW, Australia -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204230 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: OT: need a little help with Apache please
On 4/24/05, Mike Kear [EMAIL PROTECTED] wrote: Thanks Jared. I'm wishing I hadnt fallen for that old I use Apache and it's a piece of cake rubbish now. For a coldfusion developer, who has never had a lot of involvement with server administration, specially in Unix, it's not a piece of cake at all. [A] For example, what is 'UseCanonicalName Off'? http://httpd.apache.org/docs-2.0/mod/quickreference.html [B] Why do I have to have DNS entries for everything if I'm only using my local folders, for local access, and nothing whatever to do with the internet? And since I dont have my own DNS server set up on this machine does that mean I have to have one now? Or do i have to add entries for all these in an external DNS, which means they wont be available when I'm offline, which was the whole point in the first place - to set up my dev machine so i can run my dev versions of the sites i'm working on. Because DNS will match the request from the browser (for http://intranet1 for example) to the machine that's running Apache (127.0.0.1 for example), so that the browser even knows where to look for the page! You have to have a host file entry (mini-static DNS-ey sorta thing) for matching 127.0.0.1 to even get localhost to come up even. MS: [windows root]\system32\drivers\etc\hosts or you won't find anything. Most UNIX: /etc/hosts Like Chris said (but expanded a bit), make sure this line is in there: 127.0.0.1 localhost {myhostname} intranet clientsite1 clientsite2 Note: {myhostname} is symbolic for whatever your hostname really is. [C] And what is this section about? IfModule mod_userdir.c http://httpd.apache.org/docs-2.0/mod/quickreference.html Note: You CAN have different module definitions on a per-vhost basis... [D] What does this line do: HostnameLookups Off I'd have thought it does exactly the opposite of what I'm trying to do. But apparently not. http://httpd.apache.org/docs-2.0/mod/quickreference.html Has to do with logging. [E] My apache installation set up the default home page to be at C:\Program Files\Apache Group\Apache2\htdocs and that's where localhost lands. ColdFusion also installed CFIDE and CFDOCs under there too, but I dont think that's a very good place to be putting web pages of any kind. I want to move it all to c:\sites.What does that change?Where is your default home page, and CFIDE and CFDOCS? There is no default home page or a default server... even in IIS, the default site is really just a virtual host that is called default for the sake of ease. In Apache, you have 2 choices... you can run the default server based on the basic, pre-packaged httpd.conf file. That gives you one server... http://yourhostname:80. However, if you want to run several servers or virtual hosts (or vhosts) you need to define a vhost entry for each of them. When you create ONE VHOST, IT SHUTS OFF THE DEFAULT SERVER that would have normally been at http://yourhostname:80, along with any resolution that would have happened for things like Directory and/or Alias directives in the httpd.conf file. Hence, you will need to have a vhost section in your config file for any URL you wish to access... http://hostname, http://intranet, http://clientsite1, http://clientsite2... all will need to have a vhosts section, and a directory section in order to tell Apache that it's ok to let browsers access those folders. These settings, when in default server mode (i.e. no vhosts defined), are activated via the body of the httpd.conf file... however, when you define ONE VHOST, they will ALL need to be defined per-vhost: DocumentRoot DirectoryIndex ServerName ServerAlias ServerAdmin Directory Alias Order Allow Please note: This means that if you have intranet and clientsiteX in your vhost configs and nothing with a ServerName directive of myhostname (i.e. your host's hostname), then typing http://myhostname will, indeed, fail. There is no default when using vhosts. For more info on any of those directives, see: http://httpd.apache.org/docs-2.0/mod/quickreference.html Sorry for being so dumb on this, but every time I think i have it worked out, another 50 or 60 parameters emerge that I have no idea about and I've never seen before. Not even in the sample httpd:conf. Aye, it happens... But I do appreciate your efforts on this. It's a big help to a poor old confused developer. Glad to help. Laterz! J -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message:
Re: OT: need a little help with Apache please
You're probably going to need a bit more data in you vhost configurations... i.e. Allow and/or Deny configs, but otherwise you should be fine... The DNS/Hostfiles suggestion is a good suggestion... I hadn't thought of that. :) But... you might also want to add DirectoryIndex index.cfm index.html to each. It's important to remember that as soon as you add a vhost entry to your config Apache quits resolving any of your default server entries, so you will need to have any settings required to make a default server work in each vhost. This URL could be quite helpful... http://httpd.apache.org/docs-2.0/vhosts/name-based.html Note the ServerAlias setting, which allows you to use multiple names per vhost... i.e. you can have multiple hosts per server when using a vhost setup. Also important to note is this: Main host goes away If you are adding virtual hosts to an existing web server, you must also create a VirtualHost block for the existing host. The ServerName and DocumentRoot included in this virtual host should be the same as the global ServerName and DocumentRoot. List this virtual host first in the configuration file so that it will act as the default host. I don't think your localhost config is going to work as a default site, because the default server goes away... Gotta run, but I hope that helps... Laterz! J On 4/23/05, Mike Kear [EMAIL PROTECTED] wrote: I'm needing a little help in understanding Apache's configuration please. I want to set up my various sites on my pcs as virtual hosts in apache, but not sure My directory structure is as follows: c:/sites c:/sites/intranet c:/sites/clientsite1 c:/sites/clientsite2 etc and I understood I could set it up so I can find the sites in my browser with : http://localhost (gives a directory listing of c:/sites ) http://intranet http://clientsite1 http://clientsite2 . etc. but i'm not sure what i should put in my http.conf file. I have the following at the very bottom of the file but it doesnt work - can anyone tell me what I've got wrong please? NameVirtualHost *:80 VirtualHost *:80 ServerName intranet DocumentRoot /sites/intranet /VirtualHost VirtualHost *:80 ServerName clientsite1 DocumentRoot /sites/clientsite1 /VirtualHost VirtualHost *:80 ServerName clientsite2 DocumentRoot /sites/clientsite2 /VirtualHost -- Cheers Mike Kear Windsor, NSW, Australia -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204179 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: OT: need a little help with Apache please
Mike, Here's a snapshot of my vhosts.conf file from my SuSE 9.1 server, running Apache 2.37 I think... whatever comes with SuSE 9.1: VirtualHost *:80 # Note that the server name and server alias work together # to allow both a local name and an internet name. # Both need to be in DNS ServerAdmin [EMAIL PROTECTED] ServerName myserver ServerAlias myserver.example.com # DocumentRoot and DirectoryIndex are self-explanatory DocumentRoot /srv/www/vhosts/myserver DirectoryIndex index.cfm # Custom logfile setup ErrorLog /var/log/apache2/myserver-error_log CustomLog /var/log/apache2/myserver-access_log combined # Misc setup parameters HostnameLookups Off UseCanonicalName Off ServerSignature On /VirtualHost # This is essential to allow Apache to read the folder # designated as the DocumentRoot in the vhost config block Directory /srv/www/vhosts/myserver Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all /Directory ScriptAlias /cgi-bin/ /srv/www/vhosts/myserver/cgi-bin/ Directory /srv/www/vhosts/myserver/cgi-bin AllowOverride None Options +ExecCGI -Includes Order allow,deny Allow from all /Directory IfModule mod_userdir.c UserDir public_html Include /etc/apache2/mod_userdir.conf /IfModule Please note that the Directory section is as important as the vhost section and the DNS entries. Without all the pieces in place it won't work. Laterz! J On 4/24/05, Mike Kear [EMAIL PROTECTED] wrote: No, I'm sorry Jared, but I've already read all that in the docs, and it didnt mean anything to me. No, that makes me seem like an idiot. Maybe I am, but I tried to do the stuff written in that URL you gave me, and it didnt work. That's where I worked out how to do what I did already, that didnt work. -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204215 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: Application Scope (was: CrystalTech Users Beware)
Thanks Bryan, that helps... not that it's really any of my business anyway. It's just that once in a while someone says something that makes me cringe... your post about application vars was one of them. There are so many misperceptions or even just situations where someone says things about CF that haven't applied since 4.5 or 5 but they still thinks it's true. It helps to get an explanation of why people think what they do, if for no other reason than to encourage conversation, which leads to growth and development. I appreciate the explanation. I understand now! ;) For me, the application scope has really become the core of applications... I've radically altered the way I approach applications since MX because of the fact that reference to static variables don't need to be locked and so on... it's there, and it oughta be used to it's greatest advantage! Laterz... J On 4/22/05, Bryan Stevenson [EMAIL PROTECTED] wrote: Can you please explain why you don't use application variables? Since it's impossible to use any of the mainstream frameworks like fusebox machii or modelglue without using the application scope, I assume that your applications aren't based on any of them. That said, and since you don't use the application scope I assume you're only caching data/CFCs for sessions or using the request scope. This day in age, that's a particularly inefficient way to do things... No good explanantion except long ago I misinterpreted what was going on with app scoped vars (plus locking was a pain back then)...so I use request scope...and re-thinking it now...most likely will jump back on the bandwagon ;-) That said...I don't use FuseBox, MachII, etc.just homegrown app framework (not gonna debate that one...being consistent is the key no matter what you do). 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 -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204118 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: Application Scope (was: CrystalTech Users Beware)
LMAO!! Sorry Bryan... but... that's rich. First off, your app values DO change when the values are updated. I had to read your post a few times just to make sure I was getting your meaning right... yeah, wrapping an if isdefined would keep the values from resetting if you changed the code. hence things like ?appreinit=1 in the URL and initialization routines. Can you please explain why you don't use application variables? Since it's impossible to use any of the mainstream frameworks like fusebox machii or modelglue without using the application scope, I assume that your applications aren't based on any of them. That said, and since you don't use the application scope I assume you're only caching data/CFCs for sessions or using the request scope. This day in age, that's a particularly inefficient way to do things... Please explain? J On 4/22/05, Bryan Stevenson [EMAIL PROTECTED] wrote: You can't modify application-scope variables without cycling the application? It's been years since I used application scoped varsbut yeponce set they don't get reset if you change the valueI always had to cycle the CF services or expire the app to get the change to take effect. Anybody else that's less hazy on the subject care to clarify?? ;-) I'm starting to think mabye I had cfif NOT IsDefined(Application.DSN) wrapped around my app var sets...but it's been awhile 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 -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204086 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 Database Question add.
No worries, Ali... that's why some of us join these lists. I'm interested to know, though, why you don't have your system either use an internally regulated ID number (like an auto-increment constraint on the column) or use something like a UUID that's generated outside the database... Having to do workarounds like this is kinda scary, eh? Laterz! J On 4/20/05, Ali Awan [EMAIL PROTECTED] wrote: Thanks to everyone who responded to this thread. Especially Jared and Jochem, I will try out the cftransaction with a serializable isolation level. I think that will solve the problem. Thanks again, Ali -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203795 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: Coldfusion is on NÂș 25 in tiobe.com
After 3 years on a support team in lab buildings at 3M I have at the very least heard of LabView. Not that I KNOW it in terms of being able to use it... But I have indeed heard of it... J On 4/20/05, James Holmes [EMAIL PROTECTED] wrote: LOL, they have LabVIEW above VBScript. I happen to know labVIEW because I did research in a field that it suited, but who else has heard of it? -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203615 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: CF Database Question
Ali, Wow... ummm... that's a shocker. As far as isolation levels... umm... which is worse: A performance Drop Perpetually Corrupted Data I have to say that to have the DB set up so that this could happen at all is a matter of concern for me. It doens't sound like a sound design. I hope that wasn't too blunt, but this should have happened to begin with. You've got a limited number of choices, and CFTransaction won't help unless you set the isolation level high enough that the next query can't write until the first query's data has been comitted. Read_comitted should be close enough, and give you less of a performance hit than serializable... but without reworking some things I'm afraid there's not a lot that can be done otherwise. You could set up an On Insert trigger to generate a UUID You could add an auto-incremented field You could add a date-time field with a default value of getdate() you could add an inserted-by field that carries the application name and cftoken values There's many different ways you could structure this to keep the data unique even IF the records end up with a confict such as you've encountered. I would HIGHLY recommend you add a UNIQUE constraint to the column in question as well... to prevent such duplicates in the future. You could code your create routine, then to try to insert, and in CFCATCH type=database check for whatever you need to see if a duplicate entry was attempted to be inserted in a column with a unique constraint and re-fire your create routine. These are just some thoughts... the eventual implementation is entirely up to you. Laterz! J On 4/20/05, Ali Awan [EMAIL PROTECTED] wrote: Jared, LOL, yeah it sounds like an Access issue. Actually we're using SQL 2k. Another question though, by using a high isolation level will that slow the app down significantly? I read in the docs that there's a lot of overhead associated with it? Thanks, Ali Ali, You'd be best off to use a CFTRANSACTION with a high isolation level, like read_committed or even serializable. I'm gonna take a stab at this and guess you're using Access? Keep us posted! J On 4/19/05, Ali Awan [EMAIL PROTECTED] wrote: -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203741 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: Admin API
Ooh, Sam... I'd love to help, which is why I opened this thread first. Now I find myself asking you to let us know if you find the answer! Sorry! But... A+ for Best Question. J On 4/19/05, Sam Smith [EMAIL PROTECTED] wrote: Hello all, I've been reading through the Admin API for a little while now and it seems that the function that I'm looking isn't exposed through it. What I'm looking for is this. My boss asked me to create an app that would clear the template cache of all our 17 CFMX 7 servers at once. I thought I could do that through the admin api, but no luck it seems. I may be missing something. Any thoughts? Is this possible? Samuel Smith ~~ [EMAIL PROTECTED] Web Developer, LifeAccess.com Inc. _Find Love at www.loveaccess.com_ 866-823-2200 x211 -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203559 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: macromedia and Adobe?!
So you used to work for Allaire? ;) J On 4/19/05, Burns, John D [EMAIL PROTECTED] wrote: Lol, I'd say that you are not the normal designer though...that was my point. Anyway I'll move on. As for my job, my company got sold (again). This is the 3rd time in like 4 years. 2nd time in the last 18 months since I started here. I think this time we'll be with this company for a while though. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203597 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 Database Question
Ali, You'd be best off to use a CFTRANSACTION with a high isolation level, like read_committed or even serializable. I'm gonna take a stab at this and guess you're using Access? Keep us posted! J On 4/19/05, Ali Awan [EMAIL PROTECTED] wrote: I have a question regarding ColdFusion and database requests. I have 2 applications on different servers, Server A and Server B and they both access a database on Server C. The problem is that recently that App1 on Server A and App2 on Server B ended up hitting the database at the same time. They both have identical code to insert a new record and whose ID is created by selecting a max id and incrementing it. They both ended up with the same ID. What is the best way to avoid this? I know that it is not possible to lock queries. If I wrap the queries in a CFTRANSACTION would that prevent this from re-occuring? Any help is greatly appreciated. Thanks, Ali -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203602 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: macromedia and Adobe?!
I'm NOT excited about putting: Powered by Dried Mud ON ANYTHING! But that's another issue... :) J On 4/18/05, Jack Dalaa [EMAIL PROTECTED] wrote: Wow, this is just totally surreal. Had a complete out-of-body experience there for a few minutes. The perspectives and consequences are just mind-boggling.. And not necessarily all bad. Adobe ColdFusion Adobe JRun Adobe Flex Adobe Dreamweaver Heh. The thought makes my head spin. I wonder what it will mean for CF. Wild stuff. Jack -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203171 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: SQL Triggers (was Re: Last ID inserted)
WOW... an amazingly appropos analogy. And... how true it is. ;) J On 4/18/05, Adam Haskell [EMAIL PROTECTED] wrote: Trust me. Triggers in the DB world are not looked on as good practive. I will second that in the DBA world Triggers are not looked upon fondly in most circumstances...they have thier use though and to blindly say they are completely useless is well blind. Triggers in the database world are like Ritalin in the real world...over valued, over used, and generally used when something else could be done; but there are some cases where it is genuinely useful and perfectly appropriate to be used. :) Adam H -- --- - Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203462 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 just need to strip out a space
Will: reReplace(form.prodscent,\s,,all) There's your regex... strips any kind of whitespace from the text in question. J On 4/17/05, Will Tomlinson [EMAIL PROTECTED] wrote: Assuming this is not a multi-line text area form field... cfset stripscent=Replace(FORM.prodscent, ,,ALL) Thanks Michael! It did the trick. Hopefully that'll be my only brain spasm for the day, but somehow I DOUBT it... :) Will -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://www.web-relevant.com/blogs/cfobjective ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203148 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: Problem with CFCHART
Hey Rick... Make sure you've got the X11 base libraries installed under Linux or CFCHART won't work... it uses some of the AWT widgets for generating output, and I've seen this cause issues for others in the past. Here's the URL to get the X library in question: http://www.dlhoffman.com/publiclibrary/RPM/libXp.so.6.html Hope that helps... Laterz! J On 4/16/05, Rick Root [EMAIL PROTECTED] wrote: This is a repost... can nobody help with this? I'm having some trouble with CFCHART... coldfusion MX 6.1 Enterprise on Linux ... I've never used it before, but I've got something pretty simple and it's giving me a blank error message that looks like this: Error Occurred While Processing Request The error occurred in /vservers/superbowlmon/htdocs/test2.cfm: line 62 60 : 61 : cfchart xaxistitle=Favorite NFL Team yaxistitle=Votes 62 :cfchartseries type=bar query=qry valueColumn=QUESTION1_YES itemColumn=TEAM_NAME/cfchartseries 63 : /cfchart 64 : cfinclude template=below.cfm Here is the specific code: cfquery name=qry datasource=#application.ezsite.primarydb# select B.TEAM_NAME, SUM(A.QUESTION1) as QUESTION1_YES, COUNT(A.QUESTION1)-SUM(A.QUESTION1) AS QUESTION1_NO from SIGNEES A LEFT JOIN NFL_TEAMS B ON A.QUESTION5=B.TEAM_ID GROUP BY B.TEAM_NAME ORDER BY B.TEAM_NAME /cfquery cfchart xaxistitle=Favorite NFL Team yaxistitle=Votes cfchartseries type=bar query=qry valueColumn=QUESTION1_YES itemColumn=TEAM_NAME/cfchartseries /cfchart What the heck is going on? - Rick -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://www.web-relevant.com/blogs/cfobjective ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203136 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: NEVERMIND: Re: SMS Sample App in CF Admin
It took me 3 hours of messing around on the night MX7 was released to figure out that 1) the server wasn't going to let me actually get my phone involved, 2) that the SMS gateway in CF was dependent on a stub SMS simulator to work and 3) how to turn them both on so that even the test code would work... No worries, you're not alone. :) Laterz! J On 4/15/05, Bryan Stevenson [EMAIL PROTECTED] wrote: Thanks Ray...good to know I'm not the only one ;-) You'd think when trying to start the gateway it would at least say hey mabye the server you're trying to connect to is down...no...wait...that would be helpful...nevermind ;-) 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 -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://www.web-relevant.com/blogs/cfobjective ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203137 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: Need Help Parsing Text
Athelene, Copy/paste this into a CFM page and hit it with a browser... You may like what you see. :) J cfset myString = AUTHOR='GIESEMAN','SMITH', ABSTRACT='CAT','DOG','FISH' cfset myString = replace(myString,, ,||,all) cfset listOne = listFirst(myString,||) cfset listTwo = listLast(myString,||) cfset listOneEnd = listLast(listOne,=) cfset listTwoEnd = listLast(listTwo,=) pre cfoutput select * from tbl_whatever where lastname in (#listOneEnd#) and abstract in (#listtwoend#) /cfoutput /pre On 4/15/05, Gieseman, Athelene [EMAIL PROTECTED] wrote: I have a text field that contains saved search criteria. The field is called CRITERIA. I need to take the criteria in the field and make a valid SQL query out of it. For example, I have a record in the table that has the following in the CRITERIA field: My string is: AUTHOR='GIESEMAN','SMITH', ABSTRACT='CAT','DOG','FISH' I want to find all the records that have either GIESEMAN or SMITH as the author AND where abstract contains either CAT, DOG or FISH. How can I auto-magically parse the string into a valid SQL query? Athelene Gieseman Chief Information Officer Stinson Morrison Hecker [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://www.web-relevant.com/blogs/cfobjective ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203138 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: Need Help Parsing Text
OOPS, correction below... I got the AUTHOR column named incorrectly... sorry. If you want, you can view it here, too: http://w2ksrv1.neo.servequake.com/tmp/ath.cfm I'll leave it up for a few days... Laterz, J cfset myString = AUTHOR='GIESEMAN','SMITH', ABSTRACT='CAT','DOG','FISH' cfset myString = replace(myString,, ,||,all) cfset listOne = listFirst(myString,||) cfset listTwo = listLast(myString,||) cfset listOneEnd = listLast(listOne,=) cfset listTwoEnd = listLast(listTwo,=) pre cfoutput select * from tbl_whatever where author in (#listOneEnd#) and abstract in (#listtwoend#) /cfoutput /pre On 4/15/05, Gieseman, Athelene [EMAIL PROTECTED] wrote: I have a text field that contains saved search criteria. The field is called CRITERIA. I need to take the criteria in the field and make a valid SQL query out of it. For example, I have a record in the table that has the following in the CRITERIA field: -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://www.web-relevant.com/blogs/cfobjective ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203139 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: Need Help Parsing Text
NO PROBLEM! This kinda thing is just fun... :) The only gotcha here is that it's dependent on comma-space to set the double-pipe delimiter... and I didn't see it until I looked at the string in a fixed-width font. ;) If your format is really consistent, where ', A is a reliable delimiter, you'll be fine. If not, then comma-A should also be fine because it's the only spot in the text where a comma precedes an alpha character without a single quote in-between... everywhere else, there's a pattern of ','A. Check my edits to the original code for some reductions and updates... I've replaced replace() with rereplace() to enable the code to not be dependent on comma-space-capA, it'll work on just comma-capA or comma-space-capA... and I've reduced the number of variables involved to 2 by nesting some methods. It's not quite as easy to read, but it'll probably work a bit better under load... http://w2ksrv1.neo.servequake.com/tmp/ath.cfm Laterz! J On 4/16/05, Gieseman, Athelene [EMAIL PROTECTED] wrote: Thank you very much! -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://www.web-relevant.com/blogs/cfobjective ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203141 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: Query an Access Query
You CAN?? Wowsers... that was a clever thing. I wonder who thought that nifty idea up... I wonder, though, can you query against them as though they were a view? I mean a simple select statement using the query name as the table name in the FROM clause... I'm not tooled for playing with access here or I'd test it... Laterz! J On 4/15/05, Dave Watts [EMAIL PROTECTED] wrote: I've been spoiled by stored procedures in SQL Server and MySQL... I need to query some MS Access Queries ... You can invoke them using CFSTOREDPROC, and you can pass them parameters using CFPROCPARAM. There's not much to it. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://www.web-relevant.com/blogs/cfobjective ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203142 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: Javascript Question. JS Wizards needed!
It's nice to see bad behavior being called out... and I won't say another word. :) J On 4/14/05, Claude Schneegans [EMAIL PROTECTED] wrote: I totally agree with you on this one. Me too. If someone participates in this list, it is either because he is a beginer and has questions to ask, or because he has the skill and enjoy answering questions,... or both. Beside the fact that we all are specilists in some area and beginers in some other. -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://www.web-relevant.com/blogs/cfobjective ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202855 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: What's your setup for multiple developers
A picture of the Badger, and maybe a diagram of it's digestive system that points out the skeletons of the Allaire employees it devoured when they took the Macromedians too seriously about the whiteboard... ;) J On 4/14/05, Sean Corfield [EMAIL PROTECTED] wrote: On 4/14/05, Adrocknaphobia [EMAIL PROTECTED] wrote: Any chance you could write up a blog entry or something on the development setup at MM? Maybe go into a little more detail on the technical setup? You've got me intrigued. Hmm, I thought I'd blogged a fair bit about it over the years... Maybe not. Can you be a bit more specific about what you'd like to see? -- Sean A Corfield -- http://corfield.org/ Team Fusebox -- http://fusebox.org/ Got Gmail? -- I have 50, yes 50, invites to give away! If you're not annoying somebody, you're not really alive. -- Margaret Atwood -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://www.web-relevant.com/blogs/cfobjective ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202869 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: anyone bored?
Yo dude... Worked fine for me. It took a minute, but it came up just fine after a minute... Looks pretty good, too. Maybe I'm just CF_Charmed... Next to test the Flash form... Laterzz! J On 4/14/05, dave [EMAIL PROTECTED] wrote: Strange, but I got hms on it so i am sure it will be resolved soon. Thanks everyone for checking on it for me, I appreciate it :) Dave -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://www.web-relevant.com/blogs/cfobjective ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202941 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: anyone bored?
That works too... OSX 10.3, G3 PowerBook, 192MB RAM Rock on... J On 4/14/05, dave [EMAIL PROTECTED] wrote: has anyone gone to a page on there where there is a flash form like http://www.charliesflybox.com/contact/index.cfm and if so do you see it ok? -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://www.web-relevant.com/blogs/cfobjective ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202942 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: SQLSurveyor 1.0 released
On 4/12/05, Adam Haskell [EMAIL PROTECTED] wrote: Glad to see you guys got this out there for sale pretty cheap too. I thinks its a great tool, I have something simular inhouse makes life just a little easier sometimes :) Adam H Hey Adam... I think it's actually a fairly natural progression. I write something to solve my own problems, then realize that it would help other developers with similar problems and release it. It's what software is all about, actually. So I release it. Were we a large firm with tons of options, some of this stuff would be released for free just for community support. Perhaps, as time goes on and we gain some market share/client base, we'll turn around and open some of these things up... I'd really like to do that, anyway. Either that, or, as time goes on, we'll add some of the more widely requested features and keep expanding it... or both! It's just a matter of watching how things unfold as time goes on. If nothing else, it's just way cool to have written something with broad value and being able to sell it on a site that I've also developed. For me, that's the biggest reward! Laterz, J -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://www.web-relevant.com/blogs/cfobjective ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202719 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