Skip to main content
Inspiring
May 15, 2008
Question

CFAJAXPROXY COLDFUSION 8 BUG DISASTER

  • May 15, 2008
  • 1 reply
  • 1014 views
I don't know if this is just a problem with my specific installation or if its a cf 8 distribution-wide bug, so if someone could help me confirm that and help me solve it I will be so greatful! I've lost almost a full day during a critical period of my work trying to figure out why all of my cfajaxproxy tags stopped running the CallBackHandlers after they ran.

The cfc called by the ajaxproxy runs fine, but the callbackhandlers never work. After several hours of troubleshooting, I started testing a simple page with only a cfajaxproxy with a cfc that had literally no code to run inside the function other than a cfreturn. Still the same thing, no callbackhandler... Finally I figured out that when I commented out the link tag that includes my css file, the cfajaxproxy callbackhandler was run!

So I then went to work trying to figure out what exactly in my css file was causing this - I commented out the entire contents of the css file and when included in my file with the cfajaxproxy, it STILL broke it. So then I figured it was the link tag and decided as a work around to just take all my css out of the css file and paste it directly into my cfajaxproxy test file wrapped in a <style> tag and it still broke it! I deleted all the code from inside the <style> tag and just left a blank <style></style> tag and it still broke it. Sure enough when I comment out the style tag, everything works fine.

Please help me!!! I cant go without css on this project and I have a deadline cruising toward me, ready to eat me alive!

Thanks,
D
This topic has been closed for replies.

1 reply

Inspiring
May 15, 2008
can tell you one thing: it works just fine for me. css or no css, inline
or external files - it works.

which server OS? which browsers have you tesed it in?
have you tried debugging your ajax calls? add ?cfdebug=true to your url
to start ajax debugger. make sure it is enabled in cf administrator first.

where in your page do you have your <cfajaxproxy> tag? i tend to put it
even above the doctype declaration.
post your code - this will help.
do your js functions in your page follow the required format with cf
ajax features: functionname = function() instead of function functionname()?

start by answering the above and posting the sample code.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Inspiring
May 15, 2008
Azadi, I appreciate your response. I was just coming back to update this topic actually. I found another clue and a suitable work-around at least. I went in to test and realized that I had never put the css directly into the test file that was calling the ajaxproxy, my css, whether by <style> or <link> was being called by my application file and when I moved it out of the application file it works fine with css and ajaxproxy. I mean its still a bit of a bummer because it means I now have to add the <link> tag to every template in the directory, but hey, I can live with it.

I am on a windows 2003 server, tested it with mozilla, ie and safari - same in all. No, my functions did not match the required format, but I changed them and it didnt make a difference.

I have debugged it with cfdebug and it looks the same regardless of whether I have the link in the application and NOT working and when I have it in the template file and it does work, so cfdebug isnt much help.

Do you have your css file included via the application.cfm file by any chance?

Hm... This is so bizarre.

D