Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Mark Augusto

Bug no internet Explorer, java script

Recommended Posts

gente criei esse script sendo que ao usa-lo no IE acontece o erro. ao em vez de me retorna o valor do diretorio PHP ele me imprime caracteres "áásssss". no chrome e no Firefox funciona tudo certinho, mas no IE da esse erro.

 

$.ajax({
type:"POST",
url:"issert/rating.php",
data:{value_on:value_on, ys:ys, post_id_direct:post_id_direct},
success: function(resunt_rating){

if(value_on=='up'){
$("#up-resunt").html(resunt_rating);
}else{
$("#down-resunt").html(resunt_rating);
}
}

Compartilhar este post


Link para o post
Compartilhar em outros sites
DESCULPEM!



<script type="text/javascript" src="scripts/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.positive, .negative').click(function(e) {

var ys = $(this).attr('id');
var value_on = $(this).attr('data-id');
var post_id_direct = $("#post-direct-id").attr('name');

if(ys==1){
if(value_on == 'up'){
$('.negative').removeClass('positive-clik');
}else{
$('.positive').removeClass('negative-clik');
}
}else{
if(value_on == 'up'){
$(this).attr('id', '1').addClass('positive-clik');
$('.negative').removeClass('negative-clik');
}else{
$(this).attr('id', '1').addClass('negative-clik');
$('.positive').removeClass('positive-clik');
}
}

$.ajax({
type: "POST",
url: "issert/rating.php",
data: {value_on:value_on, ys:ys, post_id_direct:post_id_direct},
cache: false,
success: function(resunt_rating){

if(value_on=='up'){
$("#up-resunt").html(resunt_rating);
}else{
$("#down-resunt").html(resunt_rating);
}

}

});


});

});
</script>
<input type="hidden" id="post-direct-id" name="<?php echo $id_post; ?>">
<span class="rating-resunt">
<span class="likeplay positive" data-id="up"></span><font size="-1" class="font-pocent" id="up-resunt"> <?php echo $ting['up']; ?></font>
</span>
<span class="rating-resunt">
<span class="likeplay negative" data-id="down"></span><font size="-1" class="font-pocent" id="down-resunt"> <?php echo $ting['down']; ?></font>
</span>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Bom amigos, muito obrigado pelas mensagens, Obrigado mesmo, descobri qual era o problema. Era por que meu site usa Url personalizado "Url amigáveis" ai tinha que só complementar a chamada da pagina com o url do site. ai funcionou.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.