Forum: Ruby on Rails why using ajax just stop processing javascript

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
45196398e9685000d195ec626d477f0e?d=identicon&s=25 Trans (Guest)
on 2007-04-17 05:41
(Received via mailing list)

I'm very frustrated as I have now spent 4 hours on this and have
gotten no where. Here's the snippet from the top of index.rhtml:

<script type="text/javascript">

    new Ajax.Request('/allocations/schedule_data', {
      requestHeaders: {Accept: 'application/json'},
      onSuccess: function(transport){
        var dataStr = transport.responseText();
      onFailure: function(){
        alert('Something went wrong...');

The above gets to "here1" just fine. And though the JSON string is
pulled down according to firebug, "here2" is never reached. I don't
get it. Please advise.

This topic is locked and can not be replied to.