# Passenger ajax problem?

**URL:** <https://www.ruby-forum.com/t/passenger-ajax-problem/178190>\
**Category:** Rails\
**Created:** [October 30, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/passenger-ajax-problem/178190 "2009-10-30T13:45:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fRAnKEnSTEin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/0ea827/32.png) [@fRAnKEnSTEin](https://www.ruby-forum.com/u/fRAnKEnSTEin)\
**Post date:** [October 30, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/passenger-ajax-problem/178190/1 "2009-10-30T13:45:23Z")

</div>

Hi,

i am using this script: [http://www.craigambrose.com/projects/redbox](http://www.craigambrose.com/projects/redbox) to  
overlay a box with html content inside. The script makes an ajax call  
for rendering the data, when i use mongrel everything works fine, but  
on my production server i use phusion passenger, in this case, the  
script does not work, the app does not showup the modal window.

I checked the firefox console, for errors, but the ajax call made is  
well done and the response of the ajax call is as expected as well,  
the problem is that no dynamic change is done in html DOM, so any of  
the changes are visible, no idea why, the only difference between my  
development eviroment and production one, is that in production i am  
using passenger instead of mongrel.

Need help on this any idea?

Cheers

---

<div class="post-metadata">

**Author:** ![fRAnKEnSTEin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/0ea827/32.png) [@fRAnKEnSTEin](https://www.ruby-forum.com/u/fRAnKEnSTEin)\
**Post date:** [October 30, 2009, 2:07pm UTC](https://www.ruby-forum.com/t/passenger-ajax-problem/178190/2 "2009-10-30T14:07:02Z")

</div>

On 30 Oct 2009, at 13:44, fRAnKEnSTEin wrote:

> development eviroment and production one, is that in production i am  
> using passenger instead of mongrel.
> 
> Need help on this any idea?

Another difference is that you might have javascript concatenated into  
one cache file and the resulting javascript file is invalid somewhere  
(a badly written script can do that).

Best regards

Peter De Berdt
