Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- type: "POST",
- dataType: "json",
- url: cascading,
- data: {
- email: '<?php echo $pg_force_mail; ?>',
- pseudo: '<?php echo pg_get('pseudo'); ?>',
- password: '<?php echo pg_get('password'); ?>',
- user_sexe: '<?php echo pg_get('user_sexe'); ?>'
- },
- success: function(data) {
- if (data.error) {
- $('#pgMdl_error').html('data.errors.join("<br />")').fadeIn();
- } else {
- if (typeof data.id_supp !== 'undefined') {
- $('body').append('<iframe src="<?php echo $PDV->pixelIframeUrlPix(); ?>&f=' + data.id_supp + '" width="1" height="1" framespacing="0" frameborder="no" allowtransparency="true"></iframe>');
- }
- setTimeout(function() {
- if (typeof data.url_cb !== 'undefined') {
- window.location.href = data.url_cb;
- } else {
- window.location.href = '<?php echo pg_url_speed(O_PAGE_DE_VENTE, array('pg_pdvre_thm' => $i_idLandingExe)); ?>&url_exe=' + base64_encode(data.url_exe);
- }
- }, 2000);
- }
- },
- error: function() {
- $('#pgMdl_error').html('Une erreur est survenue. Veuillez réessayer ultérieurement.').fadeIn();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement