<!DOCTYPE html>
<html>
<head>
<title>IE onlcick</title>
<script type="text/javascript" src="http://code.jquery.com/
jquery-1.4rc1.js"></script>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/
libs/jqueryui/1.7.2/jquery-ui.js"></script>
<script type="text/javascript">
function testfunct(){
$.ajax({
url: 'ajax.txt',
success: function(data) {
$("body").append(data);
}
});
return false;
}
</script>
</head>
<body>
<a onclick="return testfunct();" href="/test">link</a>
<div class="clickme">test2</div>
</body>
</html>
ajax.txt:
<script type="text/javascript">
$(function(){
$("#infodialog").dialog({
autoOpen:true,
height:400,
close:function(event,ui){
$(this)
.dialog("destroy")
.remove()
;
}
});
});
</script>
<div id='infodialog'>
blabla
</div>
yes i no the css is not loaded but that's not the problem
if you click 3 times (than it's cached) on the link than you cannot
see the dialog (correct)
--
You received this message because you are subscribed to the Google Groups
"jQuery Development" 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/jquery-dev?hl=en.