?
Solved

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

Posted on 2008-10-28
1
Medium Priority
?
415 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

Docker-Compose to Simplify Multi-Container Builds

Our veteran DevOps Author takes you through how to build a multi-container environment, managed with a single utility in order to simplify your deployments.

Question has a verified solution.

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

The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
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, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

719 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