Re: Application.applicaitonName not avialable in a webservice.

2011-03-12 Thread James Holmes

On 12 March 2011 06:51, Bobby Hartsfield bo...@acoderslife.com wrote:

 The problem I have run into is that application scope (and thus
 application.applicationName) is not available from within the webservice.

Why not? Is the webservice CFC not part of the same directory
structure that has your Application.cfc at its root?

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342950
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Application.applicaitonName not avialable in a webservice.

2011-03-12 Thread Bobby Hartsfield

Ahh! Thanks for jump starting my brain.

It is indeed in the directory structure but it looks like someone stuck a
rogue (empty) application.cfm in the model. Removing it fixes the issue but
breaks other stuff.

I'll just relocate the webservice (it shouldn't have been where it is
anyway)

Thanks a lot.

.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: James Holmes [mailto:james.hol...@gmail.com] 
Sent: Saturday, March 12, 2011 5:56 AM
To: cf-talk
Subject: Re: Application.applicaitonName not avialable in a webservice.


On 12 March 2011 06:51, Bobby Hartsfield bo...@acoderslife.com wrote:

 The problem I have run into is that application scope (and thus
 application.applicationName) is not available from within the webservice.

Why not? Is the webservice CFC not part of the same directory
structure that has your Application.cfc at its root?



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342951
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Jquery ajax and CFC ioutside webroot

2011-03-12 Thread fun and learning

Hi All -

Can I use jquery ajax to call a cfc that is located outside the webroot? I 
tried it but I think it is trying to look for the cfc within web root. How can 
I get it to point to a cfc outside the webroot?

Thanks 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342952
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Jquery ajax and CFC ioutside webroot

2011-03-12 Thread Stephane Vantroyen

Hello, in your jquery ajax call, just give the full http address of your cfc, 
like so :

$.ajax({ url: 
'http://www.yoursite.com/cfc/yourCFC.cfc?yourmethodyourargumentsIfAny', type: 
POST, dataType:json});

Cheers

 Hi All -
 
 Can I use jquery ajax to call a cfc that is located outside the 
 webroot? I tried it but I think it is trying to look for the cfc 
 within web root. How can I get it to point to a cfc outside the 
 webroot?
 
 Thanks 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342953
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Jquery ajax and CFC ioutside webroot

2011-03-12 Thread fun and learning

 Hello, in your jquery ajax call, just give the full http address of 
 your cfc, like so :
 
 $.ajax({ url: 'http://www.yoursite.com/cfc/yourCFC.
 cfc?yourmethodyourargumentsIfAny', type: POST, dataType:json});
 
 Cheers
 
  Hi All -
  
  Can I use jquery ajax to call a cfc that is located outside the 
  webroot? I tried it but I think it is trying to look for the cfc 
  within web root. How can I get it to point to a cfc outside the 
  webroot?
  
  Thanks 
HI,

The cfc is located outside of webroot. I cant access it using full site address

the structure is as follow:

E
--Cfc
-- website 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342954
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Jquery ajax and CFC ioutside webroot

2011-03-12 Thread Stephane Vantroyen

Hi,

I don't think I fully understand it : isn't your cfc reachable via a dns or ip? 
Then I don't know if it's feasible. Are you able to read it within a browser? I 
mean, to see it's wsdl structure?



 Hello, in your jquery ajax call, just give the full http address of 
HI,

The cfc is located outside of webroot. I cant access it using full site address

the structure is as follow:

E
--Cfc
-- website 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342955
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Jquery ajax and CFC ioutside webroot

2011-03-12 Thread andy matthews

You can't do it without some additional code.

Read these posts about accessing files outside of your web root.

http://blog.pengoworks.com/index.cfm/2008/1/16/Invoke-CFCs-outside-of-webroo
t-without-mappings

http://www.bennadel.com/blog/1655-Ask-Ben-Dynamic-Web-Root-And-Site-URL-Calc
ulations-In-Application-cfc.htm



andy


-Original Message-
From: fun and learning [mailto:funandlrnn...@gmail.com] 
Sent: Saturday, March 12, 2011 2:13 PM
To: cf-talk
Subject: Jquery ajax and CFC ioutside webroot


Hi All -

Can I use jquery ajax to call a cfc that is located outside the webroot? I
tried it but I think it is trying to look for the cfc within web root. How
can I get it to point to a cfc outside the webroot?

Thanks 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342956
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Jquery ajax and CFC ioutside webroot

2011-03-12 Thread Dave Watts

 Can I use jquery ajax to call a cfc that is located outside the webroot? I 
 tried it but I think it is trying to look for the cfc within web root. How 
 can I
 get it to point to a cfc outside the webroot?

You can't make an HTTP request (which is all that AJAX is really) to
something that doesn't have a valid URL and isn't available through
the web server. If you want to store things outside your web root,
you'll need to create a virtual directory in your web server to make
this work.

You can invoke CFCs outside the web root from CF code, because CF is
installed on your server and can traverse that server's filesystem
(unless you've reduced permissions for your CF service).

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342957
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Database Lookup - Possible with CF?

2011-03-12 Thread Steve 'Cutter' Blades

Ian,

All of what you are trying to achieve is possible with CF7, in fact most 
of what your are trying to do is client side programming, with a little 
server-side to run the query. Several people here have offered some 
great pointers and advice, but the fact of the matter is that no one is 
going to write this for you. There are thousands of blog posts and 
tutorials on the web for writing CFC's, and probably almost as many on 
working with CF and Ajax. Switching platforms is the last solution to 
your problem, a) the cost of overall development of conversion is 
unnecessary, b) most of the other platforms that I've researched (and 
that's a lot) will increase overall development time (costing you more 
money), and c) other platforms aren't going to do it automatically for 
you either. If this is something you need done quickly (hours), 
efficiently, and within your current architecture, then I suggest you 
head over to the cf-jobs list and reach out to a contractor to fulfill 
your needs (much more cost effective, and makes more business sense).

Steve 'Cutter' Blades
Adobe Certified Expert
Advanced Macromedia ColdFusion MX 7 Developer

http://blog.cutterscrossing.com


Co-Author Learning Ext JS 3.2 Packt Publishing 2010
https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book

The best way to predict the future is to help create it


On 3/11/2011 8:22 AM, Ian Vaughan wrote:
 Thanks all for your help, I was just investigating if it could be done with 
 CF7, but it is looking like a long winded process to get anywhere with it.

 If you had CF8+ it is easier because of the new tags but it's looking as 
 though I need to go down the OO route via /NET webforms or MVC2 which will be 
 a similar learning curve as trying to get it done in CF7 but would give 
 better long term prospects


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342958
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm