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

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

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 ~|

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

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

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

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

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

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