[jQuery] Problem with links / html() / IE6
Hi all,
I'm having a problem with JQuery 1.2.6. I'm using JQuery to post data
to a PHP page which should process the information and return some
html. The problem is that the links that are returned aren't working
in IE6 at all! Here's what I've got:
$("#login").bind("submit", function() {
var username = $('#email').val();
var pass = $('#password').val();
$('#members').fadeOut("fast");
$.post("<?php echo site_url().'login/ajax' ?>",
{ email: username, password: pass },
function(data){
$('#members').html(data).fadeIn(1000);
});
return false;
});
And the PHP, for what it's worth:
$out = 'Welcome back, '.$user[0]['name'].'!
';
$out .= 'You have '.$user[0]['draws_remaining'].' draws
remaining.
';
$out .= ''.anchor('user/edit','edit your details').' |
'.anchor('user/signout', 'sign out').'
';
echo $out;
I'm using codeigniter too, incidentally. If I replace the anchor
function with regular HTML, it still doesn't work.
It works in every other browser - any help would be very gratefully
appreciated.
Thanks in advance. :)