This jquery function doesn't complete but also doesn't throw any errors
<p>I'm trying to work out why this function isn't working by placing a few alerts all the way through it.</p>

<p>I get the first 'hmmm' alert, but then nothing after that.</p>

<p>If I look at firebug, I can see that I actually get the returned json data I desire, so obviously the ajax request is a success.... but so why is nothing on the inside of the success return doing anything?</p>

<pre><code>alert('hmm'); // &lt;- i work

$.ajax({
type: 'POST',
url: '/process_registration.php',
data: {event: event_id, time: time_id, ticket: ticket_id, tix: number_tickets, sta: cc_state, type: cc_type, e: reg[0], m: reg[1], f:reg[2], l:reg[3], cc:reg[4], cvn:reg[5], mo:reg[6], yr:reg[7], st:reg[8], city:reg[9], p:reg[10], tot:total },
cache: false,
dataType: 'json',
success: function(data) {

alert('hi1'); // &lt;- why don't I get inside here and work?

        if(data['success']=='1'){
        window.location.href = '/registration_complete';
        }

    if(data['unknown']=='1' ||  data['error']=='1') {

        alert('hi your submission failed');

    }

 }

});
</code></pre>

<p>I'm used to seeing some errors if this sort of thing happens but I'm not getting anything back from the browser to debug it. I'm sure its something simple and will reveal a new dimension to my stupidity. </p>

<p>Please help :)</p>

<p>Here is an example submission of the data which firebug says is being posted in the ajax post:</p>

<pre><code>cc  3242324232423242
city    oasuht
cvn 122
e   tohaeus@email.com
event   22
f   soatehu
l   sntahou
m   23423424
mo  12
p   234234
st  aoesntuh asotenhu
sta State
ticket  37 
time    120
tix 4
tot 4.00
yr  12
</code></pre>

<p>So it appears all the data is going across and shouldn't be the issue to me.</p>
