and James, yeah that's right... FAT!... what of it? lol On 17 July, 17:17, Sir Rawlins <[email protected]> wrote: > Thanks Chris, > > I don't actually need it for this project but that's a handy work > around for when it is needed! > > Now, the changes I've made partially solve my problem, I'm now able to > make cfajaxproxy requests to my own custom build CFC's but I'm still > unable to make requests to the RemotingService.cfc that comes with MG. > > As we see above I get a CF error when I try to use the cfajaxproxy to > create the object so I have to use the full path to the abstract > object within MG, unfortunatley it then appears I'm unable to make any > requests to that, my guess being that it's because that MG isn't web- > accessible as it's not under my webroot so the JS isn't able to make > requests to the CFC. > > Hmmmmm, I wonder why using the cfajaxproxy won't work with the > RemotingService.cfc that is in the webroot? > > Rob > > On 17 July, 17:06, Chris Blackwell <[email protected]> wrote: > > > > > Incase you actually need the onRequest method for "normal" page requests you > > can use the following snippet in onRequestStart > > <!--- Remove the onRequest method for remote cfc calls, otherwise we'll get > > a blank response ---> > > <cfif listlast(arguments.targetpage, ".") is "cfc"> > > <cfset StructDelete(this, "onRequest") /> > > <cfset StructDelete(variables,"onRequest")/> > > </cfif> > > > Chris > > > 2009/7/17 Sir Rawlins <[email protected]> > > > > Hello Jim, > > > > Managed to solve this with the great efforts of my fat northern friend > > > James Allen. I've seen this issue before myself when working with web > > > services and it's a bitch to diagnose and I believe generally > > > considered to be a bug in CF. > > > >http://jamesallen.name/index.cfm/2008/1/30/Bug-in-calling-CFCs-remote... > > > > I removed my onRequest() method from my application.cfc and it's now > > > returning data as expected!. > > > > Hope this helps someone else in the future. > > > > Rob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en
For more about Model-Glue, check http://www.model-glue.com . -~----------~----~----~----~------~----~------~--~---
