Solved

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

Posted on 2008-10-28
1
410 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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

632 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