Re: Client Vars again
On 9/8/02, Joe Bastian penned: Susan, Cflocation is a client side redirect .. in effect it changes the header info of the clients browser to the new url page.. so NO variables will be set by the caller. Any local/session/client/application variables, and queries, etc., will work as normal on any code before the cflocation. But no cookies will be set on that page. -- Bud Schneehagen - Tropical Web Creations _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ ColdFusion Solutions / eCommerce Development [EMAIL PROTECTED] http://www.twcreations.com/ 954.721.3452 __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
OT: Paid by a percentage of the gross?? Anyone?
Is anyone here being paid for their development work with a percentage of the gross from the site they're working on? I have a client who's telling me with convincing assurance that his site Is going to make a mint, and I'd be much better off taking 20% of the gross revenue than charging a fee for service based on my hourly rate.I can see every transaction going through the site, so I know I'll be able to verify how much I'm owed. In fact I can probably have it pay me direct to my account from the credit card transactions. He's probably right, he's probably going to do quite well with his site .. he has orders backing up already before the site's even started, but all my instincts are telling me to say no thanks I'll take my chances with a fee for service. I know it's up to me to decide which way I'll be better off, but I was wondering if anyone else has made this sort of arrangement and how it's worked out. Cheers, Mike Kear Windsor, NSW, Australia AFP WebWorks __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFObject in CFMX
On Saturday, September 7, 2002, at 09:08 , Joe Eugene wrote: I am trying to invoke a java class with CFobject and CFMX doesnt like something... cfobject action=Create type=Java class=chkString name=obj cfset x=obj.getString() it creates the object obj but says there is an error on obj.getString( ) Use cfdump var=#obj# to see exactly what you created - it will dump out a Java object will all the methods. It doesn't look like you're calling init() either - CF requires that you call init() after creating the object so that it is correctly constructed. I think your code should read: cfobject action=Create type=Java class=chkString name=obj cfset obj.init() cfset x=obj.getString() Sean A Corfield -- http://www.corfield.org/blog/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Paid by a percentage of the gross?? Anyone?
Short answer: If I had a nickel for every time I've heard that.. Etc..etc. Long answer: But.. There are probably a few sites we've passed on that we shouldn't have, due to the fact that they are now making quite a bit, from what we're told. Suggestion: Assume you're not going to get anything out of it.. and if you have the time to spare, go for it. If you don't have the time, don't bother. Just my .02 | -Original Message- | From: Michael Kear [mailto:[EMAIL PROTECTED]] | Sent: Sunday, September 08, 2002 7:15 AM | To: CF-Talk | Subject: OT: Paid by a percentage of the gross?? Anyone? | | | Is anyone here being paid for their development work with a | percentage of the gross from the site they're working on? | | | I have a client who's telling me with convincing assurance | that his site Is going to make a mint, and I'd be much | better off taking 20% of the gross | revenue than charging a fee for service based on my hourly | rate.I can | see every transaction going through the site, so I know I'll | be able to verify how much I'm owed. In fact I can probably | have it pay me direct to my account from the credit card transactions. | | | He's probably right, he's probably going to do quite well | with his site .. | he has orders backing up already before the site's even | started, but all my instincts are telling me to say no | thanks I'll take my chances with a fee for service. | | | I know it's up to me to decide which way I'll be better off, | but I was wondering if anyone else has made this sort of | arrangement and how it's worked out. | | | Cheers, | Mike Kear | Windsor, NSW, Australia | AFP WebWorks | | | | __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: OT: Paid by a percentage of the gross?? Anyone?
Stock options used to be popular too. I would recommend charging an hourly rate. On Mon, 9 Sep 2002, Michael Kear wrote: Is anyone here being paid for their development work with a percentage of the gross from the site they're working on? I have a client who's telling me with convincing assurance that his site Is going to make a mint, and I'd be much better off taking 20% of the gross revenue than charging a fee for service based on my hourly rate.I can see every transaction going through the site, so I know I'll be able to verify how much I'm owed. In fact I can probably have it pay me direct to my account from the credit card transactions. He's probably right, he's probably going to do quite well with his site .. he has orders backing up already before the site's even started, but all my instincts are telling me to say no thanks I'll take my chances with a fee for service. I know it's up to me to decide which way I'll be better off, but I was wondering if anyone else has made this sort of arrangement and how it's worked out. Cheers, Mike Kear Windsor, NSW, Australia AFP WebWorks __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: OT: Paid by a percentage of the gross?? Anyone?
Why not an option for you to choose? How about this: Keep track of the hours you spend building the site. Multiply that by some rate...suppose $30/hour for the sake of discussion. That is the your minimum fee. If the site hasn't generated $XX of profit in 6 months, you get your hourly rate fee. If it does meet or exceed the profit goal, you get a percent of gross. -Original Message- From: Alex [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 10:01 AM To: CF-Talk Subject: Re: OT: Paid by a percentage of the gross?? Anyone? Stock options used to be popular too. I would recommend charging an hourly rate. On Mon, 9 Sep 2002, Michael Kear wrote: Is anyone here being paid for their development work with a percentage of the gross from the site they're working on? I have a client who's telling me with convincing assurance that his site Is going to make a mint, and I'd be much better off taking 20% of the gross revenue than charging a fee for service based on my hourly rate.I can see every transaction going through the site, so I know I'll be able to verify how much I'm owed. In fact I can probably have it pay me direct to my account from the credit card transactions. He's probably right, he's probably going to do quite well with his site .. he has orders backing up already before the site's even started, but all my instincts are telling me to say no thanks I'll take my chances with a fee for service. I know it's up to me to decide which way I'll be better off, but I was wondering if anyone else has made this sort of arrangement and how it's worked out. Cheers, Mike Kear Windsor, NSW, Australia AFP WebWorks __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Saving a static version of a website
Hi All,I am charged with making a static version of an interactive, ColdFusion-based website that uses Search Engine Safe URLs. I've tried a few of the website downloading utilities that you can get from download.com, but none of those are able to succesfully follow all of the links on my site (and I am not sure why, except that some of urls are rather long). As the site changes frequently, I am going to need to redo this fairly often, but if possible, I'd like to avoid writing or adjusting code to accommodate this task.Does anyone have any suggestions or recommendations.Thank you. - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: OT: Paid by a percentage of the gross?? Anyone?
I have a few things to say, but instead of stealing others words as my own, read this thread: http://www.houseoffusion.com/cf_lists/index.cfm?method=threadsforumid=11displaydate=04/26/2002 I strongly recommend reading Ryan Hartwich's post (first reply ) at least twice. At 12:14 AM 9/9/2002 +1000, you wrote: Is anyone here being paid for their development work with a percentage of the gross from the site they're working on? I have a client who's telling me with convincing assurance that his site Is going to make a mint, and I'd be much better off taking 20% of the gross revenue than charging a fee for service based on my hourly rate.I can see every transaction going through the site, so I know I'll be able to verify how much I'm owed. In fact I can probably have it pay me direct to my account from the credit card transactions. He's probably right, he's probably going to do quite well with his site .. he has orders backing up already before the site's even started, but all my instincts are telling me to say no thanks I'll take my chances with a fee for service. I know it's up to me to decide which way I'll be better off, but I was wondering if anyone else has made this sort of arrangement and how it's worked out. Cheers, Mike Kear Windsor, NSW, Australia AFP WebWorks __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Saving a static version of a website
: Hi All,I am charged with making a static version of an : interactive, ColdFusion-based website I may be wrong, but at some point I swear there was an extension for Ultradev that would spit out a static version of a dynamic site. Elementals Drumbeat used to do this with ASP sites. Was a great development tool when you had some hard headed client that was using some weird hosting scheme that wouldn't allow a database. You could develop dynamically locally, and then generate a static version of the same site to publish on the server... You might ask about this over on one of the Macromedia Cold Fusion forums. If it exist, it would save you a ton of hours each time something in the database changed. Les __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Saving a static version of a website
I have been unsuccesful as well with some of the download utitilies. This would be great if UltraDev did indeed have this. Just wanted to post my interest if this is found - I would appreciate a note to the list. I will do the same if I should happen to solve the issue adequately. Thanks, Jay Miller Les Mizzell wrote: : Hi All,I am charged with making a static version of an : interactive, ColdFusion-based website I may be wrong, but at some point I swear there was an extension for Ultradev that would spit out a static version of a dynamic site. Elementals Drumbeat used to do this with ASP sites. Was a great development tool when you had some hard headed client that was using some weird hosting scheme that wouldn't allow a database. You could develop dynamically locally, and then generate a static version of the same site to publish on the server... You might ask about this over on one of the Macromedia Cold Fusion forums. If it exist, it would save you a ton of hours each time something in the database changed. Les __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Paid by a percentage of the gross?? Anyone?
i always get something up front that will cover my basic hourly charge ($75/hour) for the work that i envision to be necessary to complete said job. from there, i say, rather than upcharge you for unforeseen design changes in the future, and for maintenance of this new website, i will do those thingsfor a percentage of the gross, or a per transaction charge of a couple of cents, (depending on volume of sale vs. high-frequency type site.) but then again, thats not to say that paul allen was an idiot for sticking around with Bill the Dreamer you know? its a tough decision with no right or wrong answer...both are rightboth are wronggo with your gut feeling. but without fail, get something up front, if the total design cost in your head should be $15,000 get at least half of that up front, and see from there! tony -Original Message- From: Michael Kear [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 10:15 AM To: CF-Talk Subject: OT: Paid by a percentage of the gross?? Anyone? Is anyone here being paid for their development work with a percentage of the gross from the site they're working on? I have a client who's telling me with convincing assurance that his site Is going to make a mint, and I'd be much better off taking 20% of the gross revenue than charging a fee for service based on my hourly rate.I can see every transaction going through the site, so I know I'll be able to verify how much I'm owed. In fact I can probably have it pay me direct to my account from the credit card transactions. He's probably right, he's probably going to do quite well with his site .. he has orders backing up already before the site's even started, but all my instincts are telling me to say no thanks I'll take my chances with a fee for service. I know it's up to me to decide which way I'll be better off, but I was wondering if anyone else has made this sort of arrangement and how it's worked out. Cheers, Mike Kear Windsor, NSW, Australia AFP WebWorks __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: OT: Paid by a percentage of the gross?? Anyone?
Excellent replies and posts in that. I personally have 4 or 5 times kicked myself for not asking for percentage.. but always happy that I am getting reimbursed at least not totally gambling. All that has been mentioned about picking up partners, starting new businesses, funneling sales through other channels to get around to reducing the profits owed to you is true and happens constantly. Currently with all the give me a good deal - I promise more work clients - and I am sure many can agree with this - are all the clients who promise the most and deliver the least. Unless you have a long term standing relationship - which is still risky - it is riskier than tech stocks to take profits as there are too many loop holes in it. Here seems to be the option 1) Either on paper become an actual legal binding business part with stake in the new venture 2) Take your fees up front - you may not get rich but your getting paid 3) Take a complete risk if you have time and money to kill I truly believe the guys wheeling and dealing are only making themselves richer, promising what they intend to keep. Most of the time they additionally are making these terms because they can't afford wha they want - and that is a vicious cycle. Everyone knows you get a raise you don't know how you lived below that level. Imagine a business seeing this money come in - humans are unfortunately a greedy bunch and the chances of accurate delivery OR lengthy residual are slim. good luck jay miller Jeffry Houser wrote: I have a few things to say, but instead of stealing others words as my own, read this thread: http://www.houseoffusion.com/cf_lists/index.cfm?method=threads http://www.houseoffusion.com/cf_lists/index.cfm?method=threadsforumid= 11displaydate=04/26/2002 forumid=11displaydate=04/26/2002 I strongly recommend reading Ryan Hartwich's post (first reply ) at least twice. At 12:14 AM 9/9/2002 +1000, you wrote: Is anyone here being paid for their development work with a percentage of the gross from the site they're working on? I have a client who's telling me with convincing assurance that his site Is going to make a mint, and I'd be much better off taking 20% of the gross revenue than charging a fee for service based on my hourly rate.I can see every transaction going through the site, so I know I'll be able to verify how much I'm owed. In fact I can probably have it pay me direct to my account from the credit card transactions. He's probably right, he's probably going to do quite well with his site .. he has orders backing up already before the site's even started, but all my instincts are telling me to say no thanks I'll take my chances with a fee for service. I know it's up to me to decide which way I'll be better off, but I was wondering if anyone else has made this sort of arrangement an d how it's worked out. Cheers, Mike Kear Windsor, NSW, Australia AFP WebWorks __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFObject in CFMX
Sean, If i am right ... obj.init() simply does an instanciation..ie calls the constructor. I dont have a constructor.. so the default constructor should be called right?.. so obj.init() is needed only when you have to instanciate the object and set variables too. some like... Myclass mc = new Myclass(); // default Myclass mc = new Myclass(10,20); // same as obj.init(10,20) Anyways i finally found out that you had to explicitly declare the class as public to get this working... so class chkString{} should be puiblic class chkString{}... i know i tried this earlier.. but one BIG DEBUG PROBLEM.. after CFMX loads the class the first time and you replace the class with a new class...CFMX keeps the OLD class in memory.. so basically you have restart the CFAS... Is there any work around this... i mean you can't restart the server in the middle of productionAppreciate your help. Thanks Joe Certified Advanced ColdFusion Developer [EMAIL PROTECTED] -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 10:18 AM To: CF-Talk Subject: Re: CFObject in CFMX On Saturday, September 7, 2002, at 09:08 , Joe Eugene wrote: I am trying to invoke a java class with CFobject and CFMX doesnt like something... cfobject action=Create type=Java class=chkString name=obj cfset x=obj.getString() it creates the object obj but says there is an error on obj.getString( ) Use cfdump var=#obj# to see exactly what you created - it will dump out a Java object will all the methods. It doesn't look like you're calling init() either - CF requires that you call init() after creating the object so that it is correctly constructed. I think your code should read: cfobject action=Create type=Java class=chkString name=obj cfset obj.init() cfset x=obj.getString() Sean A Corfield -- http://www.corfield.org/blog/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Saving a static version of a website
Jason Miller wrote: I have been unsuccesful as well with some of the download utitilies. This would be great if UltraDev did indeed have this. Just wanted to post my interest if this is found - I would appreciate a note to the list. I will do the same if I should happen to solve the issue adequately. Thanks, Jay Miller gnu wget http://www.wget.org __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFObject in CFMX
It doesn't look like you're calling init() either - CF requires that you call init() after creating the object so that it is correctly constructed. I think your code should read: Calling init() is NOT required. You only need to call init() if you want to pass parameters to the constructor. If you don't call init(), the default constructor will be called before the first method is called. -Matt __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFObject in CFMX
CFMX can be configured to have a hot load directory that detects changes to Java classes and reloads them. You have to change an XML configuration file for this, so check the documentation. Matt Liotta President CEO Montara Software, Inc. http://www.montarasoftware.com/ 888-408-0900 x901 -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 9:14 AM To: CF-Talk Subject: RE: CFObject in CFMX Sean, If i am right ... obj.init() simply does an instanciation..ie calls the constructor. I dont have a constructor.. so the default constructor should be called right?.. so obj.init() is needed only when you have to instanciate the object and set variables too. some like... Myclass mc = new Myclass(); // default Myclass mc = new Myclass(10,20); // same as obj.init(10,20) Anyways i finally found out that you had to explicitly declare the class as public to get this working... so class chkString{} should be puiblic class chkString{}... i know i tried this earlier.. but one BIG DEBUG PROBLEM.. after CFMX loads the class the first time and you replace the class with a new class...CFMX keeps the OLD class in memory.. so basically you have restart the CFAS... Is there any work around this... i mean you can't restart the server in the middle of productionAppreciate your help. Thanks Joe Certified Advanced ColdFusion Developer [EMAIL PROTECTED] -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 10:18 AM To: CF-Talk Subject: Re: CFObject in CFMX On Saturday, September 7, 2002, at 09:08 , Joe Eugene wrote: I am trying to invoke a java class with CFobject and CFMX doesnt like something... cfobject action=Create type=Java class=chkString name=obj cfset x=obj.getString() it creates the object obj but says there is an error on obj.getString( ) Use cfdump var=#obj# to see exactly what you created - it will dump out a Java object will all the methods. It doesn't look like you're calling init() either - CF requires that you call init() after creating the object so that it is correctly constructed. I think your code should read: cfobject action=Create type=Java class=chkString name=obj cfset obj.init() cfset x=obj.getString() Sean A Corfield -- http://www.corfield.org/blog/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Saving a static version of a website
Thanks to everyone who responded. I finally found something that did exactly what I needed, and did it right the first time: teleport pro. -Original Message- From: Zac Spitzer [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 12:42 PM To: CF-Talk Subject: Re: Saving a static version of a website Jason Miller wrote: I have been unsuccesful as well with some of the download utitilies. This would be great if UltraDev did indeed have this. Just wanted to post my interest if this is found - I would appreciate a note to the list. I will do the same if I should happen to solve the issue adequately. Thanks, Jay Miller gnu wget http://www.wget.org __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: OT: Paid by a percentage of the gross?? Anyone?
Jeffry, Thanks for the recommendation that others read my reply from before! I love being referenced! I reread my message from before and stand by it. I'm still owed over 10k by my former employer who 'deferred' employee pay for a while and managed to not write us contracts stipulating such. They have since closed their doors and I seriously doubt I will ever get my money. Everyone should CYA and remember that if they don't cover themselves and their opponent/business partner does, they will loose. Almost without fail, someone comes out the winner with the other 'loosing' and the more you protect your self the closer to 50/50 you can make it. Being fair and nice only goes so far in this day and age, you have to watch out for yourself. Ryan -- Date: Sun, 08 Sep 2002 11:20:59 -0400 From: Jeffry Houser [EMAIL PROTECTED] Subject: Re: OT: Paid by a percentage of the gross?? Anyone? Message-ID: [EMAIL PROTECTED] I have a few things to say, but instead of stealing others words as my own, read this thread: http://www.houseoffusion.com/cf_lists/index.cfm?method=threadsforumid=1 1displaydate=04/26/2002 I strongly recommend reading Ryan Hartwich's post (first reply ) at least twice. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFObject in CFMX
Matt, Do you know why you have to be explicit on declaring the class as public/private...CFMX doesnt take default. eg.. CFMX doesnt like class ChkStrings{} it should be public class ChkStrings{} The Java construct works fine without an explicit declaration of public and u are able to instanciate the class object.. call methods and whatever.. but.. CFMX doesnt like this. CFMX creates the object but doesnt realize any public methods in the class. Joe - Original Message - From: Matt Liotta [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 1:09 PM Subject: RE: CFObject in CFMX CFMX can be configured to have a hot load directory that detects changes to Java classes and reloads them. You have to change an XML configuration file for this, so check the documentation. Matt Liotta President CEO Montara Software, Inc. http://www.montarasoftware.com/ 888-408-0900 x901 -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 9:14 AM To: CF-Talk Subject: RE: CFObject in CFMX Sean, If i am right ... obj.init() simply does an instanciation..ie calls the constructor. I dont have a constructor.. so the default constructor should be called right?.. so obj.init() is needed only when you have to instanciate the object and set variables too. some like... Myclass mc = new Myclass(); // default Myclass mc = new Myclass(10,20); // same as obj.init(10,20) Anyways i finally found out that you had to explicitly declare the class as public to get this working... so class chkString{} should be puiblic class chkString{}... i know i tried this earlier.. but one BIG DEBUG PROBLEM.. after CFMX loads the class the first time and you replace the class with a new class...CFMX keeps the OLD class in memory.. so basically you have restart the CFAS... Is there any work around this... i mean you can't restart the server in the middle of productionAppreciate your help. Thanks Joe Certified Advanced ColdFusion Developer [EMAIL PROTECTED] -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 10:18 AM To: CF-Talk Subject: Re: CFObject in CFMX On Saturday, September 7, 2002, at 09:08 , Joe Eugene wrote: I am trying to invoke a java class with CFobject and CFMX doesnt like something... cfobject action=Create type=Java class=chkString name=obj cfset x=obj.getString() it creates the object obj but says there is an error on obj.getString( ) Use cfdump var=#obj# to see exactly what you created - it will dump out a Java object will all the methods. It doesn't look like you're calling init() either - CF requires that you call init() after creating the object so that it is correctly constructed. I think your code should read: cfobject action=Create type=Java class=chkString name=obj cfset obj.init() cfset x=obj.getString() Sean A Corfield -- http://www.corfield.org/blog/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: OT: Paid by a percentage of the gross?? Anyone?
I have made a few mistakes on this topic in the past - from both sides of the fence. I won't bore you with the details, but my thoughts for the next try: 1. It is worth a try to spend a small part of your time on something like this, because you are never going to get rich working by the hour or job. It is a fantastic feeling to get a check every month without doing work on the project! On the other hand, don't put off paying projects to work on a gamble. 2. Set up the website as an ASP service. You retain control / ownership of the website. The client uses YOUR website to conduct business and they are charged a fee on a sliding scale per month. They use your software for both the web business as well as internally for their call center. You make it so you get some money every month, and the better the site does, the more you make, but you do not get so much money that it drives the owner elsewhere. For example: (of course this could be orders of magnitude off... it depends on how much work the site is) 20% of gross income from the website up to $10,000 per month, with a minimum payment of $500 / month. 10% of gross up to $100,000 month 5 % over $100,000 / month. 3. Make sure the owner has the ability to supply the service or products you are trying to sell, and that it makes sense to you. Put yourself in the position of their users. Would you purchase the product / supply over the internet? I have been approached with many crazy ideas over the years. They may have worked in the glory days, but don't have a shot now. Make sure they have some money to advertise with and discuss that before doing any work. Al A1webs.com __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFObject in CFMX
No idea really, I could speculate, but what fun is that. Matt Liotta President CEO Montara Software, Inc. http://www.montarasoftware.com/ 888-408-0900 x901 -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 10:56 AM To: CF-Talk Subject: Re: CFObject in CFMX Matt, Do you know why you have to be explicit on declaring the class as public/private...CFMX doesnt take default. eg.. CFMX doesnt like class ChkStrings{} it should be public class ChkStrings{} The Java construct works fine without an explicit declaration of public and u are able to instanciate the class object.. call methods and whatever.. but.. CFMX doesnt like this. CFMX creates the object but doesnt realize any public methods in the class. Joe - Original Message - From: Matt Liotta [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 1:09 PM Subject: RE: CFObject in CFMX CFMX can be configured to have a hot load directory that detects changes to Java classes and reloads them. You have to change an XML configuration file for this, so check the documentation. Matt Liotta President CEO Montara Software, Inc. http://www.montarasoftware.com/ 888-408-0900 x901 -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 9:14 AM To: CF-Talk Subject: RE: CFObject in CFMX Sean, If i am right ... obj.init() simply does an instanciation..ie calls the constructor. I dont have a constructor.. so the default constructor should be called right?.. so obj.init() is needed only when you have to instanciate the object and set variables too. some like... Myclass mc = new Myclass(); // default Myclass mc = new Myclass(10,20); // same as obj.init(10,20) Anyways i finally found out that you had to explicitly declare the class as public to get this working... so class chkString{} should be puiblic class chkString{}... i know i tried this earlier.. but one BIG DEBUG PROBLEM.. after CFMX loads the class the first time and you replace the class with a new class...CFMX keeps the OLD class in memory.. so basically you have restart the CFAS... Is there any work around this... i mean you can't restart the server in the middle of productionAppreciate your help. Thanks Joe Certified Advanced ColdFusion Developer [EMAIL PROTECTED] -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 10:18 AM To: CF-Talk Subject: Re: CFObject in CFMX On Saturday, September 7, 2002, at 09:08 , Joe Eugene wrote: I am trying to invoke a java class with CFobject and CFMX doesnt like something... cfobject action=Create type=Java class=chkString name=obj cfset x=obj.getString() it creates the object obj but says there is an error on obj.getString( ) Use cfdump var=#obj# to see exactly what you created - it will dump out a Java object will all the methods. It doesn't look like you're calling init() either - CF requires that you call init() after creating the object so that it is correctly constructed. I think your code should read: cfobject action=Create type=Java class=chkString name=obj cfset obj.init() cfset x=obj.getString() Sean A Corfield -- http://www.corfield.org/blog/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFObject in CFMX (Connection String)
It looks like connectstring and some other params of query are deprecated in CFMX.. so how do you go about doing a DNS-less connection in CFMX? Where are Java JDBC driver info's stored in CFMX? I would like to use the TYPE IV Java drivers making direct calls to the DB.. Theoretically.. this would give the best performance..since u bypass the ODBC layer right? Joe - Original Message - From: Matt Liotta [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 2:35 PM Subject: RE: CFObject in CFMX No idea really, I could speculate, but what fun is that. Matt Liotta President CEO Montara Software, Inc. http://www.montarasoftware.com/ 888-408-0900 x901 -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 10:56 AM To: CF-Talk Subject: Re: CFObject in CFMX Matt, Do you know why you have to be explicit on declaring the class as public/private...CFMX doesnt take default. eg.. CFMX doesnt like class ChkStrings{} it should be public class ChkStrings{} The Java construct works fine without an explicit declaration of public and u are able to instanciate the class object.. call methods and whatever.. but.. CFMX doesnt like this. CFMX creates the object but doesnt realize any public methods in the class. Joe - Original Message - From: Matt Liotta [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 1:09 PM Subject: RE: CFObject in CFMX CFMX can be configured to have a hot load directory that detects changes to Java classes and reloads them. You have to change an XML configuration file for this, so check the documentation. Matt Liotta President CEO Montara Software, Inc. http://www.montarasoftware.com/ 888-408-0900 x901 -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 9:14 AM To: CF-Talk Subject: RE: CFObject in CFMX Sean, If i am right ... obj.init() simply does an instanciation..ie calls the constructor. I dont have a constructor.. so the default constructor should be called right?.. so obj.init() is needed only when you have to instanciate the object and set variables too. some like... Myclass mc = new Myclass(); // default Myclass mc = new Myclass(10,20); // same as obj.init(10,20) Anyways i finally found out that you had to explicitly declare the class as public to get this working... so class chkString{} should be puiblic class chkString{}... i know i tried this earlier.. but one BIG DEBUG PROBLEM.. after CFMX loads the class the first time and you replace the class with a new class...CFMX keeps the OLD class in memory.. so basically you have restart the CFAS... Is there any work around this... i mean you can't restart the server in the middle of productionAppreciate your help. Thanks Joe Certified Advanced ColdFusion Developer [EMAIL PROTECTED] -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 10:18 AM To: CF-Talk Subject: Re: CFObject in CFMX On Saturday, September 7, 2002, at 09:08 , Joe Eugene wrote: I am trying to invoke a java class with CFobject and CFMX doesnt like something... cfobject action=Create type=Java class=chkString name=obj cfset x=obj.getString() it creates the object obj but says there is an error on obj.getString( ) Use cfdump var=#obj# to see exactly what you created - it will dump out a Java object will all the methods. It doesn't look like you're calling init() either - CF requires that you call init() after creating the object so that it is correctly constructed. I think your code should read: cfobject action=Create type=Java class=chkString name=obj cfset obj.init() cfset x=obj.getString() Sean A Corfield -- http://www.corfield.org/blog/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFObject in CFMX (Connection String)
Joe Eugene wrote: It looks like connectstring and some other params of query are deprecated in CFMX.. so how do you go about doing a DNS-less connection in CFMX? Depends what you want. I'm not sure if you can get it as dynamic as with CF 5. But in many cases it is sufficient to just be able to create datasources on the fly. If that is the case, dig into the ServiceFactory. http://spike.oli.tudelft.nl/jochemd/index.cfm?PageID=12 should get you started. Where are Java JDBC driver info's stored in CFMX? Not sure if they are :) The settings for the default drivers are probably stored in some XML file, but for anything else they are not stored as properties of the driver but of the datasource. I would like to use the TYPE IV Java drivers making direct calls to the DB.. Theoretically.. this would give the best performance..since u bypass the ODBC layer right? Theoretically yes. In practice it depends on the quality of the JDBC drivers. But you can administer Type IV JDBC Drivers through the CF MX Administrator just like any other driver. No need to use cfobject for that. Jochem __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFObject in CFMX (Connection String)
If you really need a DSN-less connection, you can try ADO. It's also useful for grabbing info about columns and tables. I am using it for one project of mine in MX. http://cfhub.com/advanced/ado/adodb_query.cfm - Original Message - From: Joe Eugene [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, September 09, 2002 7:15 AM Subject: Re: CFObject in CFMX (Connection String) It looks like connectstring and some other params of query are deprecated in CFMX.. so how do you go about doing a DNS-less connection in CFMX? Where are Java JDBC driver info's stored in CFMX? I would like to use the TYPE IV Java drivers making direct calls to the DB.. Theoretically.. this would give the best performance..since u bypass the ODBC layer right? Joe - Original Message - From: Matt Liotta [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 2:35 PM Subject: RE: CFObject in CFMX No idea really, I could speculate, but what fun is that. Matt Liotta President CEO Montara Software, Inc. http://www.montarasoftware.com/ 888-408-0900 x901 -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 10:56 AM To: CF-Talk Subject: Re: CFObject in CFMX Matt, Do you know why you have to be explicit on declaring the class as public/private...CFMX doesnt take default. eg.. CFMX doesnt like class ChkStrings{} it should be public class ChkStrings{} The Java construct works fine without an explicit declaration of public and u are able to instanciate the class object.. call methods and whatever.. but.. CFMX doesnt like this. CFMX creates the object but doesnt realize any public methods in the class. Joe - Original Message - From: Matt Liotta [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 1:09 PM Subject: RE: CFObject in CFMX CFMX can be configured to have a hot load directory that detects changes to Java classes and reloads them. You have to change an XML configuration file for this, so check the documentation. Matt Liotta President CEO Montara Software, Inc. http://www.montarasoftware.com/ 888-408-0900 x901 -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 9:14 AM To: CF-Talk Subject: RE: CFObject in CFMX Sean, If i am right ... obj.init() simply does an instanciation..ie calls the constructor. I dont have a constructor.. so the default constructor should be called right?.. so obj.init() is needed only when you have to instanciate the object and set variables too. some like... Myclass mc = new Myclass(); // default Myclass mc = new Myclass(10,20); // same as obj.init(10,20) Anyways i finally found out that you had to explicitly declare the class as public to get this working... so class chkString{} should be puiblic class chkString{}... i know i tried this earlier.. but one BIG DEBUG PROBLEM.. after CFMX loads the class the first time and you replace the class with a new class...CFMX keeps the OLD class in memory.. so basically you have restart the CFAS... Is there any work around this... i mean you can't restart the server in the middle of productionAppreciate your help. Thanks Joe Certified Advanced ColdFusion Developer [EMAIL PROTECTED] -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 10:18 AM To: CF-Talk Subject: Re: CFObject in CFMX On Saturday, September 7, 2002, at 09:08 , Joe Eugene wrote: I am trying to invoke a java class with CFobject and CFMX doesnt like something... cfobject action=Create type=Java class=chkString name=obj cfset x=obj.getString() it creates the object obj but says there is an error on obj.getString( ) Use cfdump var=#obj# to see exactly what you created - it will dump out a Java object will all the methods. It doesn't look like you're calling init() either - CF requires that you call init() after creating the object so that it is correctly constructed. I think your code should read: cfobject action=Create type=Java class=chkString name=obj cfset obj.init() cfset x=obj.getString() Sean A Corfield -- http://www.corfield.org/blog/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood
RE: Saving a static version of a website
I like offline explorer -Original Message- From: Zac Spitzer [mailto:[EMAIL PROTECTED]] Sent: Sun 9/8/2002 9:41 AM To: CF-Talk Cc: Subject: Re: Saving a static version of a website Jason Miller wrote: I have been unsuccesful as well with some of the download utitilies. This would be great if UltraDev did indeed have this. Just wanted to post my interest if this is found - I would appreciate a note to the list. I will do the same if I should happen to solve the issue adequately. Thanks, Jay Miller gnu wget http://www.wget.org __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
iif usage
Hi, I'm having a problem with iif. If I do #iif(qryCustomer.allareas,DE(All Areas),DE(#ValueList(qryAreas.name,', ')#))# and qryCustomer.allareas is true, therefore qryAreas is undefined (I check for it with an cfif somewhere else), then I get an error Parameter 1 of function ValueList which is now qryAreas.name must be pointing to a valid query name If I make it #iif(qryCustomer.allareas,DE(All Areas),DE(ValueList(qryAreas.name,', ')))# then it works fine in this case, but fails when qryCustomer.allareas is false as it doesn't evaluate the ValueList(qryAreas.name,', ') What am I doing wrong? Russ __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: iif usage
qryCustomer.allareas should be a 0 or any number other than 0 which is True your statment should look like below.. u dont need DE #IIF(qryCustomer.allareas, 'All Areas' , '#ValueList(qryAreas.name,',')#' )# Which means if qryCustomer.allareas !=0 ...display ALL Areas else Display qryAreas.name list.. Joe - Original Message - From: Ruslan Sivak [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 5:24 PM Subject: iif usage Hi, I'm having a problem with iif. If I do #iif(qryCustomer.allareas,DE(All Areas),DE(#ValueList(qryAreas.name,', ')#))# and qryCustomer.allareas is true, therefore qryAreas is undefined (I check for it with an cfif somewhere else), then I get an error Parameter 1 of function ValueList which is now qryAreas.name must be pointing to a valid query name If I make it #iif(qryCustomer.allareas,DE(All Areas),DE(ValueList(qryAreas.name,', ')))# then it works fine in this case, but fails when qryCustomer.allareas is false as it doesn't evaluate the ValueList(qryAreas.name,', ') What am I doing wrong? Russ __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: OT: Paid by a percentage of the gross?? Anyone?
At 12:45 PM 09/08/2002 -0500, you wrote: Jeffry, Thanks for the recommendation that others read my reply from before! I love being referenced! ;) IT was good advice then and I think it still stands true. If this wasn't said elsewhere, I would also ask for a marketing plan and sales forecast. What are the plans if they don't get their expected income level? Are the numbers that they are telling you believable? For instance, if they say We're going to have 5,000 customers and you say how will you get them and they say We have a mailing list of 10,000 names and we'll do direct mail, then something is probably wrong. If they say they have a mailing list of 10 million names, then 5,000 customer's is reasonable (maybe even low). I'll leave the archive link here just in case anyone is coming into this thread late: http://www.houseoffusion.com/cf_lists/index.cfm?method=threadsforumid=1 1displaydate=04/26/2002 -- Jeffry Houser | mailto:[EMAIL PROTECTED] Need a Web Developer? Contact me! AIM: Reboog711 | Phone: 1-203-379-0773 -- My CFMX Book: http://www.amazon.com/exec/obidos/ASIN/0072225564/instantcoldfu-20 My Books: http://www.instantcoldfusion.com My Band: http://www.farcryfly.com __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: iif usage
#iif(qryCustomer.allareas,All Areas, '#ValueList(qryAreas.name,', ')#' )# Doesn't work either. Parameter 1 of function ValueList which is now qryAreas.name must be pointing to a valid query name Russ -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 5:49 PM To: CF-Talk Subject: Re: iif usage qryCustomer.allareas should be a 0 or any number other than 0 which is True your statment should look like below.. u dont need DE #IIF(qryCustomer.allareas, 'All Areas' , '#ValueList(qryAreas.name,',')#' )# Which means if qryCustomer.allareas !=0 ...display ALL Areas else Display qryAreas.name list.. Joe - Original Message - From: Ruslan Sivak [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 5:24 PM Subject: iif usage Hi, I'm having a problem with iif. If I do #iif(qryCustomer.allareas,DE(All Areas),DE(#ValueList(qryAreas.name,', ')#))# and qryCustomer.allareas is true, therefore qryAreas is undefined (I check for it with an cfif somewhere else), then I get an error Parameter 1 of function ValueList which is now qryAreas.name must be pointing to a valid query name If I make it #iif(qryCustomer.allareas,DE(All Areas),DE(ValueList(qryAreas.name,', ')))# then it works fine in this case, but fails when qryCustomer.allareas is false as it doesn't evaluate the ValueList(qryAreas.name,', ') What am I doing wrong? Russ __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: iif usage
Try #IIF(qryCustomer.allareas, DE('All Areas'), DE('#ValueList(qryAreas.Name)#'))# Havent tested it but it should work... The downside of using an IIF() against an if() statement is that the true and false sections are always evaluated... Whereas a normal if statement if its true the false is not looked at... HTH -Original Message- From: Ruslan Sivak [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 8, 2002 22:25 To: CF-Talk Subject: iif usage Hi, I'm having a problem with iif. If I do #iif(qryCustomer.allareas,DE(All Areas),DE(#ValueList(qryAreas.name,', ')#))# and qryCustomer.allareas is true, therefore qryAreas is undefined (I check for it with an cfif somewhere else), then I get an error Parameter 1 of function ValueList which is now qryAreas.name must be pointing to a valid query name If I make it #iif(qryCustomer.allareas,DE(All Areas),DE(ValueList(qryAreas.name,', ')))# then it works fine in this case, but fails when qryCustomer.allareas is false as it doesn't evaluate the ValueList(qryAreas.name,', ') What am I doing wrong? Russ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: iif usage
Carefully note the usage of single and double quotes.. there are there for a reason! and make sure... u have the query.columnName.. u are pointing..to #IIF(qryCustomer.allareas, 'All Areas' , '#ValueList(qryAreas.name,',')#' )# Joe - Original Message - From: Ruslan Sivak [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 6:03 PM Subject: RE: iif usage #iif(qryCustomer.allareas,All Areas, '#ValueList(qryAreas.name,', ')#' )# Doesn't work either. Parameter 1 of function ValueList which is now qryAreas.name must be pointing to a valid query name Russ -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 5:49 PM To: CF-Talk Subject: Re: iif usage qryCustomer.allareas should be a 0 or any number other than 0 which is True your statment should look like below.. u dont need DE #IIF(qryCustomer.allareas, 'All Areas' , '#ValueList(qryAreas.name,',')#' )# Which means if qryCustomer.allareas !=0 ...display ALL Areas else Display qryAreas.name list.. Joe - Original Message - From: Ruslan Sivak [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 5:24 PM Subject: iif usage Hi, I'm having a problem with iif. If I do #iif(qryCustomer.allareas,DE(All Areas),DE(#ValueList(qryAreas.name,', ')#))# and qryCustomer.allareas is true, therefore qryAreas is undefined (I check for it with an cfif somewhere else), then I get an error Parameter 1 of function ValueList which is now qryAreas.name must be pointing to a valid query name If I make it #iif(qryCustomer.allareas,DE(All Areas),DE(ValueList(qryAreas.name,', ')))# then it works fine in this case, but fails when qryCustomer.allareas is false as it doesn't evaluate the ValueList(qryAreas.name,', ') What am I doing wrong? Russ __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: iif usage
That's the whole point, Joe... I have the following code above it cfif not qryCustomer.allareas cfquery name=qryAreas datasource=#request.dsn# somequery /cfquery /cfif So therefore, qryAreas.name will only be defined if qryCustomer.allareas is false. I mean I have commented out the cfif above, so that the query runs in either case, but I'd still like to know how to get the iif to work the way I want it to. Russ P.S. Yes, sorry about missing the single quotes in the middle. I have the following code now, but still has the same problem if the qryAreas is not defined and qryCustomer.allareas is true: #iif(qryCustomer.allareas, 'All Areas' , '#ValueList(qryAreas.name,', ')#' )# -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 6:32 PM To: CF-Talk Subject: Re: iif usage Carefully note the usage of single and double quotes.. there are there for a reason! and make sure... u have the query.columnName.. u are pointing..to #IIF(qryCustomer.allareas, 'All Areas' , '#ValueList(qryAreas.name,',')#' )# Joe - Original Message - From: Ruslan Sivak [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 6:03 PM Subject: RE: iif usage #iif(qryCustomer.allareas,All Areas, '#ValueList(qryAreas.name,', ')#' )# Doesn't work either. Parameter 1 of function ValueList which is now qryAreas.name must be pointing to a valid query name Russ -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 5:49 PM To: CF-Talk Subject: Re: iif usage qryCustomer.allareas should be a 0 or any number other than 0 which is True your statment should look like below.. u dont need DE #IIF(qryCustomer.allareas, 'All Areas' , '#ValueList(qryAreas.name,',')#' )# Which means if qryCustomer.allareas !=0 ...display ALL Areas else Display qryAreas.name list.. Joe - Original Message - From: Ruslan Sivak [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 5:24 PM Subject: iif usage Hi, I'm having a problem with iif. If I do #iif(qryCustomer.allareas,DE(All Areas),DE(#ValueList(qryAreas.name,', ')#))# and qryCustomer.allareas is true, therefore qryAreas is undefined (I check for it with an cfif somewhere else), then I get an error Parameter 1 of function ValueList which is now qryAreas.name must be pointing to a valid query name If I make it #iif(qryCustomer.allareas,DE(All Areas),DE(ValueList(qryAreas.name,', ')))# then it works fine in this case, but fails when qryCustomer.allareas is false as it doesn't evaluate the ValueList(qryAreas.name,', ') What am I doing wrong? Russ __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Dreamweaver MX opinions
Hi Guys, I saw this in the list before - but could not see it in the archives. How do you insert a cf expression in DWMX (the old shift + ctrl + e). I have seen Neil's flash panel (from the DW exchange but is there a built in way in DWMX? cheers David -Original Message- From: Benoit Hediard [mailto:[EMAIL PROTECTED]] Sent: Friday, 6 September 2002 2:58 AM To: CF-Talk Subject: RE: Dreamweaver MX opinions Before to go back to Studio or HomeSite+, you should give a try and work during a week or two with Dreamweaver MX. Yes, it is slower than Homesite, but other than that, I personally won't go back to CF Studio, all the features I like in CF Studio are available in DWMX. And in DWMX, by default, code hints work better and the syntax coloring is cleaner. My two cents. Benoit -Message d'origine- De : charlie griefer [mailto:[EMAIL PROTECTED]] Envoye : jeudi 5 septembre 2002 18:57 A : CF-Talk Objet : Re: Dreamweaver MX opinions jt writes: I started using Dreamweaver MX, but backed off and am now using CFStudio 5 againjust can't beat it in my opinion. Josh: I'm about ready to go back to Studio 5...or even try Homesite+ (which I understand is bundled on the Studio MX cd)... my only concern is that eventually (i believe) MM will cease production of HomeSite altogether, as it has with Studio, and Dreamweaver will be the only alternative. May as well get used to it now I figure :| charlie Josh Trefethen http://exciteworks.com Affordable CF Hosting on Linux -Original Message- From: Trishan Singh [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 10:08 AM To: CF-Talk Subject: Re: Dreamweaver MX opinions Code Snippits are great.. if they didnt now with MX require the pane to be open to use them no shortcut keys like the old custom toolbars let you set up Anyone try the RDS... ohh wait to do that you have to have a site set up and if your site contains wav or mpgs the download errors... I miss my RDS explorer ability... PLEASE!! *grins* - Trishan Singh Paracom Technologies 316-293-2900 - Original Message - From: John McCosker [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, September 05, 2002 10:39 AM Subject: RE: Dreamweaver MX opinions I wish MM would have kept Studio seperate from DW, F1 for help shotcuts is gone which I found so god darn useful, maybe its something else now, but I do remember trying a number of alternatives to no avail. -Original Message- From: charlie griefer [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 4:32 PM To: CF-Talk Subject: Re: Dreamweaver MX opinions I just installed DWMX the other day, after coming from Studio and Homesite before it. I understand there will be a learning curve, and it will be uncomfortable for a few days...but here are a few of my current pet peeves: 1) yes, it's slow loading. 2) i'm used to ctrl-shift-b for br tag. it took me forever to figure out how to add that to the keyboard shortcuts. but even now that it's there, it puts the br, and then moves the cursor down to the next line :| 3) no internal browser for preview. i only recently started using this in Studio, more for javascript than cf pages...just to see if it will run before even bothering to save it. kind of got used to that. unless I'm missing it, there is no way to do that in DWMX. I really wish that since MM had bothered to make a homesite/coder 'view', that they would have kept the homesite shortcuts. just my thoughts. i'm sure there will be more :) charlie Jochem van Dieten writes: Bryan Stevenson wrote: For me the one glaring issue with DW MX is it's slw. So even after the learning curve it slows me down..SLS (still lovin studio) ;-) Disable your virus scanner for the DW MX install dir (if you dare). It is all those pesky little files that really make a virusscanner crawl. Jochem __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFObject in CFMX (Connection String)
It looks like connectstring and some other params of query are deprecated in CFMX.. so how do you go about doing a DNS-less connection in CFMX? Dynamic connections aren't supported in CF MX. This is documented in the release notes, I think, or in the regular documentation set itself. If I recall correctly, this is a limitation of JDBC. Where are Java JDBC driver info's stored in CFMX? I would like to use the TYPE IV Java drivers making direct calls to the DB.. Theoretically.. this would give the best performance..since u bypass the ODBC layer right? There's no ODBC layer used when you create a CF MX datasource anyway, if you're using a Type 4 driver. So, I don't think you'd get any performance increase even if you could build a dynamic connection. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Client Vars again
Cflocation is a client side redirect .. in effect it changes the header info of the clients browser to the new url page.. so NO variables will be set by the caller. Any local/session/client/application variables, and queries, etc., will work as normal on any code before the cflocation. But no cookies will be set on that page. Note that this is no longer true with CF MX - you can now use CFCOOKIE and CFLOCATION on the same page, if I recall correctly. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFObject in CFMX
On Sunday, September 8, 2002, at 09:13 , Joe Eugene wrote: If i am right ... obj.init() simply does an instanciation..ie calls the constructor. I dont have a constructor.. so the default constructor should be called right?.. so obj.init() is needed only when you have to instanciate the object and set variables too. some like... In that case you are safe but since you didn't post any code, I just wanted to mention it as one more thing to consider. Anyways i finally found out that you had to explicitly declare the class as public to get this working... so class chkString{} should be puiblic class chkString{}... Well, obviously the class needs to be declared public - otherwise, how could anything outside the package access it? Classes have access just like methods (and data members) and obey the same rules. after CFMX loads the class the first time and you replace the class with a new class...CFMX keeps the OLD class in memory.. so basically you have restart the CFAS... As Matt already pointed out, you need to configure JRun to hot load /WEB-INF/classes - by default it does not (you wouldn't really want to do this in production for performance and security reasons). For a development system, you might want to enable hot deployment. Is there any work around this... i mean you can't restart the server in the middle of productionAppreciate your help. See above - for performance and security reasons, you do not want not want to enable hot deployment on production. Instead you do want to control exactly what is running and therefore you should expect to have to restart the server when you make such changes (after all, you run your production server with trusted cache enabled, right? That disables 'hot deployment' of new CF pages). Sean A Corfield -- http://www.corfield.org/blog/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: iif usage
On Sunday, September 8, 2002, at 02:24 , Ruslan Sivak wrote: Hi, I'm having a problem with iif. Don't use it. If you used cfif, you wouldn't be having these problems. You' ve got a boolean test and you set a string value which you then test later (why not just use the same test or at least use a boolean type - fast - instead of a more expensive string test?). iif() should be avoided in almost all cases. If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: (Flash/CFMX Rocks!) Flash Remoting and Popchart
I just wish I could find some books/tutorials that are aimed squarely at my needs. Intermediate CF programmer, Flash novice. I noticed that most of the books I glanced through were really heavy on CF (being CF books) with just a few pages on integrating Flash, or heavy on Flash (being Flash books) with a few pages on CF. There isn't that much, really, that is specific between Flash MX and ColdFusion. So, if you have a good understanding of each, you should have very little trouble putting the two together. However, you might want to take a look at Inside Flash MX, from New Riders Publishing. It doesn't talk too much about CF, but it does have two chapters covering server-side integration, including CF and Flash Remoting. The book was written by the Flash development team at Fig Leaf Software, where we use Flash as an application interface quite a bit. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: (Flash/CFMX Rocks!) Flash Remoting and Popchart
Also have a look at the new Ben Forta et al Book Reality ColdFusion MX: Flash MX Integration http://www.amazon.com/exec/obidos/tg/detail/-/0321125150/ref=pd_bxgy_text_1/ 102-5120912-9070527?v=glances=books -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Monday, 9 September 2002 11:02 AM To: CF-Talk Subject: RE: (Flash/CFMX Rocks!) Flash Remoting and Popchart I just wish I could find some books/tutorials that are aimed squarely at my needs. Intermediate CF programmer, Flash novice. I noticed that most of the books I glanced through were really heavy on CF (being CF books) with just a few pages on integrating Flash, or heavy on Flash (being Flash books) with a few pages on CF. There isn't that much, really, that is specific between Flash MX and ColdFusion. So, if you have a good understanding of each, you should have very little trouble putting the two together. However, you might want to take a look at Inside Flash MX, from New Riders Publishing. It doesn't talk too much about CF, but it does have two chapters covering server-side integration, including CF and Flash Remoting. The book was written by the Flash development team at Fig Leaf Software, where we use Flash as an application interface quite a bit. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFObject in CFMX
Sean, see below - Original Message - From: Sean A Corfield [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 8:41 PM Subject: Re: CFObject in CFMX On Sunday, September 8, 2002, at 09:13 , Joe Eugene wrote: If i am right ... obj.init() simply does an instanciation..ie calls the constructor. I dont have a constructor.. so the default constructor should be called right?.. so obj.init() is needed only when you have to instanciate the object and set variables too. some like... In that case you are safe but since you didn't post any code, I just wanted to mention it as one more thing to consider. Anyways i finally found out that you had to explicitly declare the class as public to get this working... so class chkString{} should be puiblic class chkString{}... Well, obviously the class needs to be declared public - otherwise, how could anything outside the package access it? Classes have access just like methods (and data members) and obey the same rules. I am not sure if this is the case.. did u see the second post i made to Matt? Example class Simple {// note no public/private should default to public in Java public String getString(){ return (Method call without public/private); } public static void main(String args[]){ Simple s = new Simple(); //default constructor call System.out.println(s.getString()); } } now take the code.. compile and run it.. you should get the method called.. remove the main() and call it with CFOBJECT it starts to complain... I asked Matt the same question... after CFMX loads the class the first time and you replace the class with a new class...CFMX keeps the OLD class in memory.. so basically you have restart the CFAS... As Matt already pointed out, you need to configure JRun to hot load /WEB-INF/classes - by default it does not (you wouldn't really want to do this in production for performance and security reasons). For a development system, you might want to enable hot deployment. Is there any work around this... i mean you can't restart the server in the middle of productionAppreciate your help. See above - for performance and security reasons, you do not want not want to enable hot deployment on production. Instead you do want to control exactly what is running and therefore you should expect to have to restart the server when you make such changes (after all, you run your production server with trusted cache enabled, right? That disables 'hot deployment' of new CF pages). I see your point... i guess we should atleast implement hot load in development.. its a real pain to start and stop the server in development. Well is hot load implemented for CF classes.. i mean how is that implemented in CFMX? Joe Sean A Corfield -- http://www.corfield.org/blog/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFObject in CFMX (Connection String)
I saw the docs as well... is this a limitation of the JDBC-ODBC bridge or the native driver in CFMX? So the ODBC Socket or SQL Server drivers provided with CFMX are pure Java Type IV native drivers? No ODBC involved... can your confirm this?. Joe - Original Message - From: Dave Watts [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 8:32 PM Subject: RE: CFObject in CFMX (Connection String) It looks like connectstring and some other params of query are deprecated in CFMX.. so how do you go about doing a DNS-less connection in CFMX? Dynamic connections aren't supported in CF MX. This is documented in the release notes, I think, or in the regular documentation set itself. If I recall correctly, this is a limitation of JDBC. Where are Java JDBC driver info's stored in CFMX? I would like to use the TYPE IV Java drivers making direct calls to the DB.. Theoretically.. this would give the best performance..since u bypass the ODBC layer right? There's no ODBC layer used when you create a CF MX datasource anyway, if you're using a Type 4 driver. So, I don't think you'd get any performance increase even if you could build a dynamic connection. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: iif usage
Russ, You can do a little cheating here cfparam name=query.whatever default=0 // where u know the first expression will evaluate True set a default.. so in either case.. u have the variable Joe - Original Message - From: Ruslan Sivak [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 7:45 PM Subject: RE: iif usage That's the whole point, Joe... I have the following code above it cfif not qryCustomer.allareas cfquery name=qryAreas datasource=#request.dsn# somequery /cfquery /cfif So therefore, qryAreas.name will only be defined if qryCustomer.allareas is false. I mean I have commented out the cfif above, so that the query runs in either case, but I'd still like to know how to get the iif to work the way I want it to. Russ P.S. Yes, sorry about missing the single quotes in the middle. I have the following code now, but still has the same problem if the qryAreas is not defined and qryCustomer.allareas is true: #iif(qryCustomer.allareas, 'All Areas' , '#ValueList(qryAreas.name,', ')#' )# -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 6:32 PM To: CF-Talk Subject: Re: iif usage Carefully note the usage of single and double quotes.. there are there for a reason! and make sure... u have the query.columnName.. u are pointing..to #IIF(qryCustomer.allareas, 'All Areas' , '#ValueList(qryAreas.name,',')#' )# Joe - Original Message - From: Ruslan Sivak [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 6:03 PM Subject: RE: iif usage #iif(qryCustomer.allareas,All Areas, '#ValueList(qryAreas.name,', ')#' )# Doesn't work either. Parameter 1 of function ValueList which is now qryAreas.name must be pointing to a valid query name Russ -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 5:49 PM To: CF-Talk Subject: Re: iif usage qryCustomer.allareas should be a 0 or any number other than 0 which is True your statment should look like below.. u dont need DE #IIF(qryCustomer.allareas, 'All Areas' , '#ValueList(qryAreas.name,',')#' )# Which means if qryCustomer.allareas !=0 ...display ALL Areas else Display qryAreas.name list.. Joe - Original Message - From: Ruslan Sivak [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 5:24 PM Subject: iif usage Hi, I'm having a problem with iif. If I do #iif(qryCustomer.allareas,DE(All Areas),DE(#ValueList(qryAreas.name,', ')#))# and qryCustomer.allareas is true, therefore qryAreas is undefined (I check for it with an cfif somewhere else), then I get an error Parameter 1 of function ValueList which is now qryAreas.name must be pointing to a valid query name If I make it #iif(qryCustomer.allareas,DE(All Areas),DE(ValueList(qryAreas.name,', ')))# then it works fine in this case, but fails when qryCustomer.allareas is false as it doesn't evaluate the ValueList(qryAreas.name,', ') What am I doing wrong? Russ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFObject in CFMX (Connection String)
I saw the docs as well... is this a limitation of the JDBC-ODBC bridge or the native driver in CFMX? I'm not an expert on JDBC; I recall hearing that it's a limitation with JDBC. So the ODBC Socket or SQL Server drivers provided with CFMX are pure Java Type IV native drivers? No ODBC involved... can your confirm this?. The SQL Server driver in CF MX is a Type 4 driver. The ODBC Socket driver isn't - it can't be, because it's an connection to ODBC! The MS Access driver isn't a Type 4 driver, either. I'm not sure what type the ODBC Socket driver is, but I've been told by MM people that the Access driver is Type 3. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Client Vars again
On 9/8/02, Joe Bastian penned: Cflocation is a client side redirect .. in effect it changes the header info of the clients browser to the new url page.. so NO variables will be set by the caller. On 9/8/02, I penned: Any local/session/client/application variables, and queries, etc., will work as normal on any code before the cflocation. But no cookies will be set on that page. On 9/8/02, Dave Watts penned: Note that this is no longer true with CF MX - you can now use CFCOOKIE and CFLOCATION on the same page, if I recall correctly. Cool. I hope that's right. But cookies not being set wasn't my point. Joe's message said that NO variables are set on the page with the cflocation in it, and I was pointing out that that's incorrect. -- Bud Schneehagen - Tropical Web Creations _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ ColdFusion Solutions / eCommerce Development [EMAIL PROTECTED] http://www.twcreations.com/ 954.721.3452 __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Client Vars again
I have come across this in practice and dont advice using CFLOCATION for any kind of redirect.. that is why i mentioned this... you can check any documentation for that matter.. some of the new CFMX books dont recommend using CFLOCATION either. if you are using CFMX you have an option of using SERVER SIDE REDIRECT cfscript GetPageContext.forward(somepage.cfm); // similar in function to asp3.0 server.redirect(whatever.asp) rather than response.redirect(whatever.asp) /cfscript I think this will still keep the original url but passes control to the specified page.. I personally prefer using meta tags or Javascript as i mentioned before.. you dont have to deal with changing any code... Joe - Original Message - From: Bud [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 10:20 PM Subject: RE: Client Vars again On 9/8/02, Joe Bastian penned: Cflocation is a client side redirect .. in effect it changes the header info of the clients browser to the new url page.. so NO variables will be set by the caller. On 9/8/02, I penned: Any local/session/client/application variables, and queries, etc., will work as normal on any code before the cflocation. But no cookies will be set on that page. On 9/8/02, Dave Watts penned: Note that this is no longer true with CF MX - you can now use CFCOOKIE and CFLOCATION on the same page, if I recall correctly. Cool. I hope that's right. But cookies not being set wasn't my point. Joe's message said that NO variables are set on the page with the cflocation in it, and I was pointing out that that's incorrect. -- Bud Schneehagen - Tropical Web Creations _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ ColdFusion Solutions / eCommerce Development [EMAIL PROTECTED] http://www.twcreations.com/ 954.721.3452 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: iif usage
Iif is necessary in certain cases. Last time I checked, you can't use cfif inside other cf tags... (Maybe in mx you can). Russ -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 8:48 PM To: CF-Talk Subject: Re: iif usage On Sunday, September 8, 2002, at 02:24 , Ruslan Sivak wrote: Hi, I'm having a problem with iif. Don't use it. If you used cfif, you wouldn't be having these problems. You' ve got a boolean test and you set a string value which you then test later (why not just use the same test or at least use a boolean type - fast - instead of a more expensive string test?). iif() should be avoided in almost all cases. If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: iif usage
Iif is necessary in certain cases. I can't think of a single case in which it's necessary. It's just another way to perform conditional logic. If you have one way to perform conditional logic, you can do anything you need, although it might be clumsier in some situations than an alternative would be. Last time I checked, you can't use cfif inside other cf tags... (Maybe in mx you can). It depends on what you mean by inside. For example, you can do this: cfquery ... ... some SQL goes here ... cfif ... ... some conditional SQL goes here ... /cfif /cfquery However, even if you mean something else, you can always rewrite your application to use CFIF - you can do your conditional logic before the CFML tag which uses it, for example. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: iif usage
IIF is never necessary. -Original Message- From: Ruslan Sivak [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 9:45 PM To: CF-Talk Subject: RE: iif usage Iif is necessary in certain cases. Last time I checked, you can't use cfif inside other cf tags... (Maybe in mx you can). Russ -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 8:48 PM To: CF-Talk Subject: Re: iif usage On Sunday, September 8, 2002, at 02:24 , Ruslan Sivak wrote: Hi, I'm having a problem with iif. Don't use it. If you used cfif, you wouldn't be having these problems. You' ve got a boolean test and you set a string value which you then test later (why not just use the same test or at least use a boolean type - fast - instead of a more expensive string test?). iif() should be avoided in almost all cases. If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFObject in CFMX
On Sunday, September 8, 2002, at 06:01 , Joe Eugene wrote: I am not sure if this is the case.. did u see the second post i made to Matt? Yes. Example class Simple {// note no public/private should default to public in Java No, it is *not* public by default. Such a class is *not* accessible by an external system. Java requires that you specify public class Simple if you want Simple to be accessed outside of that package. now take the code.. compile and run it.. you should get the method called.. No you won't because your class is not public. remove the main() and call it with CFOBJECT it starts to complain... Of course. You took out a *public* method that accessed the class *from*within* and didn't leave any public interface. its a real pain to start and stop the server in development. /coldfusion stop /coldfusion start Takes a few seconds. Not much of a pain at all. But I agree that configuring hot load would make it even easier. Well is hot load implemented for CF classes.. i mean how is that implemented in CFMX? CF checks the timestamp on the *source* .cfm / .cfc file and if it is newer that the version it has already compiled, it compiles it (to Java and then compiles the .java to .class) and explicitly reloads the .class files. It can do this because it starts the process off by accessing a file and can do each step explicitly. This is very different from having a running Java system and dropping a new .class file in - the JVM does not normally look at the timestamps every time it invokes a class / method. If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: iif usage
On Sunday, September 8, 2002, at 08:45 , Ruslan Sivak wrote: Iif is necessary in certain cases. No it isn't. Last time I checked, you can't use cfif inside other cf tags... (Maybe in mx you can). You can always restructure such code to not need 'iif()'. Sean A Corfield -- http://www.corfield.org/blog/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: iif usage
I dont agree with Sean or Dave... i dont think IIF is necessary but its a very useful function ... IF USED PROPERLY For me #IIF(expression... , , )# is much more concise code than writting... cfif else /cfif Many of you guys dont agree.. but i personally prefer using IIF and i use it only when necessary... a good example would be...table row colors... i dont use the above for complex logic...write cfscript blocks of code... i am not very fond of cfif contructs... Joe - Original Message - From: Sean A Corfield [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, September 09, 2002 12:17 AM Subject: Re: iif usage On Sunday, September 8, 2002, at 08:45 , Ruslan Sivak wrote: Iif is necessary in certain cases. No it isn't. Last time I checked, you can't use cfif inside other cf tags... (Maybe in mx you can). You can always restructure such code to not need 'iif()'. Sean A Corfield -- http://www.corfield.org/blog/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFObject in CFMX
Outside of the Package might be right.. but i havent created any packages. now take the code.. compile and run it.. you should get the method called.. No you won't because your class is not public It compiled and ran the code succesfully with (class Simple) on java Simple // no public but CFObject didnt like this. I am not sure.. what your doing or are we on the same page here? Joe - Original Message - From: Sean A Corfield [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, September 09, 2002 12:15 AM Subject: Re: CFObject in CFMX On Sunday, September 8, 2002, at 06:01 , Joe Eugene wrote: I am not sure if this is the case.. did u see the second post i made to Matt? Yes. Example class Simple {// note no public/private should default to public in Java No, it is *not* public by default. Such a class is *not* accessible by an external system. Java requires that you specify public class Simple if you want Simple to be accessed outside of that package. now take the code.. compile and run it.. you should get the method called.. No you won't because your class is not public. remove the main() and call it with CFOBJECT it starts to complain... Of course. You took out a *public* method that accessed the class *from*within* and didn't leave any public interface. its a real pain to start and stop the server in development. /coldfusion stop /coldfusion start Takes a few seconds. Not much of a pain at all. But I agree that configuring hot load would make it even easier. Well is hot load implemented for CF classes.. i mean how is that implemented in CFMX? CF checks the timestamp on the *source* .cfm / .cfc file and if it is newer that the version it has already compiled, it compiles it (to Java and then compiles the .java to .class) and explicitly reloads the .class files. It can do this because it starts the process off by accessing a file and can do each step explicitly. This is very different from having a running Java system and dropping a new .class file in - the JVM does not normally look at the timestamps every time it invokes a class / method. If you're not annoying somebody, you're not really alive. -- Margaret Atwood __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Web Hosting services for ColdFusion
No - I didn't take it that way at all... No worries. Thank you - Jason -Original Message- From: charlie griefer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 5:11 PM To: CF-Talk Subject: Re: Web Hosting services for ColdFusion Jason Egan writes: Yeah... I know... It is funny... You would be surprised how many people call and ask if we support that, or flash, or even... HTML! We even get a few calls from people that see us in CFDJ, or on the macromedia site and ask if we support ColdFusion... I don't get it... We do what we gotta do... Jason CFDynamics.com Jason...yeah, trust me, i know the customer can be...not quite intelligent at times. Didn't mean to make it sound like i was knocking you guys (i even mentioned that you weren't the first hosting company i saw that did that). Hope it didn't come off that way. But y'know what would be really funny? offering all new customers a brand new keyboard that contains the ever-elusive Any key :) charlie -Original Message- From: charlie griefer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 11:51 AM To: CF-Talk Subject: Re: Web Hosting services for ColdFusion [EMAIL PROTECTED] writes: www.cfdynamics.com Good people, good prices. We use them and are very happy with them. -Novak I love that on their 'side-by-side comparison' page they list that all of their plans offer 'Java Script' :) - Original Message - From: siva girumala [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 7:12 AM Subject: Web Hosting services for ColdFusion Hi I am going to release a website for CFMX certification in a shortwhile. I would like to know about the hosting services for Coldfusion... Please mention few names either free/charge basis... Thank you --Siva Girumala __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists