Re: Getting URL from URL address bar!

2009-09-24 Thread David Torres
I cannot do anything with my domain server. This is why I have been trying to do this in another way. What has not been said: Often, these redirects are handled by the Domain Name Server, so that the redirect happens before the request has even touched your server - in which case you cannot

Re: Getting URL from URL address bar!

2009-09-24 Thread Dominic Watson
I cannot do anything with my domain server. This is why I have been trying to do this in another way. Well yes, exactly. How is the DNS setup for these domains? Are the redirects being handled by the DNS? If so, and you have no access to change this - you will not be able to log what you want

cfc's above the webroot

2009-09-24 Thread Phillip Vector
I would like to store my CFC's above my webroot (../Data/cfc to be precise). Do I need any special coding to show this? cfinvoke component=CFCFILENAME.CFCCOMPONENT method=CFCFUNCTION returnvariable=RETURNVARIABLE/cfinvoke It seems to me cfc's MUST be on the webroot for this to function

RE: cfc's above the webroot

2009-09-24 Thread Mark Kruger
Phil, You can create a CF mapping that points to your data directory ... Say 'cfclib' ... And then use it as in: Component=cfclib.cfcfilename Keep in mind that a CFC outside the web root is going to be innaccessible via Ajax or remoting (of course you could extend it using a component inside

Re: cfc's above the webroot

2009-09-24 Thread chornobyl
You can make a mapping to a folder outside of the root, and point the request to the mapping. On Thu, Sep 24, 2009 at 10:49 AM, Phillip Vector vec...@mostdeadlygame.comwrote: I would like to store my CFC's above my webroot (../Data/cfc to be precise). Do I need any special coding to show

Re: cfc's above the webroot

2009-09-24 Thread Phillip Vector
Ok.. Let's pretend though that I don't have access to mapping (shared hosting). Any other way or am I just being to security conscious about cfcs in the webroot? On Thu, Sep 24, 2009 at 8:11 AM, chornobyl chorno...@gmail.com wrote: You can make a mapping to a folder outside of the root, and

RE: cfc's above the webroot

2009-09-24 Thread Mark Kruger
It's always good to be security conscious :) Without the ability to fully control the server here's one trick (a little clunky but serviceable). You can put your CFCs in a subfolder and include an application.cfc in the subfolder that aborts any requests directly to that folder.

RE: cfc's above the webroot

2009-09-24 Thread Andy Matthews
Ben Nadel wrote a blog post about doing this sort of thing: http://www.bennadel.com/index.cfm?dax=blog:1125.view -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Thursday, September 24, 2009 9:49 AM To: cf-talk Subject: cfc's above the webroot I

Re: cfc's above the webroot

2009-09-24 Thread Phillip Vector
Sorry for my ignorance on this. I'm just now starting to get heavy into cfc's and seeing what they can do (I've always used code in the directory I was working with before). So if I put an application.cfc... How do I code that so it aborts direct connections to any other cfc? I mean, I have

Re: cfc's above the webroot

2009-09-24 Thread Ian Skinner
Phillip Vector wrote: Ok.. Let's pretend though that I don't have access to mapping (shared hosting). Any other way or am I just being to security conscious about cfcs in the webroot? A ColdFusion hosting provider worth the name, should have some mechanism for creating a mapping. It may

Re: cfc's above the webroot

2009-09-24 Thread Phillip Vector
Wow.. Ask and ye shall receive. :) Thanks. :) On Thu, Sep 24, 2009 at 8:27 AM, Andy Matthews li...@commadelimited.com wrote: Ben Nadel wrote a blog post about doing this sort of thing: http://www.bennadel.com/index.cfm?dax=blog:1125.view -Original Message- From: Phillip Vector

Re: cfc's above the webroot

2009-09-24 Thread Azadi Saryev
Mark, I am afraid that in CF8 (at least; and I know in CF9 this has been fixed) remote methods in a cfc do not work in a cfc that extends it. At least that was the case - I am not sure if CHF3 for CF8.0.1 has fixed this or not... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On

RE: cfc's above the webroot

2009-09-24 Thread Andy Matthews
That's not true. We do this sort of thing all the time in our code. We'll have our primary CFC outside the web root, then in a web accessible folder, have a CFC with the same name, which simply extends the remote CFC via mapping. In the outside CFC, various methods are set to remote, but called

Re: Getting URL from URL address bar!

2009-09-24 Thread David Torres
My dear Matt, I am guessing, the way you respond to people, you might have a very difficult time to get alone with others easy. KEEP YOU SMART COMMENTS TO YOURSELF NEXT TIME! Now going back to your post; thank you a little for your clarification about what Bradley was pointing out earlier. I

Re: cfc's above the webroot

2009-09-24 Thread Azadi Saryev
sorry, my memory was failing me a bit. The issue exists only with using cfajaxproxy to a cfc that extends another one - cf does not create js functions for any remote methods from the extended cfc. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 24/09/2009 23:34, Andy Matthews wrote:

RE: cfc's above the webroot

2009-09-24 Thread Andy Matthews
Gotcha. We don't use ajaxproxy...just straight jQuery. -Original Message- From: Azadi Saryev [mailto:az...@sabai-dee.com] Sent: Thursday, September 24, 2009 10:44 AM To: cf-talk Subject: Re: cfc's above the webroot sorry, my memory was failing me a bit. The issue exists only with

Re: cfc's above the webroot

2009-09-24 Thread dwatts
Ok.. Let's pretend though that I don't have access to mapping (shared hosting). Any other way or am I just being to security conscious about cfcs in the webroot? I think it's a good idea to store everything outside the web root except the actual .cfm files that are requested by the browser

Re: cfc's above the webroot

2009-09-24 Thread Phillip Vector
So let's say I have an application.cfm.. I also have an applicaiton.cfc. I don't need both. Right? If I put the code from application.cfm into application.cfc, will it automatically trigger the functions as needed (for example, cffunction name=OnRequest) or do I need to have Application.cfm call

Re: cfc's above the webroot

2009-09-24 Thread dwatts
So let's say I have an application.cfm.. I also have an applicaiton.cfc. I don't need both. Right? If I put the code from application.cfm into application.cfc, will it automatically trigger the functions as needed (for example, cffunction name=OnRequest) or do I need to have Application.cfm

Re: cfc's above the webroot

2009-09-24 Thread Phillip Vector
Thanks. :) On Thu, Sep 24, 2009 at 9:18 AM, dwatts dwa...@figleaf.com wrote: So let's say I have an application.cfm.. I also have an applicaiton.cfc. I don't need both. Right? If I put the code from application.cfm into application.cfc, will it automatically trigger the functions as needed

Re: CF jQuery - How to delay ajax completion until images are processed...

2009-09-24 Thread Dave l
If you go back to what I keep telling you about multi-steps then it works like you want it to.. do something after the upload and then report it back to script because then you know it was done. ~| Want to reach the

CFC Question

2009-09-24 Thread Phillip Vector
So for the meantime, I've put my cfc directory in the web root on the development server I use. I have the following code to call the cfc 1 cfinvoke component=cfc.filename method=Read returnvariable=User 2 cfinvokeargument name=UserID value=13204721-3474-8967-4897498740174013 3 /cfinvoke 4 I

Re: CFC Question

2009-09-24 Thread Brian McCairn
component=filename maybe ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326588

Re: CF jQuery - How to delay ajax completion until images are processed...

2009-09-24 Thread Dave l
maybe this video will help, maybe not www.jamwerx.com/rick.mp4 ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

Re: CF jQuery - How to delay ajax completion until images are processed...

2009-09-24 Thread Tony Bentley
Ususally the steps are the following: 1.)user hits go 2.) a 'waiting' div pops up to prevent user from hitting anything while it processes 3.) coldfusion does all of the processing and sends back the response 4.) javascript keeps checking that image using ajax/coldfusion cffile to see if it

Re: CFC Question

2009-09-24 Thread Phillip Vector
tried that. Nope. On Thu, Sep 24, 2009 at 11:35 AM, Brian McCairn brian.mcca...@medicapp.eu wrote: component=filename maybe ~| Want to reach the ColdFusion community with something they want? Let them know on the House of

Re: CFC Question

2009-09-24 Thread Brian McCairn
cfcomponent tags round the cffunction? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

Re: CFC Question

2009-09-24 Thread Brian McCairn
what do you get if you browse to webroot/cfc/filename.cfc?wsdl ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

RE: CFC Question

2009-09-24 Thread Andy Matthews
So you're calling this file from within ColdFusion directly right? What happens if you create it using CreateObject? cfset myCFC = CreateObject('component','cfc.filename') cfset user = myCFC.Read(13204721-3474-8967-4897498740174013) Are you getting an error? andy -Original

Re: CFC Question

2009-09-24 Thread Dan Farrell
Coldfusion user has permission to the file? So you're calling this file from within ColdFusion directly right? What happens if you create it using CreateObject? cfset myCFC = CreateObject('component','cfc.filename') cfset user = myCFC.Read(13204721-3474-8967-4897498740174013) Are you

Re: jQuery ajax call question

2009-09-24 Thread Dan Farrell
I didn't try the code, but I'd imagine .getJSON would be similar to the .ajax but with the dataType:json ajax option It works if I change the call from $.ajax to: $.getJSON('cfcs/tjq.cfc?method=userreturnformat=JSON', function(data) {

Re: CFC Question

2009-09-24 Thread Phillip Vector
Yes and cfcomponent name=filename is at the top (and closing). filename.cfc in the cfc directory cfcomponent name=filename cffunction name=Read returntype=Query access=remote cfargument name=UserID type=string cfscriptvar Data=;/cfscript

RE: CFC Question

2009-09-24 Thread Andy Matthews
Errors, yes or no? If CF is seeing it, then you should be getting a response. If it doesn’t see it, then you should get an error. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Thursday, September 24, 2009 2:59 PM To: cf-talk Subject: Re: CFC Question

Re: CFC Question

2009-09-24 Thread Azadi Saryev
you do not actually have 2 and 3 as text inside your cfinvoke block, do you? Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 25/09/2009 02:30, Phillip Vector wrote: So for the meantime, I've put my cfc directory in the web root on the development server I use. I have the following

Re: CFC Question

2009-09-24 Thread Phillip Vector
yes, but I took them out and it still has the same result. The cfinvoke is not firing I don't think. On Thu, Sep 24, 2009 at 1:31 PM, Azadi Saryev az...@sabai-dee.com wrote: you do not actually have 2 and 3 as text inside your cfinvoke block, do you? Azadi Saryev Sabai-dee.com

Re: CFC Question

2009-09-24 Thread Azadi Saryev
firebug will tell you if it is firing or not. and you do have cfdump var=#user# or another output of USER var after your cfinvoke block, right? Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 25/09/2009 04:45, Phillip Vector wrote: yes, but I took them out and it still has the same

Re: CFC Question

2009-09-24 Thread Phillip Vector
Not yet. However, I do have a 4 which isn't showing up (which it would if the file got that far. On Thu, Sep 24, 2009 at 1:53 PM, Azadi Saryev az...@sabai-dee.com wrote: firebug will tell you if it is firing or not. and you do have cfdump var=#user# or another output of USER var after your

Re: CFC Question

2009-09-24 Thread Azadi Saryev
test your page in firefox with firebug installed. look at the Net tab to see if the request to your cfc fires and what it returns, if anything... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 25/09/2009 04:55, Phillip Vector wrote: Not yet. However, I do have a 4 which isn't showing

Re: CFC Question

2009-09-24 Thread Phillip Vector
No errors showing up on the screen (Yes, I have debugging on). You are right. So according to what I am seeing, CF is seeing it and processing it. Except I never see the 4. On Thu, Sep 24, 2009 at 1:27 PM, Andy Matthews li...@commadelimited.com wrote: Errors, yes or no? If CF is seeing it,

Re: CFC Question

2009-09-24 Thread Alan Rother
Hey Philip, Is this literally all the code on the page? TestUsers.cfm 1 cfinvoke component=cfc.filename method=Read returnvariable=User 2 cfinvokeargument name=UserID value=13204721-3474-8967-4897498740174013 3 /cfinvoke 4 Nothing else? If so, then, it's working... You just don't have any

Re: CFC Question

2009-09-24 Thread Phillip Vector
That is litterally all the code in the page. It isn't firing the invoke. But I have good news. I have been working with fusebox on this (having double cfc's inthe circuit directory and the root just to be sure) and it wasn't working. I moved it over to it's own folder with no fusebox and I'm

Re: CFC Question

2009-09-24 Thread Alan Rother
Glad you found the issue... however in the future, disclosing a valuable piece of information like, the fact you're running this code inside a fusebox app would have cut this thread down to one or two emails... =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager,

Re: CFC Question

2009-09-24 Thread Phillip Vector
Yeah. I know. I'm not thinking today. Sorry about that. I didn't think it was that much of an issue. I think I'm going to use application.cfc and not try to put in CFC's into the application. It's to frustrating for not enough gain IMHO. On Thu, Sep 24, 2009 at 2:14 PM, Alan Rother

cftextarea richtext=true not displaying after clicking ajaxlink

2009-09-24 Thread Shadeyoj Shadeyoj
I can't get the cftextarea richtext=true to display after clicking ajaxlink (or coldfusion.navigate) The cftextarea renders as a textarea. Page B works independently. Page A cfdiv id=contentDiv a href=#AjaxLink('/site/filesystem/ria/areapagechange.cfm?aid=#areaItem.aid#')#

RE: CFC Question

2009-09-24 Thread Andy Matthews
Putting CFCs in the App scope is perfectly acceptable. You just have to know that's where they're stored. With our enterprise app, we store about 2 dozen CFCs in various scopes. Server, App, Session, etc. Each stored in the scope most appropriate for it's use. It's helped us save memory,

Re: Packing directory output to a list

2009-09-24 Thread Ultimator Ultimator
thanks, i'll work on it and get back to you Thanks, I tried out your method, it generated the list and grouped them according to their individual directories but it wont work for what i wanted to use it for. What i intend to do is to pass the directory and file information to a cfpdf tag

Problem on CFFTP when Listing Names using listDir

2009-09-24 Thread Nambi Sampath
Hi, I am using CFFTP tag to list out directories from a FTP server. I am facing a strange issue, can please some one help? After opening a FTP connection, I Use below line to read the FTP contents, cfftp action = LISTDIR stopOnError = Yes name = ListFiles directory = #URL.DIR# connection

How to clear local cache when users logout

2009-09-24 Thread Nathan Chen
All: How do you clear users' local cache after they log out and the session variable is cleared? I can clear the session on the server, but if users click the Back button, they can still get back and that's not what I want. This must have been discussed but I guess I missed. Nathan Chen

Storing uploaded files

2009-09-24 Thread fun and learning
Hi, I am working on a functionality where the user has to upload files. Most of the files or almost all files would be of pdf format. What is the best way to store these files? On the server or on database? Thanks. ~| Want

RE: Storing uploaded files

2009-09-24 Thread Rick Faircloth
Well, typically, and I think, usually, the files would reside on the server and you would use a database to maintain records of the files...filenames, title, content description, etc. Then you would access the database to pull up the information with links to the documents, themselves.

Re: How to clear local cache when users logout

2009-09-24 Thread denstar
You could do something using javascript, I reckon, but really, you're not s'pozed to be able to mess with the client. Nature of the beast. So long as you check authentication with each request, you should be fine, regardless. -- Under all speech that is good for anything there lies a silence

Re: Storing uploaded files

2009-09-24 Thread denstar
Ja, Rick nails the typical scenario. Other considerations would be clusters (one FS isn't == to another FS), and keeping the DB in sync with the FS. FS == File System And unless you break the file data into little pieces, you need special settings to store files in a DB (enable blob, clob,