"Uncaught ReferenceError" only on Chrome
Hi, how are you?,
I have been developping a web for a few time, and yesterday I watched in Chrome doesn't works Jquery!. I use normally Firefox and it works perfectly, but on Chrome show many errors like this one:
Uncaught ReferenceError: Login is not defined
(anonymous function)localhost:23
onclick
I attach the <head> (because I saw normally the problem is here):
<head>
<script type="text/javascript" src="administracion/jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="administracion/jquery/jquery-ui-1.8.9.custom.min.js"></script>
<script type="text/javascript" src="script.js"></script>
<title>Blablabla</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="estilo.css" type="text/css" />
<link rel="stylesheet" href="administracion/jquery/jquery-ui-1.8.9.custom.css" type="text/css" />
</head>
I call all functions using " onclick= "functionname();" ", and I attach the script.js too because I don't know if you'll want it:
function cambiarlogin(id){
if ( ($(id).val() == 'Usuario') || ($(id).val() == 'Contraseña')){
$(id).val('');
}
}
function registro(){
$("#loading").css("display","block");
$.get('estructura/nucleo.php?mode=registro', function(data){
$("#dialog").html(data).dialog({
title: "Registrarse",
autoOpen: false,
modal: true,
show: "blind",
hide: "explode"
}).dialog("open");
return false;
});
$("#loading").css("display","none");
}
function registrarUser(){
$("#loading").css("display","block");
$.post('estructura/nucleo.php?mode=registraruser', $("#registro").serializeArray(), function(data){
$("#registro").html('Usuario agregado correctamente');
$("#dialog").("close");
});
$("#loading").css("display","none");
}
function Login(){
$("#loading").css("display","block");
$.post('estructura/nucleo.php?mode=login', $("#login").serializeArray(), function(data){
$("#login").html(data);
location.reload();
});
$("#loading").css("display","none");
}
function logout(){
$.post('estructura/nucleo.php?mode=logout', function(data){
location.reload();
});
}
Thank you very much, and so sorry for my bad English :S