View Single Post
Old 12-24-2008, 08:05 AM   PM User | #16
itsallkizza
Senior Coder

 
Join Date: Oct 2008
Location: Long Beach
Posts: 1,196
Thanks: 36
Thanked 164 Times in 164 Posts
itsallkizza will become famous soon enough
Quote:
Thanks but nothing gets displayed, blank page.
- What's a blank page? get_count.php? I can't help you with that one because I don't have access to your database - so I'd have no idea what you're doing wrong.

If your comments id is inserted via PHP on load, then do so, I don't see the problem:
Code:
function updateCounter()
	{
	var my_xmlhttputil = new XML_HTTP_Util();
	var handleCount = function(response)
		{
		document.getElementById("count").innerHTML = "Comment added ("+response.responseText+")";
		}
	my_xmlhttputil.sendRequest("get_count.php?id=<?php echo($_GET['id']) ?>",true,handleCount);
	}
__________________
Feel free to e-mail me if I forget to respond ;)
ohsosexybrit@gmail.com
itsallkizza is offline   Reply With Quote
Users who have thanked itsallkizza for this post:
student101 (12-24-2008)