Jump to content

HELP WITH XMLHTTP AND DIVS


Orionsbelter

Recommended Posts

Hi there i'am have a bit of a issue with the script i'am using. The idea is i click a image and it sends off a change to the database using the XMLHttpRequest however when i try using.

 

document.getElementById("rep_"+str).innerHTML=xmlhttp.responseText;

 

to put the reponse text in a unqiue div it does not!.

 

The program i have here is simply a fourm the image i said i'm clicking a delete reply icon. i want that to then change to deleted reply to some text such as "Deleted by admin" that is why i wanted update the reply on screen with the reponse text without refreshing.

 

The div is inside many other divs does this matter?

 

thank you for reading

Link to comment
https://forums.phpfreaks.com/topic/196267-help-with-xmlhttp-and-divs/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.