Hi

This is my script:

        $("#frmTargets").submit(function(){
                var frmTargetsOptions = { 'dataType':'json', target:
'#output', 'success':addTargetsResponse, 'error':
addTargetsResponseFailed };
            $(this).ajaxSubmit(frmTargetsOptions);
            return false;
     });

I'm posting to a .NET ashx. All the post works fine and the .Net code
does it's stuff correctly.

But instead of getting the JSON response from this code:

            context.Response.ContentType = "application/json"
            context.Response.Write("{""status"": """ & status & """}")
            context.Response.End()

my browser (Firefox 2.0.0.1.1) gets the ashx and tries to open it in
an eternal app.

What I am doing wrong?

Many thanks.

Reply via email to