Forgot your Password?
function submitFunction() {
$('#create_account_error').html('').hide();
//send the ajax request to the server
$.ajax({
type: 'POST',
url: baseUri,
async: true,
cache: false,
dataType: "json",
data: {
controller: 'authentication',
SubmitCreate: 1,
ajax: true,
email_create: $('#email_create').val(),
token: token
},
success: function (jsonData) {
if (jsonData.hasError) {
var errors = '';
for (error in jsonData.errors)
//IE6 bug fix
if (error != 'indexOf')
errors += '
' + jsonData.errors[error] + '';
$('#create_account_error').html('
' + errors + '
').show();
}
else {
// adding a div to display a transition
$('#center_column').html('
' + $('#center_column').html() + '
');
$('#noSlide').fadeOut('slow', function () {
$('#noSlide').html(jsonData.page);
// update the state (when this file is called from AJAX you still need to update the state)
bindStateInputAndUpdate();
});
$('#noSlide').fadeIn('slow');
document.location = '#account-creation';
}
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert("TECHNICAL ERROR: unable to load form.\n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus);
}
});
}