shamsuljewel Posted November 25, 2007 Share Posted November 25, 2007 suppose I use this line in my code <a onClick=\"makeRequest3('add_frnds.php','running','$query','1');\" href='#'>Accept</a> So by ajax add_frnds.php will execute and show result in a div. its ok but I am now use a alert() in the add_frnd.php....but the alert() didn't worked..? But when I open the add_frnd.php normally it works..but in the div it don't...is it possible to work in the div??? Link to comment https://forums.phpfreaks.com/topic/78767-please-look-at-thisis-it-possible/ Share on other sites More sharing options...
BenInBlack Posted November 25, 2007 Share Posted November 25, 2007 I use DIV's with AJAX all the time, but you didn't give us enough code to see how you are populating the divs <div id="myDiv"></div> javascript document.getElementById('myDiv').innerHTML = <your results from AJAX return> Link to comment https://forums.phpfreaks.com/topic/78767-please-look-at-thisis-it-possible/#findComment-398648 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.