Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

972 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