Forum Moderators: open
<script type="text/javascript">
function showUser(str)
{
if (str=="")
{
document.getElementById("txtHint").innerHTML="";
return;
}
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","getuser.php?q="+str,true);
xmlhttp.send();
}
</script>
<script>
$(function() {
// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
$( "#txtHint" ).dialog({
open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
modal: true,
autoOpen: true,
resizable: false,
width: '500px',
buttons: {
Ok: function() {
$( this ).dialog( "close" );
}
}
});
});
</script> <script type="text/javascript">
function showUser(str)
{
if (!str=="")
{
$('#txtHint').show();
$("#txtHint").load("test.php?q="+str);
}
}
</script> <script>
$(function() {
$('#txtHint').hide();
// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
$( "#txtHint" ).dialog({
open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
modal: true,
autoOpen: true,
resizable: false,
width: '500px',
buttons: {
Ok: function() {
$( this ).dialog( "close" );
}
}
});
});
</script> <script>
$(function() {
$('#txtHint').hide();
// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
$( "#txtHint" ).dialog({
open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
modal: true,
autoOpen: true,
resizable: false,
width: '500px',
buttons: {
Ok: function() {
$( this ).dialog( "close" );
}
}
});
});
</script>