Solved

I am receiving 'null' from my cfajaxproxy calls, what could be the cause?

Posted on 2008-10-28
1
407 Views
Last Modified: 2012-05-05
I am using cfajaxproxy and receiving a 'null' response from my ajax calls. I had this working before so let me explain what i've done which has started to cause this.

I have an app (simplified for the purporses of this question):

/wwwroot/app1
/wwwroot/app1/cfc
/wwwroot/app1/cfc/proxy.cfc
/wwwroot/app1/cfmfiles
/wwwroot/app1/cfmfiles/mainpage.cfm

The mainpage.cfm declares:

<CFAJAXPROXY cfc="app1.cfc.Proxy" jsclassname="admintools">

This has been working fine. Now the issue has come about because i've wanted to seperate the app into 2, since it's evolved into 2 distinct applications, and the proxy.cfc should reside in the new app. So now i have a new app:

/wwwroot/app2
/wwwroot/app2/cfc (with the cfcs relating to this app moved here)
/wwwroot/app2/cfc/proxy.cfc (moved from the old app)
/wwwroot/app2/cfmfiles (with the cfms moved here relating to this app)
/wwwroot/app2/cfmfiles/mainpage.cfm (have moved this file which calls the proxy.cfc)

So now the main page is called via:

http://localhost/app2/cfmfiles/mainpage.cfm
and <CFAJAXPROXY cfc="app2.cfc.Proxy" jsclassname="admintools">
..
rather than:

http://localhost/app1/cfmfiles/mainpage.cfm
<CFAJAXPROXY cfc="app1.cfc.Proxy" jsclassname="admintools">

However, i am now receiving a 'null' response whenever invoking any of the proxy methods. What environmental setting could have caused this? If i have the cfajaxproxy point to the the cfc directory in app1 then it works, but it then uses the application.cfm within app1 when calling the cfcs. For the new app i'm using an application.cfc. I am using an IIS web server. Can any one please make any suggestions as to the possible cause of this? Please suggest anything however obvious since i'm really stuck on this one! thanks :)
0
Comment
Question by:paddycobbett
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
paddycobbett earned 0 total points
ID: 22828759
Ok, i've found the cause. I replaced application.CFC with an equivalent application.CFM. They are however equivalent. Is application.cfc not compatible with cfajaxproxy? Does the onRequestStart() function get called on each ajax request, could something there be causing problems?? Can anyone claim to have used cfajaxyproxy along with the onRequestStart() function of application.cfc?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Having an issue with NumberFormat 7 66
ColdFusion Why is my CF search engine slow on one of my servers? 4 41
Combining Queries 7 54
Attendance Tracking 3 25
This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question