# Why using ajax just stop processing javascript

**URL:** <https://www.ruby-forum.com/t/why-using-ajax-just-stop-processing-javascript/92214>\
**Category:** Rails\
**Created:** [April 17, 2007, 5:41am UTC](https://www.ruby-forum.com/t/why-using-ajax-just-stop-processing-javascript/92214 "2007-04-17T05:41:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/dfb087/32.png) [@Trans](https://www.ruby-forum.com/u/Trans)\
**Post date:** [April 17, 2007, 5:41am UTC](https://www.ruby-forum.com/t/why-using-ajax-just-stop-processing-javascript/92214/1 "2007-04-17T05:41:12Z")

</div>

Hi–

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:

 new Ajax.Request('/allocations/schedule\_data', { method:'get', requestHeaders: {Accept: 'application/json'}, onSuccess: function(transport){ alert("here1"); var dataStr = transport.responseText(); alert("here2"); draw\_timeline(dataStr); }, 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. T.
