Help with a Restricted feature error
Hi all, I am experiencing some very bizarre behaviour with the CFMX box at my ISP. I have an all CF site which uses some basic JavaScript to launch pop-up windows of other cf pages. This code works great in several places. I added a new page with a hyperlink to use this pop-up code to launch a help page, and the server is returning a CF Server error page that reads You tried to access a restricted feature for the Standard edition: JSP. Upon looking into this, I realized that I had saved the page as a JSP by accident, so I cut out the JSP specific tags on the page (which was just the page directive tag) and re-saved it as an HTML page. However, once uploaded, the problem persisted. I even created a new HTML page with a different name as well as trying a cfm page to no avail. The same error message continues to dog me. Any ideas? I am stumped and the ISP staff are as dumb as a post when it comes to CF issues. Any help appreciated. JW ~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183011 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: A bit OT: MySQL resources?
Does MySQL support stored procedures yet? Also, do any of the others mentioned you those of you who replied? Thanks JW ~| Protect your mail server with built in anti-virus protection. It's not only good for you, it's good for everybody. http://www.houseoffusion.com/banners/view.cfm?bannerid=39 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183012 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: editors, back to HomeSite+ for me
i did get it going and it is much nicer then it was before but the startup time is as long as dw and i cant see getting rid of dw as i use the extentions and snippetts too much like i said before, if it had a feature to do a quick open and edit a file, i would have a use for it but having to have it all defined and stuff is kinda a pain -- Original Message -- From: Spike [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Fri, 29 Oct 2004 07:28:07 -0700 Hi Dave, Why did you give up on it? At the minute we're trying to look at ways to make transition to cfeclipse simpler. Anyone who has tried it and no longer uses it can help us in that respect, so your comments would be appreciated. Spike dave wrote: i gave up on cfeclipse -- Original Message -- From: Spike [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Thu, 28 Oct 2004 10:28:36 -0700 Did you look at cfeclipse? Spike Damien McKenna wrote: Well, after spending ages between last night and this morning doing my bi-annual editor search, I went back to Homesite+ and am going to stick with it. The 5.5 version seems to do what I need in terms of code insight and syntax highlighting, and its less resource intensive than Dreamweaver by a good shot. -- Stephen Milligan Code poet for hire http://www.spike.org.uk Do you cfeclipse? http://cfeclipse.tigris.org ~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183013 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Message-ID being overwritten by CF?
Looks like CF is producing a Message-ID now. Must have come in on 6.1 at a guess. Thats good for CF in terms of compliance but bad for you personally. So its flat-out removing your message-id header, or are both present? -- --Matt Robertson-- President, Janitor MSB Designs, Inc. mysecretbase.com ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=35 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183014 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Message-ID being overwritten by CF?
I just checked my own 6.1 system and its using my specified message-ID. Maybe its a formatting issue. I use cfmailparam name=Message-ID value=#CreateUUID()[EMAIL PROTECTED] You've got an extra set of brackets in there. Thats the only functional difference I see. -- --Matt Robertson-- President, Janitor MSB Designs, Inc. mysecretbase.com ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=35 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183015 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: A bit OT: MySQL resources?
MySQL doesn't currently support stored procedures. The next version will though. ~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183016 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: editors, back to HomeSite+ for me
My two centsDW is the way to go. Split view, hand coding and designing all at the same time. If nothing else, it's so much quicker just placing your cursor in the right spot using design view as opposed to hunting through code. I say, Use all the tools available to speed up the process. DW does just that! THE GAME ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=34 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183017 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Where're PLUM????
How are the development state for PLUM? Beta, Alpha? We're anxious to take it in our hands!!! ;-) Cheers Marco ~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183018 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: A bit OT: MySQL resources?
whoo hoo another m$ user bites the dust! haha navicat is good but i dropped it for http://www.sqlmaestro.com/index.php mysql maestro is much nicer and if u need to u can make the db in access and import it into mysql with either of these, until u get the hang of mysql -- Original Message -- From: Will Tomlinson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Sat, 30 Oct 2004 20:50:16 -0400 I use MySQL with great success. The key I think is using a GUI to do your work. You get the power of MySQL, and it's just as easy as Access to use. Go to www.navicat.com and download the free trial. THE GAME! ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=38 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183019 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Menu based in user roles using CF
Hi all Mambo is a php open source CMS. By now very good. I'm looking developing a menu system based in user roles like haves Mambo. Please look the 4 images send with this message. Admin users haves all menu access Manager only any(a bit) Our application is based in user roles too... Please look that images and give me your comments to code a menu system like Mambo... Thanks for your time. Cheers W.E. ~| This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.houseoffusion.com/banners/view.cfm?bannerid=11 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183020 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Message-ID being overwritten by CF? Even stranger...
At 09:16 AM 10/31/2004, Matt Robertson wrote: I just checked my own 6.1 system and its using my specified message-ID. Maybe its a formatting issue. I use cfmailparam name=Message-ID value=#CreateUUID()[EMAIL PROTECTED] You've got an extra set of brackets in there. Thats the only functional difference I see. Hmmm. Ok, I removed the extra brackets. I changed to this: cfmailparam name = Message-ID value = [EMAIL PROTECTED] And then I grabbed the email from the spool directory before it got sent off. A piece of the header section from the file in the spool directory: to: Chris Camuglia [EMAIL PROTECTED] replyto: [EMAIL PROTECTED] subject: From Anders Green: Please RSVP type: text/plain; charset=UTF-8 X-Mailer: ColdFusion MX Application Server Message-ID: [EMAIL PROTECTED] X-RSVPID: [EFAE6B12A024D5BFB2376948BD28A8AD] And yet once the email arrives, it actually was: Message-ID: [EMAIL PROTECTED] Date: Sun, 31 Oct 2004 10:51:05 -0500 (EST) From: Anders Green [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Chris Camuglia [EMAIL PROTECTED] Subject: From Anders Green: Please RSVP Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailer: ColdFusion MX Application Server X-RSVPID: [EFAE6B12A024D5BFB2376948BD28A8AD] The other stuff is correct, but the Message-ID really *IS* being overwritten! Wacky. So, now CF is definitely putting the right stuff in the outgoing file. So, I suppose this gets filed under not a coding problem, but a something else problem. ;) Running windows 2000, SP4. Guesses anyone? Anders +===+ |Anders Green Email: [EMAIL PROTECTED] | | Home: 919.303.0218 | |Off Road Rally Racing Team: http://linaracing.com/ | +===+ ~| The annual ColdFusion User Conference is being held Sat 6/26 - Sun 6/27/04 8am-5pm in the Washington DC Area. http://www.houseoffusion.com/banners/view.cfm?bannerid=44 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183021 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Menu based in user roles using CF
Better post the images on one of your servers and send the links... Attachments are not allowed on the list... ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=36 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183022 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Cfhttp and displaying links
Hi, I've parsed some links from a website but the links are bad. The links are being parsed as a href=../folder/file.htmlblah/a but that poses a problem. I need it to show the whole proper url. I know where ../ leads so I can replace it but how do I display the right path? What I need to do is get rid of the ../ and replace it with http://www.thesite.com/ I'm inlcuding the code so you can see what i'm doing. Thanks Phil cfhttp URL=http://www.someurl.com/subfolder/file.html method=get/cfhttp cfset start=find(content to start on,CFHTTP.FileContent,1) cfset EndOfFile=find(end of content,CFHTTP.FileContent,1) cfloop from=1 to=5 index=whatever cfif FindNoCase(a,CFHTTP.FileContent,start) GT 0 cfif FindNoCase(a,CFHTTP.FileContent,start) GTE EndOfFile cfbreak /cfif cfset start=FindNoCase(a,CFHTTP.FileContent,start) cfset end=FindNoCase(/a,CFHTTP.FileContent,start)+4 cfset length=end-start cfoutput #Mid(CFHTTP.FileContent,start,length)#br /cfoutput cfset start=end /cfif /cfloop ~| Protect your mail server with built in anti-virus protection. It's not only good for you, it's good for everybody. http://www.houseoffusion.com/banners/view.cfm?bannerid=39 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183023 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Cfhttp and displaying links
From: Phillip Perry [mailto:[EMAIL PROTECTED] I've parsed some links from a website but the links are bad. The links are being parsed as a href=../folder/file.htmlblah/a but that poses a problem. I need it to show the whole proper url. I know where ../ leads so I can replace it but how do I display the right path? What I need to do is get rid of the ../ and replace it with http://www.thesite.com/ Try adding the resolveURL attribute and setting it to yes cfhttp URL=http://www.someurl.com/subfolder/file.html method=get resolveURL=yes /cfhttp HTH. Mike ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=38 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183024 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
another cfhttp issue
Along with the links i'm also parsing some inline css. Is there a way I can get rid of those css lines? Phil -Original Message- From: Cold Fusion User Group CNY [mailto:[EMAIL PROTECTED] Behalf Of Gregory Lewis Sent: Sunday, October 31, 2004 4:02 PM To: [EMAIL PROTECTED] Subject: Re: [CFUGCNY] Cfhttp and displaying links Hi Phillip, You need to use the RESOLVEURL=YES attribute in your CFHTTP tag, like so: CFHTTP URL=http://www.someurl.com/subfolder/file.html; METHOD=GET RESOLVEURL=YES/CFHTTP Then, all your worldly problems will melt away like butter. -Gregory Phillip Perry wrote: Hi, I've parsed some links from a website but the links are bad. The links are being parsed as a href=../folder/file.htmlblah/a but that poses a problem. I need it to show the whole proper url. I know where ../ leads so I can replace it but how do I display the right path? What I need to do is get rid of the ../ and replace it with http://www.thesite.com/ I'm inlcuding the code so you can see what i'm doing. Thanks Phil cfhttp URL=http://www.someurl.com/subfolder/file.html method=get/cfhttp cfset start=find(content to start on,CFHTTP.FileContent,1) cfset EndOfFile=find(end of content,CFHTTP.FileContent,1) cfloop from=1 to=5 index=whatever cfif FindNoCase(a,CFHTTP.FileContent,start) GT 0 cfif FindNoCase(a,CFHTTP.FileContent,start) GTE EndOfFile cfbreak /cfif cfset start=FindNoCase(a,CFHTTP.FileContent,start) cfset end=FindNoCase(/a,CFHTTP.FileContent,start)+4 cfset length=end-start cfoutput #Mid(CFHTTP.FileContent,start,length)#br /cfoutput cfset start=end /cfif /cfloop To unsubscribe: send a message to [EMAIL PROTECTED] with 'Unsubscribe CFUGCNY' in the body. To send a message to the list: [EMAIL PROTECTED] List archives: http://www.mail-archive.com/[EMAIL PROTECTED]/index.html Visit our website: http://www.cfugcny.org -- #include Inter_Galactic_Library invokeHuman('Gregory','Lewis'); doDomain('www.earthboar.com'); To unsubscribe: send a message to [EMAIL PROTECTED] with 'Unsubscribe CFUGCNY' in the body. To send a message to the list: [EMAIL PROTECTED] List archives: http://www.mail-archive.com/[EMAIL PROTECTED]/index.html Visit our website: http://www.cfugcny.org To unsubscribe: send a message to [EMAIL PROTECTED] with 'Unsubscribe CFUGCNY' in the body. To send a message to the list: [EMAIL PROTECTED] List archives: http://www.mail-archive.com/[EMAIL PROTECTED]/index.html Visit our website: http://www.cfugcny.org ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=38 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183025 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Cfhttp and displaying links
Thanks Michael that works -Original Message- From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] Sent: Sunday, October 31, 2004 4:30 PM To: CF-Talk Subject: RE: Cfhttp and displaying links From: Phillip Perry [mailto:[EMAIL PROTECTED] I've parsed some links from a website but the links are bad. The links are being parsed as a href=../folder/file.htmlblah/a but that poses a problem. I need it to show the whole proper url. I know where ../ leads so I can replace it but how do I display the right path? What I need to do is get rid of the ../ and replace it with http://www.thesite.com/ Try adding the resolveURL attribute and setting it to yes cfhttp URL=http://www.someurl.com/subfolder/file.html method=get resolveURL=yes /cfhttp HTH. Mike ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=35 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183026 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: another cfhttp issue
I've got it. I just did a replacenocase() on it and it worked fine. Phil -Original Message- From: Phillip Perry [mailto:[EMAIL PROTECTED] Sent: Sunday, October 31, 2004 4:34 PM To: CF-Talk Subject: another cfhttp issue Along with the links i'm also parsing some inline css. Is there a way I can get rid of those css lines? Phil -Original Message- From: Cold Fusion User Group CNY [mailto:[EMAIL PROTECTED] Behalf Of Gregory Lewis Sent: Sunday, October 31, 2004 4:02 PM To: [EMAIL PROTECTED] Subject: Re: [CFUGCNY] Cfhttp and displaying links Hi Phillip, You need to use the RESOLVEURL=YES attribute in your CFHTTP tag, like so: CFHTTP URL=http://www.someurl.com/subfolder/file.html; METHOD=GET RESOLVEURL=YES/CFHTTP Then, all your worldly problems will melt away like butter. -Gregory Phillip Perry wrote: Hi, I've parsed some links from a website but the links are bad. The links are being parsed as a href=../folder/file.htmlblah/a but that poses a problem. I need it to show the whole proper url. I know where ../ leads so I can replace it but how do I display the right path? What I need to do is get rid of the ../ and replace it with http://www.thesite.com/ I'm inlcuding the code so you can see what i'm doing. Thanks Phil cfhttp URL=http://www.someurl.com/subfolder/file.html method=get/cfhttp cfset start=find(content to start on,CFHTTP.FileContent,1) cfset EndOfFile=find(end of content,CFHTTP.FileContent,1) cfloop from=1 to=5 index=whatever cfif FindNoCase(a,CFHTTP.FileContent,start) GT 0 cfif FindNoCase(a,CFHTTP.FileContent,start) GTE EndOfFile cfbreak /cfif cfset start=FindNoCase(a,CFHTTP.FileContent,start) cfset end=FindNoCase(/a,CFHTTP.FileContent,start)+4 cfset length=end-start cfoutput #Mid(CFHTTP.FileContent,start,length)#br /cfoutput cfset start=end /cfif /cfloop To unsubscribe: send a message to [EMAIL PROTECTED] with 'Unsubscribe CFUGCNY' in the body. To send a message to the list: [EMAIL PROTECTED] List archives: http://www.mail-archive.com/[EMAIL PROTECTED]/index.html Visit our website: http://www.cfugcny.org -- #include Inter_Galactic_Library invokeHuman('Gregory','Lewis'); doDomain('www.earthboar.com'); To unsubscribe: send a message to [EMAIL PROTECTED] with 'Unsubscribe CFUGCNY' in the body. To send a message to the list: [EMAIL PROTECTED] List archives: http://www.mail-archive.com/[EMAIL PROTECTED]/index.html Visit our website: http://www.cfugcny.org To unsubscribe: send a message to [EMAIL PROTECTED] with 'Unsubscribe CFUGCNY' in the body. To send a message to the list: [EMAIL PROTECTED] List archives: http://www.mail-archive.com/[EMAIL PROTECTED]/index.html Visit our website: http://www.cfugcny.org ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=37 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183027 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: includes and cfc's
Joe that seems a good point. One that had slipped by me until now. is there a shorthand way to pass the datasaource name to CFCs or do you have to include the datasource name as one of the arguments every time you instantiate a CFC? Cheers Mike Kear Windsor, NSW, Australia AFP Webworks http://afpwebworks.com .com,.net,.org domains from AUD$20/Year On Sat, 30 Oct 2004 08:50:24 -0400, Joe Rinehart [EMAIL PROTECTED] wrote: Mike, It can be referenced fine from within the CFC, but it's probably not a good idea. A CFC shouldn't reach out to external data, but instead be told what it needs to know. Doing otherwise breaks what's known as 'encapsulation' in the OOP world. Basically, it lowers the reusability of your CFC: what if you were migrating between two databases, your CFC had a perfect method to talk to both, and you wanted to instantiate two instances pointed at two different datasources? Cheers, Joe ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=35 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183028 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: includes and cfc's
is there a shorthand way to pass the datasaource name to CFCs or do you have to include the datasource name as one of the arguments every time you instantiate a CFC? There are certainly shortcuts, but for the sake of clean encapsulation I would recommend that you simply pass it in as an argument to a method. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=36 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183029 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: A bit OT: MySQL resources?
wow, that only took about 12 hrs too post -- Original Message -- From: dave [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Sat, 30 Oct 2004 22:01:14 -0400 whoo hoo another m$ user bites the dust! haha navicat is good but i dropped it for http://www.sqlmaestro.com/index.php mysql maestro is much nicer and if u need to u can make the db in access and import it into mysql with either of these, until u get the hang of mysql -- Original Message -- From: Will Tomlinson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Sat, 30 Oct 2004 20:50:16 -0400 I use MySQL with great success. The key I think is using a GUI to do your work. You get the power of MySQL, and it's just as easy as Access to use. Go to www.navicat.com and download the free trial. THE GAME! ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=35 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183030 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: includes and cfc's
yeah thats why i asked it raymond has a pretty clever way but i dont really get it -- Original Message -- From: Mike Kear [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 1 Nov 2004 10:39:28 +1100 Joe that seems a good point. One that had slipped by me until now. is there a shorthand way to pass the datasaource name to CFCs or do you have to include the datasource name as one of the arguments every time you instantiate a CFC? Cheers Mike Kear Windsor, NSW, Australia AFP Webworks http://afpwebworks.com .com,.net,.org domains from AUD$20/Year On Sat, 30 Oct 2004 08:50:24 -0400, Joe Rinehart [EMAIL PROTECTED] wrote: Mike, It can be referenced fine from within the CFC, but it's probably not a good idea. A CFC shouldn't reach out to external data, but instead be told what it needs to know. Doing otherwise breaks what's known as 'encapsulation' in the OOP world. Basically, it lowers the reusability of your CFC: what if you were migrating between two databases, your CFC had a perfect method to talk to both, and you wanted to instantiate two instances pointed at two different datasources? Cheers, Joe ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=37 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183031 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: includes and cfc's
Where applicable (on createObject/cfobject instead of cfinvoke), I make an init() method that sets a local variable for a dsn. Init methods look like: function init(dsn) { variables.dsn=arguments.dsn; return this; } then to instantiate the cfc, it's like this: myCFC = createObject(component,myCFCFile).init(request.dsn); After that, all queries use datasource=#variables.dsn# for the life of the object (variables, appplication, session, etc.) -nathan strutz dave wrote: on his galleon forums he uses a .ini file -- Original Message -- From: Mike Kear [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 1 Nov 2004 11:04:08 +1100 Raymond says: [quote] The method I use is to instantiate (in the application.cfm) a DP_PersistenceInfo CFC - this CFC contains all of the properties related to a specific datasource. This CFC is added to a special DP_Application CFC which is, itself, stored in the Application scope. [/quote] Isn't this conceptually the same thing as using a shared scope? How is putting the persistence variables such as datasource name in a persistence.cfc different from putting those same variables in application variables? Doesnt that create the same dependencies? Cheers Mike Kear Windsor, NSW, Australia AFP Webworks http://afpwebworks.com .com,.net,.org domains from AUD$20/Year On Sun, 31 Oct 2004 18:50:11 -0500, dave [EMAIL PROTECTED] wrote: yeah thats why i asked it raymond has a pretty clever way but i dont really get it ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=38 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183035 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: includes and cfc's
Hey Mike, I'm with Dave W. - it should probably be the argument to a method. One thing a number of us have been doing (some people like it, some people don't) is adding a method called init that takes initialization parameters for a CFC and then returning the cfc itself. It acts sort of like a constructor in more truly OOP languages. Cheers, Joe -- For Tabs, Trees, and more, use the jComponents: http://clearsoftware.net/clear/?template=downloads.jComponents ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=38 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183036 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: includes and cfc's
I've lost the original link to what Raymond was talking about .. can someone please email it to me or post it here? Cheers Mike Kear Windsor, NSW, Australia AFP Webworks http://afpwebworks.com .com,.net,.org domains from AUD$20/Year ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=38 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183037 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: A bit OT: MySQL resources?
Congrats on moving away from Access! MySQL is great. If you have apache running, you can also run phpMyAdmin -- it is a good web interface for MySQL. If you need more functionality (stored procedures, triggers, etc.) I would also recomend PostgreSQL. There are various front end tools for this RDBMS as well. It is a bit much to take in all at once I am sure, but once you start getting used to either of these, you'll be glad you jumped ship and started using a real database! I haven't used Access in years! -- Exciteworks, Inc Expert Hosting for less! *Ask for a free 30 day trial!* http://exciteworks.com Plans starting at -$12.95- including MS SQL Server! ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=37 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183038 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: A bit OT: MySQL resources?
or u could be a politcally correct cfm'r and use http://www.cfmyadmin.com/ -- Original Message -- From: JT News [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Sun, 31 Oct 2004 21:04:00 -0500 Congrats on moving away from Access! MySQL is great. If you have apache running, you can also run phpMyAdmin -- it is a good web interface for MySQL. If you need more functionality (stored procedures, triggers, etc.) I would also recomend PostgreSQL. There are various front end tools for this RDBMS as well. It is a bit much to take in all at once I am sure, but once you start getting used to either of these, you'll be glad you jumped ship and started using a real database! I haven't used Access in years! -- Exciteworks, Inc Expert Hosting for less! *Ask for a free 30 day trial!* http://exciteworks.com Plans starting at -$12.95- including MS SQL Server! ~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183039 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: includes and cfc's
Joe, This is pretty interesting, the init function and different ways of calling CFCs...is there any further documentation on this anywhere? I love seeing new ways to do things. This matches better what I have used in other languages. oh and PS, I tried your link in the footer (http://clearsoftware.net/clear/?template=downloads.jComponents) and got an HTTP 403 Forbidden error. -Josh -- Exciteworks, Inc Expert Hosting for less! *Ask for a free 30 day trial!* http://exciteworks.com Plans starting at -$12.95- including MS SQL Server! On Sun, 31 Oct 2004 20:23:54 -0500, Joe Rinehart [EMAIL PROTECTED] wrote: Hey Mike, I'm with Dave W. - it should probably be the argument to a method. One thing a number of us have been doing (some people like it, some people don't) is adding a method called init that takes initialization parameters for a CFC and then returning the cfc itself. It acts sort of like a constructor in more truly OOP languages. Cheers, Joe -- For Tabs, Trees, and more, use the jComponents: http://clearsoftware.net/clear/?template=downloads.jComponents ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=36 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183040 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: A bit OT: MySQL resources?
Thanks for the link! I haven't seen this one before...worth a look. I am not shy about using other technologies though...CF is just one of the tools in my tool box ;-) -Josh -- Exciteworks, Inc Expert Hosting for less! *Ask for a free 30 day trial!* http://exciteworks.com Plans starting at -$12.95- including MS SQL Server! On Sun, 31 Oct 2004 21:13:25 -0500, dave [EMAIL PROTECTED] wrote: or u could be a politcally correct cfm'r and use http://www.cfmyadmin.com/ ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=37 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183041 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
OT: Sql Server 2005 Express
Anyone download the SQL 2005 Express beta from MS yet? If so, where in the heck do you create a new DB? The new SQL Computer Manager is a bit confusing. Thanks. Mike ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=34 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183042 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Logging all users actions...
Hello, I am not sure what you are asking... Are you asking if it is possible to log a user's actions in your application in a DB? OR Are you asking if the DB logs all the database user actions (actions of a user against tables, etc.) in the database somewhere? If it is #1, then yes, you can...you need to insert a record for each event you want logged. This could get pretty large though, depending on how much activity your app gets. I am doing something similar to this for a project I am working oin currently. A customer requirement is to log all actions in the application in the Oracle DB, and provide reports on it. If it is #2, I would consult your RDBMS' documentation. Hope that helps! -- Exciteworks, Inc Expert Hosting for less! *Ask for a free 30 day trial!* http://exciteworks.com Plans starting at -$12.95- including MS SQL Server! ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=35 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183043 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Logging all users actions...
I inherited a project that does this via CF and inserts into a table. It basically calls a custom tag anytime a insert/update/delete is done via the web site. You could do it in the DB via triggers or I assume it could be done in PGSQL. On Sat, 30 Oct 2004 20:04:40 -0200, Web Specialist [EMAIL PROTECTED] wrote: Hi it's possible to log all users actions in a DB? I'm using PostgreSQL. Looks like: User / Action / Datetime / Original Value / Value Now / I should use DB tools or CF could help me? Thanx in advance ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=37 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183044 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Menu based in user roles using CF
Your talking about an ACL (access control list). Most mature applications have this in one form or another. They typically involve (in my experience) an access level that is numeric (say 10 for an admin and 1 for guest) and involve evaluating the current user's access to determine if a tab should be displayed or not. psuedo code: if ( user.access GTE 5 ) { // show tab } You also need to keep in mind that users can be curious and may try to access a screen they are not suppossed to have access to. For this reason, you also need to have some security on each screen to redirect or display an access denied message if the unauthorized user happens to arrive at the screen. What are your concerns or areas you feel like you need help? Hope that helps some... -- Exciteworks, Inc Expert Hosting for less! *Ask for a free 30 day trial!* http://exciteworks.com Plans starting at -$12.95- including MS SQL Server! On Sun, 31 Oct 2004 11:35:47 -0500, Michael T. Tangorre [EMAIL PROTECTED] wrote: Better post the images on one of your servers and send the links... Attachments are not allowed on the list... ~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=36 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183045 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
List of MIME types and icons?
Hi all, Does anyone know of a list of MIME types and has a corresponding icon for (as many as possible) types? i.e. A little MS Word icon, Excel icon etc etc. Regards, Jon ~| This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.houseoffusion.com/banners/view.cfm?bannerid=11 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183046 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: List of MIME types and icons?
A few: http://www.eswsoftware.com/library/resources.cfm -Original Message- From: Jon Austin [mailto:[EMAIL PROTECTED] Sent: Monday, 1 November 2004 5:12 p.m. To: CF-Talk Subject: List of MIME types and icons? Hi all, Does anyone know of a list of MIME types and has a corresponding icon for (as many as possible) types? i.e. A little MS Word icon, Excel icon etc etc. Regards, Jon ~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183047 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54