Solved

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

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now