Ver Mensaje Individual
  #14 (permalink)  
Antiguo 22/04/2013, 18:46
sQs
 
Fecha de Ingreso: abril-2013
Ubicación: Sinaloa
Mensajes: 45
Antigüedad: 11 años, 8 meses
Puntos: 0
Respuesta: Problema con serialize

Cita:
Iniciado por David Ver Mensaje
Lo único que necesito es reproducir el error; revisa el código fuente de la página en el navegador, quita todo lo que no es relevante y pégalo aquí para ver.
Ok, este es el codigo fuente mostrado en la pagina cuando das al click derecho y a ver codigo fuente, lo dividi en dos porque exedia el limite de caracteres:

** Parte 1 **
Código HTML:
<link href='http://fonts.googleapis.com/css?family=Quando' rel='stylesheet' type='text/css'>
<script src='{$modules_dir}psc_maintenancepro/js/jquery-1.8.1.min.js' type='text/javascript'></script>
<link  href='{$modules_dir}psc_maintenancepro/css/psc_maintenancepro.css' rel='stylesheet' type='text/css' media='screen' />

<script type="text/javascript">                                 
	jQuery(document).ready(function($) {

		function ShowForms() {
			if ($("#maintenance_subs").is(":hidden")) {
				$("#ribbon span.signup_news").css("display","none");
				$("#ribbon span.signup_cont").css("display","block");
				$("#contact_form").slideUp("slow");
				$("#maintenance_subs").slideDown("slow");
			}
			else {
				$("#ribbon span.signup_news").css("display","block");
				$("#ribbon span.signup_cont").css("display","none");
				$("#maintenance_subs").slideUp("slow");
				$("#contact_form").slideDown("slow");
			}
		}
		$(".contact").click(function() {
			ShowForms();
			return false;
		});
		
		$('#subscribe_form').submit(function() {
			$('#subscribe_msg').html('<p><img src="{$modules_dir}psc_maintenancepro/img/ajax-loader.gif" /></p>');
			var str = $(this).serialize();
			alert('Datos serializados: '+str);
			$.ajax({
				type: 'POST',
				url: '{$modules_dir}psc_maintenancepro/functions/subscribe.php',
				data: str,
				dataType: 'json',
				success: function(data) {
					if(data.status == 1) {
						result = '<div class="notification_ok">'+data.message+'</div>';
						$("#fields").hide();
					} else {
						result = '<div class="notification_er">'+data.message+'</div>';
					}
					$('#subscribe_msg').html(result);
				}
			});
			return false;
		});
		
		$('#contact_form').submit(function() {
			$('#contact_msg').html('<p><img src="{$modules_dir}psc_maintenancepro/img/ajax-loader.gif" /></p>');
			var dataString = $(this).serialize();
			alert('Datos serializados: '+dataString);
			$.ajax({
				type: 'POST',
				url: '{$modules_dir}psc_maintenancepro/functions/contact-us.php',
				data: dataString,
				dataType: 'json',
				success: function(data) {
					if(data.test2 == 1) {
						result = '<div class="notification_ok">'+data.test1+'</div>';
						$("#fields").hide();
					} else {
						result = '<div class="notification_er">'+data.test1+'</div>';
					}
					$('#contact_msg').html(result);
				}
			});
			return false;
		});

	});
</script>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}" lang="{$lang_iso}">
	<head>
		<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>	
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{if isset($meta_description)}
		<meta name="description" content="{$meta_description|escape:'htmlall':'UTF-8'}" />
{/if}
{if isset($meta_keywords)}
		<meta name="keywords" content="{$meta_keywords|escape:'htmlall':'UTF-8'}" />
{/if}
		<meta name="robots" content="{if isset($nobots)}no{/if}index,follow" />
		<link rel="shortcut icon" href="{$favicon_url}" />
		<link href="{$css_dir}maintenance.css" rel="stylesheet" type="text/css" />
	</head>
	<body>
    <div id="content">
        <p><img src="{$logo_url}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}"{/if} alt="logo" /><br /><br /></p>
        <a class="contact_img" title="{l s='Contact us' mod='psc_maintenancepro'}" href="#" style="display:none">{l s='Contact us' mod='psc_maintenancepro'}</a>
        
                	<div id="ribbon" class="contact">
                            <span class="signup_cont">{l s='Contact us' mod='psc_maintenancepro'}</span>
                            <span class="signup_news" style="display:none">{l s='Go back' mod='psc_maintenancepro'}</span>
                     </div>
        
		<div id="maintenance_subs" style="display:none">
             <p id="message">
                {l s='In order to perform website maintenance, our online store will be temporarily offline.'}<br /><br />
                {l s='We apologize for the inconvenience and ask that you please try again later.'}
             </p>
             
            <div class="cf conatiner">
                <div id="count-dwn" class="cf">
                    <!--start of canvascounter-->
                    <section id="canvascounter">
                        <div id="countDownCanvasDiv">
                            <canvas id="countDownCanvas" width="568" height="135"> </canvas>
                            <div class="alignleft circular"><span id="dayVal" class="timerFonts"></span><p id="dayTex">{l s='-days-' mod='psc_maintenancepro'}</p></div>
                            <div class="alignleft circular"><span id="hrsVal" class="timerFonts"></span><p id="hrsTex">{l s='-hours-' mod='psc_maintenancepro'}</p></div>
                            <div class="alignleft circular"><span id="minVal" class="timerFonts"></span><p id="minTex">{l s='-minutes-' mod='psc_maintenancepro'}</p></div>
                            <div class="alignleft circular"><span id="secVal" class="timerFonts"></span><p id="secTex">{l s='-seconds-' mod='psc_maintenancepro'}</p></div>
                        </div>
                        <script type="text/javascript">
                            var endDate_fetch = new Date("2013 December, 01 12:00:00");
                        </script>
                    </section>
                    <!--eof canvascounter--> 
                </div>
            </div>

            <div class="block_newsletter">
	            <div id="bn_content">
                    <form id="subscribe_form" method="post">
                        <p>
                            <label>{l s='Stay updated, subscribe our newsletter:' mod='psc_maintenancepro'}</label> <br />
                            <input type="text" name="email" size="18" 
                                value="{if isset($value) && $value}{$value}{else}{l s='Your email address' mod='psc_maintenancepro'}{/if}" 
                                onfocus="javascript:if(this.value=='{l s='Your email address' mod='psc_maintenancepro' js=1}')this.value='';" 
                                onblur="javascript:if(this.value=='')this.value='{l s='Your email address' mod='psc_maintenancepro' js=1}';" 
                                class="inputNew" />

                            <input type="text" name="email2" size="18"/>

                            <!--<select name="action">
                                <option value="0"{if isset($action) && $action == 0} selected="selected"{/if}>{l s='Subscribe' mod='psc_maintenancepro'}</option>
                                <option value="1"{if isset($action) && $action == 1} selected="selected"{/if}>{l s='Unsubscribe' mod='psc_maintenancepro'}</option>
                            </select>-->
                                <input type="submit" value="subscribe" class="button_mini" name="subsNewsletter" id="subsNewsletter"/>
                            <input type="hidden" name="action" value="0" />
                        </p>
                    </form>
                    <div id="subscribe_msg"></div>
	            </div>
            </div>
    
			 <span style="clear:both;">&nbsp;</span>
		</div>