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??? Quote Link to comment 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.