Tim,

Try wrapping a try/catch around it to see if there any untrapped
error:

  try {
     your stuff
  } catch(e) {
    alert(e.message?e.message:e);
  }

Also, if you are using FireFox, install FireBug debugger plugin which
will give you alot of debugging information with the ajax call.

--
HLS

On Sep 26, 2:44 pm, Tim W <[EMAIL PROTECTED]> wrote:
> Anyone have any idea why this code works in 1.1.4 and not in 1.2.1?
>
> The header apparently does not get sent...
> (using in a Ruby on Rails app where setting this head RoR responds
> with the proper js template)
>
>     $.ajax({
>                         url: event.target.href,
>                         dataType: "script",
>                         beforeSend: function(xhr)
> {xhr.setRequestHeader("Accept", "text/javascript");},
>                         success: function() { }
>                       });
>
> Thanks

Reply via email to