E aí pessoal, estou com um problema com o captcha no IE e no Chrome,
no Firfox funciona perfeitamente.
Eu estou carregando o captcha por um ajax, esta é a função que estou
usando...
function get_captcha(){
$this->template = View::factory('layout/ajax');
$captcha = new Captcha();
$this->template->content = $captcha;
}
E este é o meu template ajax
<?php
header("Pragma: no-cache");
header("Cache-Control: no-store, no-cache, max-age=0, must-
revalidate");
if (isset($content_type)){
header('Content-Type: ' . $content_type);
} else {
header('Content-Type: text/html');
}
echo $content;
?> -> linha 12
Bom, o erro que está dando é esse:
Fatal error: Method Captcha::__toString() must not throw an exception
in /application/views/layout/ajax.php on line 12
O fogo é que no FF funciona perfeitamente... Alguém pode me ajudar?
Segue o js:
function get_captcha(){
$.ajax({
url: '/index.php/controller/get_captcha',
dataType: 'text/html',
type: 'POST',
timeout: 2999,
global: false,
success: function(resposta){
$('#cod_captcha').html(resposta);
}
});
}
Estou usando o JQuery...
Obrigado a todos...
--
Você está recebendo esta mensagem porque se inscreveu no grupo "Kohana Php" dos
Grupos do Google.
Para postar neste grupo, envie um e-mail para [email protected].
Para cancelar a inscrição nesse grupo, envie um e-mail para
[email protected].
Para obter mais opções, visite esse grupo em
http://groups.google.com/group/kohana-php?hl=pt-BR.