JQuery - error jquery en firefox

 
Vista:
sin imagen de perfil

error jquery en firefox

Publicado por mauricio baez (8 intervenciones) el 27/09/2014 16:47:58
derepente jequery me enpeso a dar estos eerroes o advertancias, como solucionarlos

SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:2
TypeError: anonymous function does not always return a value jquery.min.js:2
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:2
TypeError: anonymous function does not always return a value jquery.min.js:2
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:2
TypeError: anonymous function does not always return a value jquery.min.js:2
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:2
TypeError: anonymous function does not always return a value jquery.min.js:2
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:2
TypeError: anonymous function does not always return a value jquery.min.js:2
TypeError: function e does not always return a value jquery.min.js:2
TypeError: function Q does not always return a value jquery.min.js:2
TypeError: function cb does not always return a value jquery.min.js:3
TypeError: anonymous function does not always return a value jquery.min.js:3
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:3
TypeError: anonymous function does not always return a value jquery.min.js:3
SyntaxError: in strict mode code, functions may be declared only at top level or immediately within another function jquery.min.js:3
TypeError: anonymous function does not always return a value jquery.min.js:3
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:4
TypeError: function hc does not always return a value jquery.min.js:4
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:4
TypeError: anonymous function does not always return a value jquery.min.js:4
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:4
TypeError: anonymous function does not always return a value jquery.min.js:4
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:4
TypeError: anonymous function does not always return a value jquery.min.js:4
TypeError: function Zc does not always return a value jquery.min.js:4
TypeError: function $c does not always return a value jquery.min.js:4
TypeError: anonymous function does not always return a value jquery.min.js:4
ReferenceError: reference to undefined property d.attributes[c].expando jquery.min.js:3
ReferenceError: assignment to undeclared variable fc_stopEvent rtcDefault.xml:42
ReferenceError: reference to undefined property a[h] jquery.min.js:2
ReferenceError: reference to undefined property j.delegateType jquery.min.js:3
ReferenceError: reference to undefined property m.event.triggered jquery.min.js:3
ReferenceError: reference to undefined property m.cache[a[m.expando]] jquery.min.js:3
ReferenceError: reference to undefined property m.event.triggered jquery.min.js:3
ReferenceError: reference to undefined property i.disabled jquery.min.js:3
ReferenceError: reference to undefined property a.nodeName jquery.min.js:2
ReferenceError: reference to undefined property k.headers jquery.min.js:4
ReferenceError: reference to undefined property a.username jquery.min.js:4
ReferenceError: reference to undefined property a.result jquery.min.js:3
ReferenceError: reference to undefined property a[v.status] jquery.min.js:4
ReferenceError: reference to undefined property e.type jquery.min.js:4
ReferenceError: reference to undefined property m.ajaxSettings.traditional
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de xve
Val: 302
Oro
Ha mantenido su posición en JQuery (en relación al último mes)
Gráfica de JQuery

error jquery en firefox

Publicado por xve (673 intervenciones) el 27/09/2014 21:34:28
Hola Mauricio, y el código que devuelve estos errores cual es?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

error jquery en firefox

Publicado por mauricio baez (8 intervenciones) el 28/09/2014 18:33:03
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
<?php
  session_start();
  $mensaje=0;
  $pagina=0;
?>
 
<!Doctype html>
<html lang="es">
<head>
<meta charset="utf-8"/>
<title>Sistema Aduanero Vobil (SAM)</title>
 
<!--<script src="/sam/sam/js/jquery-1.11.1.min.js" type="text/javascript"></script> -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
 
<link rel="stylesheet" href="estilos_css/estilos.css"/>
<link rel="stylesheet" href="estilos_css/estilos.css"/>
 
<style type="text/css">
 
#div_usuario {
	float: left;
	width: 300px;
	height: 600px;
	border: 1px solid #708090;
	margin: 10px 10px 10px 10px;
	border-radius: 10px 10px 10px 10px;
	box-shadow: -10px 10px 20px #424242;
}
 
#div_creacion {
	float: right;
	width: 800px;
	height: 600px;
	border: 1px solid #708090;
	margin: 10px 10px 10px 10px;
	border-radius: 10px 10px 10px 10px;
	box-shadow: -10px 10px 20px #424242;
}
 
#tabla_creacion {
	width: 400px;
}
 
</style>
 
<script type="text/javascript">
 
	$(document).ready(function()
	{
		$("#btn_agregar").attr('disabled','disabled');
		$("#btn_modificar").attr('disabled', 'disabled');
		$("#btn_modificar").attr("class", "btm_apagado");
		$("#btn_eliminar").attr('disabled', 'disabled');
		$("#btn_eliminar").attr("class", "btm_apagado");
 
 
		fun_bloquea_input();
 
 
		// selecciona el usuaio a modificar/eliminar
		$("#div_usuario").on('click', 'button', function(event)
		{
			event.preventDefault();
 
			var usu_nombre = $(this).attr('href');
			$.ajax(
		    {
		      	type: "POST",
		      	dataType: "json",
		        url: "SAM_USUARIO2.php", // programa que llena el formulario de ususario con los datos del usuarioo existente
		        data: "usu_nombre="+usu_nombre, // Adjuntar los campos del formulario enviado.
		        success: function(respuesta)
		        {
					$("#btn_modificar").removeAttr('disabled'),
					$("#btn_modificar").attr("class","btn_activo"),
					$("#btn_eliminar").removeAttr('disabled'),
					$("#btn_eliminar").attr("class","btn_activo"),
 
					fun_desbloquea_input();
					fun_llena_for(respuesta);
 
		        },
 
	          	error: function(objeto, quepaso, otroobj)
		        {
		        	alert("ERROR. en el ajax SAM_USUARIO2.php");
		        },
		    });
		});
 
		 //verica si el usuario existe si o no al pulsar enter
      	$("#div_creacion").on('keypress', '#usu_nombre', function(event)
      	{
 
			if (event.which == 13)
			{
				fun_limpia();
				var usu_nombre = $("#usu_nombre").val();
 
				$.ajax(
			    {
			      	type: "POST",
			      	dataType: "json",
			        url: "SAM_USUARIO2.php", // programa que llena el formulario de ususario con los datos del usuarioo existente
			        data: "usu_nombre="+usu_nombre, // Adjuntar los campos del formulario enviado.
			        success: function(respuesta)
			        {
			        	if (respuesta.resultado == true) // ususario existe
			        	{
			    			$("#btn_modificar").removeAttr('disabled'),
							$("#btn_modificar").attr("class","btn_activo"),
							$("#btn_eliminar").removeAttr('disabled'),
							$("#btn_eliminar").attr("class","btn_activo"),
							fun_desbloquea_input(),
							fun_llena_for(respuesta)
			        	}
			        	else  // ususario no existe
			        	{
			        		alert(respuesta.mensaje),
			        		fun_desbloquea_input(),
			        		fun_limpia(),
			        		$("#btn_agregar").removeAttr('disabled'),
							$("#btn_agregar").attr("class","btn_activo"),
			        		$("#usu_usuario").focus()
			        	}
 
			        },
 
		          	error: function(objeto, quepaso, otroobj)
			        {
			        	alert("ERROR. en el ajax SAM_USUARIO2.php");
			        },
			    });
		  //   	return false; // Evitar ejecutar el submit del formulario.
		 	};
	 	});
 
 		// procedimiento para modificara los datos del usuario
		$("#btn_modificar").click(function(event)
		{
			event.preventDefault();
			$.ajax(
		    {
		        type: "POST",
		        dataType: "json",
		        url: "SAM_USUARIO_MOD.php",
		        data: $("#form_creacion").serialize(), // Adjuntar los campos del formulario enviado.
		        success: function(respuesta)
		        {
		           	if(respuesta.resultado==false)
		           	{
		           		alert(respuesta.mensaje);
		           	}
		           	else
		           	{
		           		alert(respuesta.mensaje);
		           	}
		        },
 
		        error: function(objeto, quepaso, otroobj)
		        {
		        	alert("ERROR en el SAM_USUARIO_MOD.php");
		            alert("Pasó lo siguiente: "+objeto);
		            alert("Pasó lo siguiente: "+quepaso);
		            alert("Pasó lo siguiente: "+otroobj);
		        },
			});
		});
 
 
		//agrega un nuevo usuario
      	$("#btn_agregar").click(function(event)
      	{
      		alert("dentro de agregar");
      		$.ajax(
		    {
		      	type: "POST",
		      	dataType: "json",
		        url: "SAM_USUARIO_GRABA.php", // programa que llena el formulario de ususario con los datos del usuarioo existente
		        data: $("#form_creacion").serialize(), // Adjuntar los campos del formulario enviado.
		        success: function(respuesta)
		        {
		        	if (respuesta.resultado == true) // ususario existe
		        	{
		    			$("#btn_modificar").removeAttr('disabled'),
						$("#btn_modificar").attr("class","btn_activo"),
						$("#btn_eliminar").removeAttr('disabled'),
						$("#btn_eliminar").attr("class","btn_activo"),
						fun_desbloquea_input(),
						fun_llena_for(respuesta)
		        	}
		        	else  // nose puede crear el usuario
		        	{
		        		alert(respuesta.mensaje),
		        		fun_desbloquea_input(),
		        		fun_limpia(),
		        		$("#btn_agregar").removeAttr('disabled'),
						$("#btn_agregar").attr("class","btn_activo"),
		        		$("#usu_usuario").focus()
		        	}
		        },
	          	error: function(objeto, quepaso, otroobj)
		        {
		        	alert("ERROR. en el ajax SAM_USUARIO_GRABA.php"),
		        	alert(objeto),
		        	alert(quepaso),
		        	alert(otroobj)
		        },
		    });
	 	});
 
	});	// fin del document.ready ******************************************
 
	function fun_llena_for(respuesta)
	{
		$("#usu_nombre").val(respuesta.datos.USU_NOMBRE);
		$("#usu_usuario").val(respuesta.datos.USU_USUARIO);
		$("#usu_direccion").val(respuesta.datos.USU_DIRECCION);
		$("#usu_email").val(respuesta.datos.USU_EMAIL);
		$("#usu_telefono1").val(respuesta.datos.USU_TELEFONO1);
		$("#usu_telefono2").val(respuesta.datos.USU_TELEFONO2);
	    $("#usu_nivel").val(respuesta.datos.USU_NIVEL)
	}
 
	function fun_bloquea_input()
	{
		$("#usu_usuario").attr('disabled', 'disabled');
		$("#usu_direccion").attr('disabled', 'disabled');
		$("#usu_email").attr('disabled', 'disabled');
		$("#usu_telefono1").attr('disabled', 'disabled');
		$("#usu_telefono2").attr('disabled', 'disabled');
		$("#usu_nivel").attr('disabled', 'disabled');
	};
 
	function fun_desbloquea_input()
	{
		$("#usu_usuario").removeAttr('disabled');
		$("#usu_direccion").removeAttr('disabled');
		$("#usu_email").removeAttr('disabled');
		$("#usu_telefono1").removeAttr('disabled');
		$("#usu_telefono2").removeAttr('disabled');
		$("#usu_nivel").removeAttr('disabled');
	};
 
	function fun_limpia()
	{
		$("#usu_usuario").val('');
		$("#usu_direccion").val('');
		$("#usu_email").val('');
		$("#usu_telefono1").val('');
		$("#usu_telefono2").val('');
		$("#usu_nivel").val('');
	}
 
</script>
 
</head>
 
<body>
<div id="div_principal">
	<nav>
		<div id="div_caveza">
			<img src="/sam/sam/imagenes/pantalla/caveza.jpg"/>
		</div>
	</nav>
      	<article>
      		<div id="div_usuario"  title="USUARIO EXISTENTES">
      			<h2>USARIOS EXISTENTES</h2>
      			<?php
      				require("SAM_USUARIOS_EXISTENTES.php");
      			?>
      		</div>
      		<div id="div_creacion">
      			<h2>CREAR USUSARIOS</h2>
 
      			<form id="form_creacion" name="formulario" method="post" >
      			  	<table id = "tabla_creacion">
   			      	  <tr>
   					    <td>* Nombre :</td>
	      			    <td><input name="nombre_impo" type="text" id="usu_nombre" placeholder="Ingrese Nombre" required/></td>
      			      </tr>
	      			  <tr>
	      			    <td>* Usuario :</td>
	      			    <td><input name="usuario_impo" type="text" id="usu_usuario" placeholder="Ingrese Ususario" required/></td>
      			      </tr>
	      			  <tr>
	      			    <td>* Direccion :</td>
	      			    <td><input name="direccion_impo" type="text" id="usu_direccion" placeholder="Ingrese Direccion" required/></td>
      			      </tr>
	      			  <tr>
	      			    <td>* E-Mail :</td>
	      			    <td><input name="email_impo" type="text" id="usu_email" placeholder="Ingrese Email" required/></td>
      			      </tr>
	      			  <tr>
	      			    <td>* Telefono :</td>
	      			    <td><input name="telefono1_impo" type="text" id="usu_telefono1" placeholder="Ingrese Telefono" required/></td>
      			      </tr>
	      			  <tr>
	      			    <td>Telefono :</td>
	      			    <td><input name="telefono2_impo" type="text" id="usu_telefono2" placeholder="Ingrese Telefono" /></td>
      			      </tr>
	      			  <tr>
	      			    <td>* Nivel de Acceso :</td>
	      			    <td><select name="e_nivel" id = "usu_nivel">
	      			      <option value="1">Menu Nivel 1</option>
	      			      <option value="2">Menu Nivel 2</option>
	      			      <option value="3">Menu Nivel 3</option>
      			        </select></td>
      			      </tr>
	      			  <tr>
	      			  	<td><br></td>
	      			  </tr>
	      			  <tr>
	      			    <td colspan="2">
	      			    	<button type="submit" id="btn_agregar" class="btn_apagado">Agregar</button>
	      			    	<button type="submit" id="btn_modificar" class="btn_activo">Modificar</button>
	      			    	<button type="submit" id="btn_eliminar" class="btn_eliminar">Eliminar</button>
 
	      			       <button type="submit" id="btn_regresar" class="btn_activo">Regresar</button>
	      			    </td>
      			      </tr>
   			      </table>
 
                </form>
      		</div>
    </article>
</div>
</body>
</html>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de xve
Val: 302
Oro
Ha mantenido su posición en JQuery (en relación al último mes)
Gráfica de JQuery

error jquery en firefox

Publicado por xve (673 intervenciones) el 28/09/2014 20:00:15
Hola Mauricio, he probado tu código y no nos da esos errores...
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

error jquery en firefox

Publicado por mauricio baez (8 intervenciones) el 29/09/2014 02:30:54
carri la aplicacion en otro pc y no dio ninguna de las alertas.
pero el programa secierra con este error

NS_ERROR_NOT_AVAILABLE: prompt aborted by user

el php que llama el programa anteriormente expuesto es:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
include("conexiones/seguridad.php");
 
  $array_respuestas = array(
         "resultado" =>  True,
         "mensaje" =>  "",
         "datos"   =>  "",
  );
 
  // capturamos la data enviada por el formulario
  $nombre = trim($_POST["nombre_impo"]);
  $usudato = trim($_POST["usuario_impo"]);
  $direccion = trim($_POST["direccion_impo"]);
  $email = trim($_POST["email_impo"]);
  $telefono1 = trim($_POST["telefono1_impo"]);
  $telefono2 = trim($_POST["telefono2_impo"]);
  $nivel = trim($_POST["e_nivel"]);
  $paswd="";
 
  if(empty($direccion) or empty($nombre) or empty($usudato) or empty($email) or empty($telefono1) or empty($nivel))
  {
      $array_respuestas["resultado"] = false;
      $array_respuestas["mensaje"] = "ERROR Los datos con * son obligatorios";
  }
  else
  {
    include("conexiones/conex1.php");
 
    // creamos la sentencia sql
 
    $sql = "INSERT INTO adm_usuarios ( USU_USUARIO, USU_DIRECCION, USU_EMAIL, USU_TELEFONO1, USU_TELEFONO2, USU_NIVEL) VALUES ( '$empresa','$usudato', '$paswd','$nivel', '$nombre', '$direccion','$email', '$telefono1', '$telefono2')";
 
    mysql_query($sql , $conexion); // ejecutamos la sentencia sql 
    if (mysql_error())
    {
      $array_respuestas["resultado"] = false;
      $array_respuestas["mensaje"] =  mysql_error();
    }
    else
    {
 
      $array_respuestas["resultado"]  = true;
      $array_respuestas["mensaje"] = "Usuario Creado";
    }
  }
echo json_encode($array_respuestas);
?>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

error jquery en firefox

Publicado por mauricio baez (8 intervenciones) el 02/10/2014 04:57:58
elimine y reescribi el codigo y ya funciona lo unico que queda son el monton de acbertencias qeu jva en fire fox, que estan al inicio de mis preguntas.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de xve
Val: 302
Oro
Ha mantenido su posición en JQuery (en relación al último mes)
Gráfica de JQuery

error jquery en firefox

Publicado por xve (673 intervenciones) el 02/10/2014 11:05:20
Hola Mauricio, y el código que has reescrito es el mismo que te daba error?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

error jquery en firefox

Publicado por mauricio baez (8 intervenciones) el 08/10/2014 16:24:43
me falto un event.preventDefault();
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar