PDA

View Full Version : [AJAX] help needed


DrewM
04-27-2006, 09:32 AM
Well I have a comment system on my site and I'm tring to use Ajax to delete comments but it doesn't seem to work this is my java script:
<script language="JavaScript" type="text/JavaScript">
<!--
function deletecomment(id)
{
xml = new vB_AJAX_Handler(true);
xml.onreadystatechange(deleteprocess(id));
// window.location.href = 'index.php?delete=tutorialcomment&id=' + id;
}


function deleteprocess(id)
{
if (xml.handler.readyState == 4 && xml.handler.status == 200)
{
xml.send('index.php', 'delete=tutorialcomment&id=' + id);
}
}
//-->
</script>

thanks in advance!

DrewM
04-28-2006, 09:38 AM
bump

Code Monkey
04-28-2006, 12:54 PM
xml.onreadystatechange(deleteprocess);

DrewM
04-28-2006, 10:45 PM
thanks will try. didn't work...

DrewM
04-29-2006, 11:11 PM
bump