my friend but i really have a problem here because i have this without
jcrypton to send the values username and password by ajax :

<script type="text/javascript">
$(document).ready(function(){
$("#enviar").click(function(){
$.post("clases/procesa.php",
{

usuario:$("#usuario").val(),
password:$("#password").val()
},function(data){
if(data == 0){
location.href = "reporteador.php";
$(".msg_error").hide();
}else if(data == 1){
$(".msg_error").html("Usuario o Password incorrectos").show();
}else{
$(".msg_error").html("Ingrese su usuario y password").show();
}
}
);
});
});
</script>

but with jcrypton i have this

<script type="text/javascript">
$(function() { var $status = $(' u know just here i had a div with a image
.gif ').hide();
 $("#submitButton").parent().append($status);

// here #normal is the id from  my form and send the values but without
ajax to a file named precesa.php


$("#normal").jCryption({
 beforeEncryption:function() {
 $status.show(); return true;
 }
 });
 });
</script>

i just want to send the values by ajax and use some like this

<script type="text/javascript">
$(document).ready(function(){
$("#enviar").click(function(){
$.post("clases/procesa.php",
{

usuario:$("#usuario").val(),
password:$("#password").val()
},function(data){
if(data == 0){
location.href = "reporteador.php";
$(".msg_error").hide();
}else if(data == 1){
$(".msg_error").html("Usuario o Password incorrectos").show();
}else{
$(".msg_error").html("Ingrese su usuario y password").show();
}
}
);
});
});
</script>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to